cancel
Showing results for 
Search instead for 
Did you mean: 

MS Word Report Generation Filename Input

SOLVED
CastleWorks
Member
Solved!

MS Word Report Generation Filename Input

I am using the MS Office Report Genertation VI and selecting a custom template.

 

I am able to populate all fields correctly, but is there a way for me to specify the "save as" filename as an input?

The report filename will change each time the program is ran based on the product serial number.

 

Is there a way to create a filename input?

9 REPLIES 9
aputman
Trusted Enthusiast

Re: MS Word Report Generation Filename Input

Message contains an image

Do you mean the "Save Report to File" VI?

 

Capture.PNG

aputman
CastleWorks
Member

Re: MS Word Report Generation Filename Input

Message contains an image

I am using the following VI to create the report.

 

report.png

aputman
Trusted Enthusiast

Re: MS Word Report Generation Filename Input

Then don't use that.  Smiley Wink

 

Actually you can expand the express VI to show other config parameters, including save path.  Drag the handle on the edge of the VI downwards to reveal other parameters.

 

I try to avoid using the Express VIs because they are very limited in their functionality and you can only do the thing they were designed to do, which is usually not what I am wanting to do.  You can create a copy of the Express VI and using the copy, right click it and open the front panel to see the underlying code behind it.  Then you can use that code as a basis for what you want to do and customize it to your heart's content.  However, you won't have the dialog box functionality that you had before.  

aputman
CastleWorks
Member

Re: MS Word Report Generation Filename Input

Thanks for the input, I do see the save path input when using the basic report for Word, but if I select custom report for Word (I'd like to use my own template) that option seems to go away.

 

 I may try modifying the VI like you say.

Highlighted
aputman
Trusted Enthusiast

Re: MS Word Report Generation Filename Input

Message contains an image

Works for me.

Capture.PNG

aputman
CastleWorks
Member

Re: MS Word Report Generation Filename Input

Message contains an image

Hmmm, interesting. Not sure what I am doing wrong. Do I need to do something on my template possibly?vi.png

aputman
Trusted Enthusiast
Solution

Re: MS Word Report Generation Filename Input

Do you have the report destination set to "Save to File"?  If it's set to Open in Office, the save path input goes away.

aputman
CastleWorks
Member

Re: MS Word Report Generation Filename Input

FOR THE WIN!.....yep that was my oversight.  Thanks for the help!

 

aputman
Trusted Enthusiast

Re: MS Word Report Generation Filename Input

Mark the solution so that others coming along can skip straight to the answer.  Kudos are also appreciated.  

aputman