myLittleTools Community Forum

Welcome Guest Search | Active Topics | Members | Log In | Register

Concatenate multiple RTF files Options · View
Edd
Posted: Thursday, November 11, 2010 4:54:40 AM
Rank: Newbie
Groups: Member

Joined: 11/11/2010
Posts: 1
Points: 3
I have an app which needs to mimic mail merge where users create a template rtf file and data is merged from the database to create a merged list.

Can myLittleWriter help?

Open to any ideas.

elian
Posted: Friday, November 12, 2010 8:11:39 AM

Rank: Administration
Groups: Administration

Joined: 9/11/2006
Posts: 605
Points: 649
Location: Enghien Les Bains, France
You should be able to do this using Custom Variables:

mlw_var_N
Write Only

N represents an integer from 1 to 10 (i.e. mlw_var_1, mlw_var_2, ... mlw_var_10)

This is used in conjunction with addHTML and addHTMLFile Methods. This allows you to place special tags <MLW_VAR_N> in your HTML. These tags will then be replaced with the property value. The purpose of this method is to allow the creation of special template type files so that documents can be created from various data sources on the fly.

Example:
Code:
mlwObj.mlw_var_1 = "Elian"
mlwObj.mlw_var_2 = "webmaster@mylittletools.net"
mlwObj.addHTML "Dear <MLW_VAR_1>, we well received your order and we will shorly send you the invoice to <MLW_VAR_2>"


Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Theme created by myLittleTools
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.