LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

printing a graph with NIReports

Hello. I am generating a report using the reportgen.fp driver and I've ran into a snag. I need to print a graph that I generated on one of my panels. I thought of using the NIReports_AppendImageFile, but the graph is not a bitmap. Is there any way of display this graph in my NIReport? Any suggestions would help.

Thanks,
Jason
0 Kudos
Message 1 of 4
(2,839 Views)
Use the GetCtrlBitmap to get a bitmap of the graph, then use SaveBitmapToFile (in the programmer's toolbox) to save the bitmap to a file. Then you can put it in the report.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 4
(2,839 Views)
That works fine, but is there any way to use a clipboard function to perform this. I don't want to save the bitmap to a file. I was hoping to someone store this bitmap temporarily and then discard it after the report prints. Thanks for your help.
0 Kudos
Message 3 of 4
(2,839 Views)
No, you need a file for NI-reports. Just delete the file when your done (DeleteFile function).

Chris
0 Kudos
Message 4 of 4
(2,839 Views)