Hi,
I used the Dynamic PDF Merger using winform VB.net. The output .pdf file is ok when report is run the first time. However, the next time I print the same report (using same output pdf name), it is being appended to the previous .PDF file until I restart the application. I'm using the browser control to view the PDF file in the application. Is there some kind of an "initialize" method to force it to start on an empty file everytime?
Thanks
Bert
Need help..
Re: Need help..
Support · Oct 13, 2008Hello Bert,
When you save the PDF using the Draw method, the file is overritten (not appended). A couple potential causes of this could be (1) if you append the pages to an existing MergeDocument variable, or (2) if you are outputting the PDF using a FileStream object. If (1) is causing this, make sure you reset your MergeDocument variable to a new MergeDocument() each time you create the document. If (2) is causeing this, make sure you close the FileStream after outputting the PDF and openning it when you create the new one. If none of these help, feel free to send your code over to support@cete.com, and we'd be happy to take a look at it for you and give you some pointers.
Thanks,
ceTe Software Support Team
Re: Need help..
Forum member · Oct 13, 2008Hi,
I failed to re-initialize the MergeDocument public variable. It's working now.
Thank you so much for the help.
Bert