Turn OFF auto open of PDF after creation

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Andrew - Tracker Support, Tracker - Clarion Support, John - Tracker Supp, Support Staff, moderators

Post Reply
adelgado
User
Posts: 2
Joined: Thu Sep 09, 2004 3:21 am

Turn OFF auto open of PDF after creation

Post by adelgado » Thu Sep 09, 2004 3:26 am

The minimum info always required is :

1: Your Windows operating system and version

Windows XP Pro SP2

2: The software and the version in use - both ours and any 3rd party
software (i.e. MS Word/Excel etc)

MS Access 2003
PDF-XChange PRO 3 SDK For Developers

3: A full description of the problem.

I have setup Access to print a report to PDF. I would like to not automatically view the created PDF. What parameter do I need to set?

Thank you,

Andy Delgado

Code follows:

Set Application.Printer = prtLoop
' Setting up PDF-XChange
pxcSObject.SetParamLong 0, "Save.Type", 2
pxcSObject.SetParamStr 0, "Save.ShowSaveDialog", "No"
pxcSObject.SetParamStr 0, "Save.FullFileName", "c:\ahs\pdf\incident1.pdf"
pxcSObject.SetParamStr 0, "Save.WhenExists", "Overwrite"
pxcSObject.SetParamStr 0, "App.Run", "default"
'
pxcSObject.SetParamStr 0, "Reg.Key", "Your Registration Key Here"
pxcSObject.SetParamStr 0, "Reg.DevCode", "Your Developer Code Here"
'
pxcSObject.Active = False ' DisAllow events for this object
pxcSObject.AutoApply = True ' Auto apply all passed parameters when printing started

John - Tracker Supp
Site Admin
Posts: 8204
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Thu Sep 09, 2004 10:18 am

Hi

This is would be the correct function/property setting.

pxcSObject.SetParamStr 0, "App.Run", "none"
or
pxcSObject.SetParamStr 0, "App.Run", "0"
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

adelgado
User
Posts: 2
Joined: Thu Sep 09, 2004 3:21 am

RE: Turn OFF auto open of PDF after creation

Post by adelgado » Thu Sep 09, 2004 10:57 am

Thank you for your reply. I modified as you suggested, but Acrobat Reader still opens upon creation of the PDF, what next?

John - Tracker Supp
Site Admin
Posts: 8204
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Thu Sep 09, 2004 11:26 am

Please can you run the VB example exe in the SDK 'Bin' folder

VbExCOM.exe - this is preconfigured to work as you require by us - if this works/does not - we can perhaps establish if there is some other system problem locally - or a coding issue.

thanks
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

BertS
User
Posts: 17
Joined: Wed Sep 22, 2004 7:35 am

Post by BertS » Tue Feb 01, 2005 12:55 pm

For others who read this: I just had the same problem, and find out that you should use 'Save.App.Run' instead of 'App.Run'

John - Tracker Supp
Site Admin
Posts: 8204
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Tue Feb 01, 2005 5:28 pm

Thanks Bert,

we have updated the Access example to relect for the next build.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

Post Reply