06-20-2002 04:09 PM
06-21-2002 03:29 PM
04-25-2005 03:43 AM
04-26-2005
08:04 AM
- last edited on
04-14-2025
02:21 PM
by
Content Cleaner
Jeremy was referring to the April 2001 Version of the LabVIEW Report Generation Toolkit for Microsoft Office User Manual Here's the paragraph he was referring to:
Formatting Graphs
You can use the VIs located on the Graphs and Pictures palettes of both the Functions»Report Generation»Word Specific VIs and the Functions»Report Generation»Excel Specific VIs palettes to format existing graphs. The Word Format Picture VI and the Excel Format Picture VI can set graph size or change color type. Other Graph and Picture VIs can set color attributes, modify scale, and set font attributes for existing graphs. To specify the location of a graph that you want to format, transfer the graph index number from the Inlineshapes or Shapes collection to the graph index parameter.
07-12-2005 08:53 AM
04-17-2007 10:29 PM
I know that the thread goes back to 2005, but I still have this problem of not being able to change the font of both the Legend and the Chart title when using Excel Report Generation tool from within LabVIEW. Has this problem been looked at since then? Is there still no way to change the font size of chart legend and title?!
I've also tried Macros, and I couldn't make it to work because of the way the report generation tool creates charts as embedded objects.
Anyone had luck in this?
Thanks,
Zeidan
04-19-2007 04:01 PM
Hello Zeidan
The graph title and legend font sizes can be changed by accessing a low level VI (Excel_Insert_Chart.vi) that is part of the excelsub.llb that is located at (C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\addons\_office). This VI is called dynamically from within the Excel Insert Graph.vi and it uses VI server technology to access the Excel exposed properties. Attached to this post is an image of the block diagram of this VI after I have modified it to set the font sizes of the title and legend to 15. The circles in the image represent what I had to add to accomplish this.
Best Regards,
Ayman Kabire
09-25-2007 02:58 PM