3000AD Knowledge Base
Home » Categories » Knowledge Base Home » PDF-eXPLODE » Processing

How can you create a Tag that can Fax, Email and/or Print within the same process?


A User posed the following question:

"Just reviewing the options for printing.  I can see that you can set it to Email and Print, or just print and not email.  It would be really nice if there was an option to ‘Email when there’s an email address but Print Only those PDFs missing an email address’, that way all the Invoices etc. that need mailing out automatically come out on the printer, and all the emails are sent automatically. is this possible?"



You can achieve this as follows:

 Assume you use Crystal Reports as your reporting tool.  You require some basic skills in writing and manipulating Crystal reports.

1. Have a Message ID called Email_IT and one called Print_IT. 
2. In your Crystal Report write a formula called PeXTag as :

 If  Trim(Email_addr} <> “” then
   “<pdfexplode> “ + {ExplodedFileName} + “,”+ {ExplodedFolder}+ “%Email_lT#”+{email_addr}

If  Trim(Fax_No} <> “” then 
 “<pdfexplode> “ + {ExplodedFileName} + “,”+ {ExplodedFolder}+ “%Fax_IT#” +{Fax_No}+ "@fax_server_email.com" 
        “<pdfexplode> “ + {ExplodedFileName} + “,”+ {ExplodedFolder}+ “%Print_IT#”

where : 

- any text enclosed between curly braces "{}" represents a database field.

- any text ending with a '#' is a Message ID, defined in PDF-eXPLODE 

In the If-Then-Else formula above, we first check if the database field is non-blank. If True, then the Text control for the tag will be populated with the relevant Message ID Email_IT tag. This Message ID will be configured in PDF-eXPLODE Options with the relevant email subject and message and any other configuration you wish.  


The formula will check the Fax No. field (if the email field is blank) and if contains a number, it will calculate to a Fax_IT message ID tag. For this Message ID in PDF-eXPLODE options, you would generally  only show a message if you wish to have a covering page faxed with the exploded PDF else leave the message blank but configure the Subject as the fax server uses that as the reference for the fax. Most Fax server will generally have specific instructions of what and how to configure the fax phone number as part of your email address.  


If the Email address and Fax No. fields in the database for the current data record (as in current invoice or statement, etc.) are both blank, then format the tag as Message ID Print_IT. In PDF-eXPLODE options, select, using the Print option, which printer you would like the exploded PDF to be sent to for printing.

3. On the Message ID Print_IT, check the Print option box and select 'Print Only'

4. In Crystal Reports,  make a text control for the full width of the page and stick it in the header and insert the formula  as  @PexTag 

5. Now preview the report in Crystal Reports and verify that the invoices are correctly coded with the tag relevant to that record.


Comments Comments
There are no comments for this article. Be the first to post a comment.
Security Code Security Code
Related Articles
I cannot figure out why my exploded document won’t email
Viewed 1264 times since Fri, Dec 5, 2014
How can I clear the print jobs queue and restart PDF-eXPLODE as it appears frozen?
Viewed 1122 times since Sat, Oct 1, 2016
How do I use PDF-eXPLODE with Microsoft Excel?
Viewed 2998 times since Thu, Dec 4, 2014
Why is my PDF not encrypted with the password I saved in the Tag?
Viewed 1212 times since Fri, Dec 5, 2014
Which characters cannot be used in the PDF-eXPLODE tag?
Viewed 1304 times since Fri, Dec 5, 2014
How can I automatically print one or more exploded PDFs that were not emailed?
Viewed 2130 times since Wed, Dec 3, 2014
PDF-eXPLODE is not splitting nor emailing any PDFs
Viewed 4692 times since Fri, Aug 14, 2015
How can I debug any processing issues?
Viewed 1587 times since Fri, Dec 5, 2014
Error: System cannot find the file specified
Viewed 2639 times since Fri, Dec 5, 2014
PDF-eXPLODE Print Server appears to hang when a User’s print output arrives on the server for processing
Viewed 1260 times since Fri, Dec 5, 2014

Subscribe to Knowledge Base

Get notified when new articles are added to the knowledge base.