How do I save the current document?

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

jtesta46
User
Posts: 5
Joined: Sun Mar 04, 2012 8:21 pm

How do I save the current document?

Post by jtesta46 »

Forgive me, I'm new to this! Without using toolbars within the control, I want to have a save button in my application. How do I simply save the current document without dialog or user interaction?

The control is named PV. I have tried:

PV.SaveDocument 0, , 0, 0

It saves as a new file named 0. How can I specify to just save the current file?
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: How do I save the current document?

Post by Stefan - PDF-XChange »

Hello jtesta46,

Please check the Viewer AX Manual section
3.3 How to Save a Document?

There are samples in various programming languages, and the same should be also implemented in the sample projects available with the Viewer SDK.

Best,
Stefan
jtesta46
User
Posts: 5
Joined: Sun Mar 04, 2012 8:21 pm

Re: How do I save the current document?

Post by jtesta46 »

Thank you, I didn't even notice that section of the book! I was leaving the destination file name empty where I should have used a zero length string.

Thanks.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: How do I save the current document?

Post by Stefan - PDF-XChange »

:)