Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print a given page in Word
Message
 
To
22/05/2007 08:36:36
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01226792
Message ID:
01227639
Views:
30
This message has been marked as the solution to the initial question of the thread.
Hi Sylvain,

As far as I see, for some reason in the created mailmerge document each section has chr(12) at the text very end. It is an additional page break, and you do not have it in the original document.

I do not know where this chr(12) is coming from. At least I checked my similar mailmerge documents, and I did not discover chr(12) at the end of sections. So, probably it is coming somehow from the method you used to create the mailmerge document.

It would be good to know why this additional page break appears, but for now you can quickly fix the problem while shifting the end of selection:

oword.Activedocument.Sections(3).Range.Select
oWord.Selection.End=oWord.Selection.End - 1
oword.ActiveDocument.PrintOut(,,1)

Good Luck


>I've sent you the documents by email.
>
>>Not at the moment. Probably it depends on how this blank page has been created in the original document. And probably it is more easy to control it in the original document before creating a mailmerge.
>>Anyway, it would make things easy for me to review your document first.
Previous
Reply
Map
View

Click here to load this message in the networking platform