Writedoc

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Writedoc

Postby bsyryn » Fri Oct 07, 2005 10:42 am

I have the following problem. I have a interactive vpe-document. In my program the user can open the document (readdoc), change or fill-in some fields and then save it again (writedoc). The problem is that all the time the vpe-doc gets bigger and bigger because it always appends new pages with the changes made by the user. I only want that a user opens a document, change it, and then save it, again and again. Is there a solution for this ?
bsyryn
 
Posts: 1
Joined: Fri Oct 07, 2005 10:38 am

Postby IDEAL Software Support » Fri Oct 07, 2005 4:35 pm

Yes, delete the file before calling WriteDoc().

The functionality of WriteDoc() is, to append the current document to the existing file. Therefore the file must be deleted first, if you don't want this behaviour.

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 59 guests

cron