Jump to content

auto create PDF from Excel report


Recommended Posts

Hi, it seems topics similar to this one have been brought up several times both here and at the NI forums, but I haven't found an answer yet. Thought I'd try my luck with a new post.

Using the Report Generation Toolkit I am saving Excel reports to a folder location named with the current date. All that is required from the user is the click of a front panel button. I'd like to also create a PDF version of the report without any additional requirements from the user. I've got a couple of great tools at my disposal. I'm using Office 2003 and I have PDFMaker 7.0 installed and I can also print to Adobe PDF. I can get as far as prompting the user to choose a name and location for the PDF file, but like I said, I would like this to be automatic. I want the PDF to be named the same and saved in the same location as the Excel file from which it is generated without manually having to do this.

The Report Generation Toolkit allows me to call macros in Excel so it seems that if I knew Visual Basic I could control the file name and the save location this way.

OR

I can use the print report.vi to bring up a save dialog for the PDF file, but I don't know how to automatically choose the file location and save it. If I knew the right command line code, the System Exec.vi might allow me to do this?

Given my knowledge this is as far as I can get. Any suggestions? If not, maybe I need to spend some time getting up to speed with Visual Basic.

Link to comment

QUOTE (egraham @ May 6 2008, 06:49 PM)

I've used the http://home.iprimus.com.au/gilsmith/Products/Product_LabVIEW_PDF_Toolkit.htm' rel='nofollow' target="_blank">LabVIEW PDF Toolkit form Matrix Consultants. From the webpage:

QUOTE

The MATRIX Consultants PDF toolkit allows the user to programmatically create a pdf file ... and programmatically determine the target pdf file (with or without a dialog).

It was a long time ago, but as I recall it worked great.

Link to comment

QUOTE (crelf @ May 6 2008, 04:50 PM)

I've used the http://home.iprimus.com.au/gilsmith/Products/Product_LabVIEW_PDF_Toolkit.htm' rel='nofollow' target="_blank">LabVIEW PDF Toolkit form Matrix Consultants. From the webpage:

It was a long time ago, but as I recall it worked great.

Thanks for the insight crelf. Considering the $500, maybe I'm better off trying to learn a little VB.

By the way, did you write a LV book? I was on Amazon a while back and I thought I saw something that could have been written by you. I'm new to the LV community so maybe everyone already knows this.

Link to comment
  • 10 months later...

In the Open office version of Word, there is a "create PDF" button.

I didn't check, but I think it must be there in their Excel version too.

a free, simple, quick solution, without logo (some free pdf converters include a logo or watermark)

I don't know if there is any automatisation possible, easy or difficult, it's only a tip.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.