01-05-2007 03:55 AM
01-05-2007 04:27 AM
01-05-2007 09:24 AM
01-08-2007
03:30 AM
- last edited on
04-06-2025
07:18 PM
by
Content Cleaner
Hi Bazza,
Do you only want to open PDF and DOC files in Acrobat and Word?
If so, then both these programs have an ActiveX interface, you can open a reference to the programs and use the open/load methods provided in the interface to call the documents you need opened.
We already have a toolkit that talks with MS Word and Excel it is the LabVIEW Report Generation toolkit for Microsoft Office. If you bought LabVIEW in a developer suite you already have this toolkit on the LabVIEW toolkit CD.
As it seems you are only opening a document, this toolkit would not be good value for money as it allows you to create entire Word and Excel documents with font sizing/styles, Report layout, appearance, Chart creation, printing, e-mailing and so on.
If you only want to open a document I suggest you look at the example finder and search for "XL" this will give you a example of ActiveX programming.
Regarding Explorer, what are you trying to do with explorer that requires you to run a CMD window?
Regards
JamesC
NIUK and Ireland
01-15-2007 03:28 AM
01-15-2007 04:37 AM
@Bazza wrote:
Thankyou for your comments...
I do buy LV as part of a developer suite so could use the toolkit you mentioned. While PDF's and Word docs are the main files I open they are not the only. I guess I could open different file types different ways. I just hoped there was a better all round way to do it.
As far as Windows Explorer goes... My application is a file manager targetted directly at the file structures we use for developing functional test applications. The application handles all the file management requirements (i.e. WIP Backups, deploying, zipping/archiving etc) and its an added feature that you can 'explore' a given folder directly from the application. The general idea is that all our developers create systems using the same structure and approach.
Cheers,
Bazza
Have you looked at the VI in vi.lib\Platform\browser.llb\Open a Document on Disk.vi. It opens the document passed in according to its file ending and attempts to communicate with the target application through DDE if possible before using the command line. Even then I have not seen a cmd window popup so far.
Rolf Kalbermatter