Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Gary Jones
 
Posts: n/a
Default Merge csv file into dynamic table

I have an application that generates a csv file from a sql database. I want
to be able to merge this data into a table within a word document.

The problem i have is that the csv could have any number of records, and
ideally i do not want to create a table that is three pages long if there are
only a handful of records, and if i have more records than rows in the table,
it will just merge into a new page.

I've used Next Record If to check for blank rows to get the rows into
the table but i don't want the table longer than necessary.

Alternatively, is there a way to merge without throwing the page break?

And before somebody says about just inserting the csv file as an object -
the csv file is given a dynamic name (datetime/job number stamped), and the
mail merge is part of an automated process so i can't just embed the file
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending Mail Merge to Email to Multiple Recipients in the Same Mes Mark V Mailmerge 13 April 21st 23 05:06 PM
INCLUDETEXT File is Determined by Merge Field Clint Marshall Mailmerge 2 June 1st 05 10:16 PM
How to creat relative and shorthand file path names? 2dogs Microsoft Word Help 1 May 15th 05 12:11 PM
Templates gman Page Layout 17 April 22nd 05 06:35 PM
Table headers/footers and layout Keith Page Layout 1 April 8th 05 07:37 PM


All times are GMT +1. The time now is 08:01 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"