LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Report Generation using word template, the application does not find template file

Dear Folks,

In the middle of completion of a project, im stuck in what seems like a simple problem maybe..

I'm creating word report using a template..it works fine in the development system.

Have MS word 7 version on this system.Have included LVclass andNIreport and template in source files- always included..build fine and runs fine on the development computer

 

In target system,

it says unable to find file.. im assuming its template file as the diplay shows path for the development system's.. how ever the template file is present in data folder fo the application..

One target system has MS word9 version and another one has MS word 16.. unable to figure out whats the issue.. 

Attached are screenshots and the vi..Any help is greatly appreciated..

 

Thanks,

Palvi

0 Kudos
Message 1 of 4
(2,801 Views)

hi palch

I didn't look into your vi but your path seems too long which sometimes causes these kind of errors, try placing template in c:/ or d:/.

bp
0 Kudos
Message 2 of 4
(2,781 Views)

Thanks bharath for looking into the code.. I tried a shorter path name.. But no luck same error.. The template file is right in the data folder.. the application just doesnt seem to get the path or is it to do with the versions of MS word..

0 Kudos
Message 3 of 4
(2,773 Views)

hi palch,

you made template path as absolute, the template should be present in that path. if you want the template to be in data folder you must configure in program to using relative path.

use application directory path and build the path to data folder\template..

bp
0 Kudos
Message 4 of 4
(2,762 Views)