05-17-2011 10:21 AM
We are trying to generate a report that includes the contents of a tab control (graphs, text). Using the Append Control Image to Report.vi, we are only able to print out the active tab and the tab is cut off of the image. How can we generate reports that include all the tab pages and their contents and include the labeling tabs?
Thanks in advance.
Jim
05-17-2011 01:00 PM - edited 05-17-2011 01:00 PM
You know, I honestly don't think there's a way to do this. I never tried to print a tab control like that and now I can see that it's pretty lousy. Definitely something that needs to be fixed.
The only workaround that I can think of is to programmatically change the tabs and then get an image of the whole front panel.
05-17-2011 01:36 PM
Thanks for taking a look at it. We now are able to programmatically change the tab and print an image of each one. For the cut off of the tab of each page in the printing, though, we might just need to talk with someone at NI.
05-17-2011 01:49 PM
Perhaps you should create a subVI showing all the indicators you want to print without tabs. Optimize it for printing, not for user interface. Print that rather than the main front panel.
Lynn
05-18-2011 12:17 PM
Hey Jim,
This is a known issue with LabVIEW, corresponding to CAR #54950. s_mercurio detailed the accepted workaround. You can track that CAR number in the release notes of future versions and patches of LabVIEW to see when it is fixed. Until then, it sounds like you got the workaround implemented and working. As for the cutoff issue, can you post a screenshot of that? I might be able to help after seeing the image. Hope that helps!
05-18-2011 12:57 PM
I do have a workaround for makinging the prints but it looks like some sort of cropped screensave that cuts off the tabs. In my sample I was printing out 3 of the tab controls and you can see there are three by the cut off tabs. Is there a setting to allow for more of the graph and its surroundings to be "captured"?
05-19-2011 06:47 PM
Hey Jim,
I did a little bit more research, and it turns out that incorrectly cropping the tabs is also a known issue with LabVIEW. That corresponds to CAR #212249. There is no accepted documented workaround, but you might be able to get away with taking an image of the full front panel, rather than just the control image. Have a great evening!