LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Errors and bad image printout with Standard Reports generation VI's.

Hi, I'm using LabView 6.1 over a WinXP SP1 machine and these are my problems:

I'm using report generation VI's to generate a Standard Report, mixed with text and graphs.

In development mode there are three problems to print it:
1. If I append two or more image (using any combination of Append Control Image, Front Panel Image or Image From File To Report VIs) to the report and I run it, LabVIEW closes when it executes Print Report VI, without print anything.
2. If I append only one image, when I print the report the image is on the top of page and the top text (not header but just the text apened before image) is placed after the image.
3. If I modify (only add a costant, without change anythin
g of the original code!) the Append Control Image, Front Panel Image or Image From File To Report VIs, the image and text are printed in correct order, but the image width is limited by a unexpected 4cm right margin: the result is a "width compressed" image less wide than the original image. (the text is printed with the correct margin)

As soon as I make an application and I run it to the same machine, I get an "Error -2147352567 occured at Unable to load picture..in Append Image to Report.vi->myvi.vi." If I skip the VI "Append Image to Report.vi", I can print the report without problems.

Please, anyone can help me?
0 Kudos
Message 1 of 5
(3,115 Views)
Hello,

Sometimes this error occurs because of problems with the compilation of the Report Generation VIs. Please take a look at the KnowledgeBase at the followin website for more information on a potential fix for the problem:

http://digital.ni.com/public.nsf/websearch/5A42F1725790DFBC86256B900075F884?OpenDocument

If this does not help, please post the part of your VI that is giving you trouble, or I could try to reproduce it on my own if you would like.

I hope this helps!

Liz Fausak
0 Kudos
Message 2 of 5
(3,115 Views)
I try to post an attachment (a zip file) but I get an error:
"An error has occurred on our system.
We would appreciate it if you would send us an email to report this problem."

How I can do it?
0 Kudos
Message 3 of 5
(3,115 Views)
The recompilation of VI's have resolved the problems 1. and 2. in development mode, but now I have the 3. problem (image with compressed) always, also with the original Standard Report VI's. The "Error -2147352567" during execution of application doesn't disappear!

Now I have post a zip file (renamed with "xxx" extension...no error now!) in which you can find a VI that is giving the trouble and a pdf file of my "compressed" printout. If you have some free time, please, try this VI.

Many Thanks.

Raffaele Z.
0 Kudos
Message 4 of 5
(3,115 Views)
Hi Raffaele,

Thank you for taking the time to compile and send all of those files. I was able to run your VI and I did get the error you were talking about. However, I think I narrowed down the problem. It looks like the file path for the location of the .jpg image was being constructed incorrectly. When I placed the .jpg image into just the C:\ directory, and wired the file path directly to make sure it was correct, I did not get the error.

Try to see if that approach helps, at least to narrow down the error. Please let me know if I can be of further help. Thanks!

Liz Fausak
National Instruments
0 Kudos
Message 5 of 5
(3,115 Views)