Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / December 2006

Tip: Looking for answers? Try searching our database.

Mailmerge multiple lines (invoice etc)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew Kennard - 19 Dec 2006 16:46 GMT
Hi all

At some point in the near future the application we are writing will need to
call/automate/workwith Word for the creation of invoices etc

I understand the basic mailmerge stuff and it is quite easy to put an
address block in etc.

But what do people do when they want to merge in an invoice style block
where they do not know howmany "lines" there will be ?

Does anyone out there use Word for invoices ? if so how do you deal with say
the four columns Item Description, Qty, Price, Total. As one invoice could
be a single line and another could be 20 or more ... even two pages.

Obviously I could setup masses of merge fields and have a fixed size records
but this seems too limiting.

I need my application to be 'in charge' so don't really want to go down the
VB script route to automate Word but this is not out of the question so long
as my app knows what was going on and VB could get at te SQL data in a
realitivly complex relational database without miles of code

Thanks in advance for any tips

Kind Regards

Andrew
Doug Robbins - Word MVP - 19 Dec 2006 18:05 GMT
That would amount to a "multiple items per condition (=key field)" mailmerge
which Word does not really have the ability to do,

See the "Group Multiple items for a single condition" item on fellow MVP
Cindy Meister's website at:

http://homepage.swissonline.ch/cindymeister/mergfaq1.htm#DBPic

Or take a look at the following Knowledge Base Article

http://support.microsoft.com/default.aspx?scid=kb;en-us;211303

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> Hi all
>
[quoted text clipped - 24 lines]
>
> Andrew
Andrew Kennard - 19 Dec 2006 19:00 GMT
Doug

Thanks for the info. We'll probably be using Office XP or later but from the
link you have given me it does look like the way to get it to work is from
the Word side by either accessing the data direct from the database or merge
it in a single complex fields and then use VB to split it up.

What I'm really after is to use the power of Word for page layout placing
images etc etc and then just have simple markers where the varibales go.

Not all of the documents I want to produce will be invoices but the will
need the "muliple row" features.

I'm desparate not to go down the writing my own mini WP route as have been
here many many moons ago and whilst it gives maximum control it's just so
much code and your always have to add new features !

Thanks

Andrew

> That would amount to a "multiple items per condition (=key field)"
> mailmerge which Word does not really have the ability to do,
[quoted text clipped - 37 lines]
>>
>> Andrew
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.