Continuous page size

R

Rosemary

I have a Billing system that ouputs a Bill and a Word Document. Within the
Word Document, I need to insert verbiage for the categories selected on the
Bill. It can be from one to 29 or 30. Currently everything works, except
that there are page breaks within the verbiage that is inserted, causing gaps
within the complete Word document. I'd prefer to create the report of
categories, output to an rtf and insert it with a bookmark than have to
create bookmarks for each category that could be inserted. Not only that but
if the category number changes, I have to maintain the Template with the
bookmarks that is used to create the Word Document. Is there any way to
accomplish this? I tried setting a custom page size that was 8 1/2 by 120,
but then the Output to would not work, saying OutputTo action was cancelled.
I have my default printer set to Adobe PDF
 
R

Rosemary

Rosemary said:
I have a Billing system that ouputs a Bill and a Word Document. Within the
Word Document, I need to insert verbiage for the categories selected on the
Bill. It can be from one to 29 or 30. Currently everything works, except
that there are page breaks within the verbiage that is inserted, causing gaps
within the complete Word document. I'd prefer to create the report of
categories, output to an rtf and insert it with a bookmark than have to
create bookmarks for each category that could be inserted. Not only that but
if the category number changes, I have to maintain the Template with the
bookmarks that is used to create the Word Document. Is there any way to
accomplish this? I tried setting a custom page size that was 8 1/2 by 120,
but then the Output to would not work, saying OutputTo action was cancelled.
I have my default printer set to Adobe PDF

This seems to work: Once the document has been assembled, I added the
following:
'Strip out page breaks caused by inserting the Category Rpt into Word
With Doc.ActiveDocument.Range.Find
.ClearFormatting
.Text = "^m"
.Replacement.Text = ""
.Execute Replace:=wdReplaceAll, Forward:=True,
Wrap:=wdFindContinue
End With

(Just in case anyone ever needs to do this)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top