Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] Third Party Tools

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-03-2014, 04:44 PM
garyb@se.rr.com garyb@se.rr.com is online now
Registered User
 
Join Date: 02-19-2004
Location: Saint Augustine, FL
Posts: 19
Question Open Word document and re-save as PDF

I was wondering if anyone had a macro or means to open a MS-Word document via automation and save it as a PDF document from with in VBP.

Unfortunately Microsoft does not include any command line switches to perform this operation and obviously would have to be done via automation.

I would then like to include this process as a step in VBP (version 7.7a by the way).

Any help is appreciated
Reply With Quote
  #2  
Old 01-03-2014, 04:53 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,752
https://www.google.com/search?q=vbsc...tAsFixedFormat
Reply With Quote
  #3  
Old 01-03-2014, 05:10 PM
garyb@se.rr.com garyb@se.rr.com is online now
Registered User
 
Join Date: 02-19-2004
Location: Saint Augustine, FL
Posts: 19
Thank you for the assist. Where should I put these scripts (Appears to be VBA) and how do I pass parameters to them. I created a step in my project ConvertWordToPDF, and pasted this script in but I dont see any way to pass it any parms.

Last edited by kinook; 01-04-2014 at 03:59 PM.
Reply With Quote
  #4  
Old 01-03-2014, 05:29 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,752
Typically, the dynamic value will be stored in a Visual Build macro (from a list in a loop, passed on the command-line, etc.), which you can reference in a Run Script step like so: %WORD_FILENAME%

http://www.kinook.com/VisBuildPro/Manual/runscript.htm

Or just put the filename in the code. You can put the function definition in project script code and call it from multiple Run Script steps.

http://www.kinook.com/VisBuildPro/Ma...ripteditor.htm
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 01:16 PM.


Copyright 1999-2019 Kinook Software, Inc.