08-11-2010 07:52 AM
Hi,
I'm trying to convert a MS Word-2007 document into PDF file. I have a plugin installed in MS Word 2007 which converts the Word document into PDF.
I'm working in LV2009. I have used the SaveAs option in the ActiveX control (Pl Refer to the attachment). I'm getting the following error :Type mismatch. in WordActiveX.vi error code:-2147352571.
Does anybody have a solution for this error?
08-12-2010 08:42 AM
Hi Shobana,
I don't know what plug-in you are using but I think the save-as command will not work for this plug-in.
Maybe you can create a macro (in Word) that converts the Word document to a pdf and call this macro from your VI
Kees
08-12-2010 08:55 AM
Then you create a PDF. You will normally use a PDF printer driver. That print the document to a file. So I would investigate different print options.
08-12-2010 10:20 AM
There are examples and manual. Wish this can help you.
PS. Because it just can upload less than 5MB, so I will post twice
08-12-2010 10:22 AM
There is a manual.
08-12-2010 02:14 PM
Hi,
Looks nice to bad I can not read French.
Can you tell on what page the examples are ?
08-12-2010 10:07 PM
Here you are.
08-12-2010 11:02 PM
Thankyou all for the ideas..
I too have figured out a different solution.
The plugin which i mentioned about is "Microsoft Save as PDF" offered by Microsoft Corporation. You would find it here--
Once this convertor is added to MS Office, the ActiveX will support the functionality too. You must specify the required file format's value in the SaveAs method. A list of all supported formats and their values can be found in http://msdn.microsoft.com/en-us/library/bb238158%28office.12%29.aspx
Pl find the attached vi..
08-12-2010 11:15 PM
It works fine for me.
08-12-2010 11:16 PM
I used pdf995 print driver but it gives prompts while converting the doc. And i couldnt supress all the prompts! So i had to skip that option..