04-17-2012 10:46 AM
Hi,
I'm using XPsp2, LV 2011sp1, standard report, append image VI.
The appended image appears at a low resolution (screen resolution?) when printed. Text is perfect.
If i resize the image to a larger resolution (dpi) it resizes it to fit within the margins but retains the low resolution. The auto-re-sizing results in a distorted image if it is resizes to fit the width, but does not need to resize to fit the height.
Can i increase the resolution of the printed images in the report? -to 150 or 300 dpi so they do not looks so pixelated when printed?
Thanks.
04-19-2012 12:48 PM - edited 04-19-2012 12:50 PM
To follow up, the response from an email support request.
"Hi Blue,
Thanks for the information; it was really helpful in understanding your problem further. I've managed to print out the exact same type of response as you've been getting; the larger DPI image just comes out a lot bigger for Standard reports than the smaller DPI image. I also dragged the files into MS Word and saw that the images were resized appropriately. Interestingly enough, I set the type of the report to 'Word' and when printed, the images came out at the appropriate resolution. This means that inside of the MS Office programs, there is some internal compensation for recognition of image DPI scaling that isn't native in the Standard report in LabVIEW.
I also selected to print a 'HTML' implementation of the report. The images were again mismatched in this state.
Q: How do we work around this issue?
A: There are two options I see at this point. We can either try reconfiguring the DPI of the printer that we're printing to, or we can take a copy of the resized image in Word by taking a snap of the screen and then cutting the resized image out. I just tried this out and the resized image that I cut out from a printscreen of MS Word looks just as expected on the report.
I took a look inside the Report Generation VIs that were used for printing and I couldn't find any aspects that we could modify to alter the interpreted DPI of the images. This is because the lower level print functionality is hidden within the higher level LabVIEW Property Nodes and is therefore inaccessable from any Block Diagram code. In this regard, I don't believe that there are any direct features native in LabVIEW that as LabVIEW Users, we will be able to modify. I made a VI to resize the image in LabVIEW and then print the output, however the issue with this is all of the quality in the original image was inevitably lost.
You can head over to the LabVIEW Idea Exchange and post this feature request on the forums and get other LabVIEW Users to Kudos it; the higher the Kudos, the more change of the feature being incorporated into a newer release of the toolkit. I definitely agree that this would be a great feature and I'd be more than happy to contribute.
LabVIEW Idea Exchange -
http://forums.ni.com/t5/ideas/v2/ideaexchangepage/blog-id/labviewideas
I hope that this is okay. If you have any further questions or ideas, please don't hesitate to get back in touch. I want to make sure you're completely satisfied with the solution that we reach.
Kind Regards,
...."
So in summary: No, you cannot adjust the resolution (DPI) at which the Standard Report Generation toolkit processes appended images.... Unless anyone knows better? ...i can not get satisfactory results from either of the suggested work arounds.
BR
Blue