• Contact
  • Company
  • Login / My Account
  • Shopping Cart (0)
Document Conversion Made Easy!
Peernet Menu
  • Products
      • Virtual Printers
        • tiff-image-printer-iconTIFF Image Printer – Create TIFF Images
        • raster-image-printer-iconRaster Image Printer – Create TIFF, PDF, JPEG, etc.
        • pdf-image-printer-iconPDF Image Printer – Create Searchable PDF
      • PDF Editor
        • pdf-creator-plus-iconPDF Creator Plus – Merge, Edit, Create Searchable PDF
      • Batch Converters
        • document-conversion-service-iconDocument Conversion Service – Unattended 24/7 Batch Converter
        • file-conversion-center-iconFile Conversion Center – Desktop Batch Converter
      • Reporting Software
        • peernet-reports-iconPEERNET Reports – Barcode, Report and Label Software
      • enterprise-licensingEnterprise Licensing for your Corporation
      • discounts-multiple-licensesDiscounts for Purchasing Multiple Licenses
      • distribute-bundle-peernet-softwareDistribute PEERNET Software Bundled with your Product
  • Purchase
      • Purchase Virtual Printers
        • tiff-image-printer-iconTIFF Image Printer – Create TIFF Images
        • raster-image-printer-iconRaster Image Printer – Create TIFF, PDF, JPEG etc.
        • pdf-image-printer-iconPDF Image Printer – Create Searchable PDF
      • Purchase PDF Editor
        • pdf-creator-plus-iconPDF Creator Plus – Merge, Edit, Create Searchable PDF
      • Purchase Batch Converters
        • document-conversion-service-iconDocument Conversion Service – Unattended 24/7 Batch Converter
        • file-conversion-center-iconFile Conversion Center – Desktop Batch Converter
      • Purchase Reporting Software
        • peernet-reports-iconPEERNET Reports – Barcode, Report and Label Software
      • peernet-online-store-purchase-optionsPurchase Options
      • peernet-software-license-levelsLicense Levels
      • peernet-software-purchase-resellerFind Resellers
      • peernet-software-sales-faqsSales FAQ
  • Learn & Support
        • peernet-help-centerTutorials
          • Learn the Basics or Go Beyond with Video Tutorials, FAQs and Guides

            At PEERNET we pride ourselves on providing the best support and the fastest response times in the industry.
          • Select Software Tutorials:
              • tiff-image-printer-iconTIFF Image Printer
              • raster-image-printer-iconRaster Image Printer
              • pdf-image-printer-iconPDF Image Printer
              • pdf-creator-plus-iconPDF Creator Plus
              • document-conversion-service-iconDocument Conversion Service
              • file-conversion-center-iconFile Conversion Center
              • peernet-reports-iconPEERNET Reports
        • peernet-software-faqsSales FAQ
          • Popular Topics

            Find all the answers you need to our most frequently asked questions.
              • Download & Install
                • How do I download software I already purchased?
              • Purchasing & Renewing
                • How do I purchase PEERNET software?
                • What license level do I need?
                • How do I add licenses to an existing serial number?
                • How do I renew my annual subscription?
              • Licensing & Operating
                • How do I activate my new PEERNET software?
                • How do I activate my software without an internet connection?
                • Where do I find my serial number?
                • How do I move my software to a new computer?
                • How do I update/upgrade my software to the latest release?
            • Read all Sales FAQs
  • Blog
  • Menu Menu
using-control-strings-mail-merge

Using Control Strings in Word with Mail Merge Documents

February 13, 2022/by Robert Massart

With the release of TIFF Image Printer, Raster Image Printer, and PDF Image Printer version 12.0.011, control strings have been re-introduced to our family of image printers. In today’s blog we are going to be discussing what are control strings and walk through an example of using control strings with a Word mail merge.

What are Control Strings?

Control strings are text strings embedded in your documents that can be used to change settings dynamically during a print job. Often used in Word with mail merge documents, or reporting tools such as Crystal Reports and PowerBuilder, it can be used to dynamically control file naming and output location from data fields on the report, or create new files from a group of pages using the same filename.

The default control strings syntax is: ~0% keyword “value” ?. The prefix of ‘~0%’ and suffix of ‘?’ are used to recognize a control string pattern in a printed document. These prefixes can be customized.

ControlStringsSyntax

TIFF Image Printer will automatically produce a sample control string that be copied based on the control string keywords that are enable: NewFile, OutputDir, or OutputFileName.

ControlStrings

NewFile

The ~0% NewFile “1” ? syntax will create a new file starting with the current page it is embedded in using the same filename. For example, if a user converts a 10 page Word file named File.docx to TIFF, with ~0% NewFile “1” ? embedded at the top of 5th page, the result will be File.tif with pages 1-4 and File_copy1.tif with pages 5-10.

OutputDir

The ~0% OutputDir “C:\Output” ? syntax will control where the output file is saved. For example, the output File.tif and File_copy1.tif will be saved to C:\Output.

OutputFileName

The ~0% OutputFileName “File” ? syntax will control the filename of the output file. For example, the base output filename is File.

Example: Using Control Strings in Work with Mail Merge Documents

  1. Launch the TIFF Image Printer Dashboard.
LaunchDashboard
  1. Select “Edit & Create Profiles” to open Profile Manager.
  2. Select “Add a profile” to create a personal profile, or create a copy of one of our system profiles.
  3. Name the profile, add a description, and click Save.
  4. Click Control Strings tab and turn on Enable control strings.
ControlStrings1
  1. Enable your desired control string keyword. In this example, we will enable OutputFileName. You can enable one or more control string keywords.
  1. TIFF Image Printer will create a sample control string text that can be copied and inserted into your reports or documents.
ControlStrings3
  1. Paste the sample control string text into your reports and documents. In this case, we will insert the control string at the top of a Word mail merge document.
  2. Edit the sample text based on the content of your document. In this case, we will enter «Name» as our value. This control string is telling TIFF Image Printer to save each page created by the mail merge using the «Name» variable.
ControlStrings4
ControlStrings6
  1. Back on the Profile Manager, click Save-Back, and close Profile Manager.
  2. Close the Dashboard.

If you plan to use these settings regularly, you may wish to make this personal profile the default profile used by TIFF Image Printer.

  1. From Word, Print your mail merge document to TIFF Image Printer 12. Ensure to select your control string profile when printing.
  2. The result will be a TIFF file for each line of the mail merge, with the output filename of «Name».tif.
ControlStrings5

As mentioned previously, there is the ability to customize the prefix and suffix text of the control string if our default settings conflict with the contents of your document. As per the examples below, the control string can be changed to ##@ keyword “value” $$ and this would create the same result.

ControlStringsPrefixSuffixChanged
ControlStringsPrefixSuffixChanged2

If you are new to the PEERNET family of image printers, the best way to get started is by downloading our free trial. As always, the PEERNET support team is more than happy to answer any of your questions and help you evaluate the trial.

https://www.peernet.com/wp-content/uploads/using-control-strings-mail-merge.jpg 1000 1000 Robert Massart https://www.peernet.com/wp-content/uploads/peernet-logo.png Robert Massart2022-02-13 07:20:032022-02-13 07:20:05Using Control Strings in Word with Mail Merge Documents
  • Document Conversion Service
  • TIFF Image Printer
  • Raster Image Printer
  • PDF Image Printer
  • PDF Creator Plus
  • File Conversion Center
  • PEERNET Reports
Search Search

Recent Posts

  • PNSrv11Lib to PNSrv12Lib: Migration Made Easy
  • Migrating to Version 12: Compatibility Mode Quick Start Guide
  • Well Logs: Stitch PDF Pages into a Continuous TIFF Image
  • Dynamic Stamp Content
  • Convert to PDF: The Power of On-Premise PDF Creation

INTERESTING LINKS

Below are some interesting links for you! Enjoy your stay :)

RSS Feed Logo RSS Feed Logo Subscribeto RSS Feed

OUR PRODUCTS

  • Document Conversion Service
  • TIFF Image Printer
  • Raster Image Printer
  • PDF Image Printer
  • PDF Creator Plus
  • File Conversion Center
  • PEERNET Reports

LATEST NEWS

  • PNSrv11Lib to PNSrv12Lib: Migration Made EasyMarch 14, 2025 - 2:10 pm
  • Migrating to Version 12: Compatibility Mode Quick Start GuideMarch 14, 2025 - 2:09 pm
  • Well Logs: Stitch PDF Pages into a Continuous TIFF ImageMarch 14, 2025 - 2:08 pm
  • Dynamic Stamp ContentNovember 4, 2024 - 4:47 pm

BUSINESS INFORMATION

Toll Free: 1-800-883-7980 North America

Tel: 1-613-224-6894

Our office hours are Monday to Friday, from 0900 hrs to 1700 hrs, Eastern Standard Time.

Email Address: [email protected]
Copyright © 1997-2026. All rights reserved. Terms and Conditions | Disclaimer | Privacy Policy | Trademarks.
PEERNET® is a registered trademark of PEERNET Inc.
  • Link to Youtube
  • Link to Rss this site
  • Products
  • Purchase
  • Company
  • Contact
Link to: Why use the Cleanup Options Link to: Why use the Cleanup Options Why use the Cleanup Optionstiff-raster-pdf-imageprinter-feature-image Link to: Get 3 Free Prints with our Image Printer Trials Link to: Get 3 Free Prints with our Image Printer Trials 3-free-prints-image-printers-trialGet 3 Free Prints with our Image Printer Trials
Scroll to top Scroll to top Scroll to top