Online Chat
 Call Us: 
1-877-744-1221
Browse Submit a Ticket
 
Advanced Search
Tools
Rss Categories

File Generation

Author: Eileen Wilde Reference Number: AA-00174 Views: 9462 Last Updated: 02/16/2010 07:53 AM 0 Rating/ Voters

File Generation

Sometimes it's useful to generate online files that contain user submitted data and much more useful to send it by email. Predefined file variables let you easily include such files as attachments in generated emails.

  1. PDF
  2. PDF with Table view
  3. XLS
  4. XLS with Table view
  5. CSV
  6. DOC

PDF

Generate PDF file with all the form's data represented by rows.

For example, if you need to generate a PDF file with user submitted data and send it by email, specify it as Attachment:  in your email template:

Syntax:

Attachment: {#%FORMFILE_PDF#}

You will receive email with an attached PDF containing the data submitted.

Example:

Email template:

To: recepient@somehost.com
From: sender@somehost.com
Subject: This is an email subject
Attachment: {#%FORMFILE_PDF#}

Message Body Text in free form (Either plain text or HTML formatted text)

PDF with Table view

Same as above, but the data is output in a table view.

Syntax:

Attachment: {#%FORMFILE_PDF_TABLE#}

You will receive email with an attached PDF containing the data submitted.

Example:

Email template:

To: recepient@somehost.com
From: sender@somehost.com
Subject: This is an email subject
Attachment: {#%FORMFILE_PDF_TABLE#}

Message Body Text in free form (Either plain text or HTML formatted text)

XLS

Returns a Microsoft Excel auto-generated file (all the data in one row)

Syntax:

Attachment: {#%FORMFILE_XLS#}

Example:

Email template:

To: recepient@somehost.com
From: sender@somehost.com
Subject: This is an email subject
Attachment: {#%FORMFILE_XLS#}

Message Body Text in free form (Either plain text or HTML formatted text)

XLS with Table view

Returns a Microsoft Excel auto-generated file (all the data in a table)

Syntax:

Attachment: {#%FORMFILE_XLS_TABLE#}

Example:

Email template:

To: recepient@somehost.com
From: sender@somehost.com
Subject: This is an email subject
Attachment: {#%FORMFILE_XLS_TABLE#}

Message Body Text in free form (Either plain text or HTML formatted text)

CSV

Return auto-generated CSV (comma separated values) file.

Syntax:

Attachment: {#%FORMFILE_CSV#}

Example:

Email template:

To: recepient@somehost.com
From: sender@somehost.com
Subject: This is an email subject
Attachment: {#%FORMFILE_CSV#}

Message Body Text in free form (Either plain text or HTML formatted text)

DOC

Generates DOC file with predefined layout.

You need to predefine layout in .mht file, to do this you need to create HTML page as template for your DOC file and save it as .mht (for example in IE or Opera).

Syntax (in config.php):

formfile_doc = variable, path_to_template

variable - is the name of the variable that will contain path to generated file, you can send this path via email, or attach this file with this path using

"Attachment":

Attachment: {#variable#}

Email template:

To: recepient@somehost.com
From: sender@somehost.com
Subject: This is an email subject
Attachment: {#variable#}

Message Body Text in free form (Either plain text or HTML formatted text)
Note:
File-generation is only available with the following licenses: Business, World Wide, ISP.