LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving graphs in vector format (WMF)

I'd like to save data as a graph in some vector (e.g. WMF) format. Any ideas ? Does LabView Office Report Generator add-on support it ?

Thank you,
Sergey.
0 Kudos
Message 1 of 8
(3,594 Views)
Sergey -

LabVIEW does not create .wmf files. The Report Generation Toolkit will allow you to append .wmf image files to a report, but not to create them.

Jack Arnold
Application Engineer
0 Kudos
Message 2 of 8
(3,594 Views)
Sergey,

The only way I know to do this is manually. Do an alt-printscreen, drop it into MS Power Point or Paint, and save it from there. Doing a print screen creates a bitmap/metafile in Windows. The only way I can think of to do this programmatically would be to use the Windows API dlls. On that, you are on your own.

Good luck and please let us know how you do...

PS: I believe that there a windows API toolkit somewhere on here. I have it, but it doesn't include the functions you need. I would suggest using Visual Studio or some other resource to find the functions you need, and call them.
0 Kudos
Message 3 of 8
(3,594 Views)
Labviewguru wrote:
>
> Sergey,
>
> The only way I know to do this is manually. Do an alt-printscreen,
> drop it into MS Power Point or Paint, and save it from there. Doing a
> print screen creates a bitmap/metafile in Windows. The only way I can
> think of to do this programmatically would be to use the Windows API
> dlls. On that, you are on your own.
>
> Good luck and please let us know how you do...
>
> PS: I believe that there a windows API toolkit somewhere on here. I
> have it, but it doesn't include the functions you need. I would
> suggest using Visual Studio or some other resource to find the
> functions you need, and call them.

The version of Paint that I am using (Win2000) doesn't let you save the
image as a Windows metafi
le.

It lets you save as a bitmap, not the same thing!

Mark
0 Kudos
Message 7 of 8
(3,594 Views)
Hi Sergey,

- regarding WMF format, take this link as a starting point and you'll get maximum flexibility ... and unfortunately, a lot of work
- one workaround idea is to print your graph using an Adobe Acrobat Printer in order to obtain PDF or PS files

Good Luck!
0 Kudos
Message 4 of 8
(3,593 Views)
>> take this link as a starting point and you'll get
>> maximum flexibility ...

I cannot see any link in your post 😞
Sergey.
0 Kudos
Message 5 of 8
(3,593 Views)
Sorry for the missing link ... this is the one [http://www.wvware.com/caolan/index.html].
0 Kudos
Message 6 of 8
(3,593 Views)
Window Metafile can record both vector (drawing, such as a line, a rectangle, etc.) and raster format (wrap a bitmap). One can retrieve LabVIEW object image
by calling "Get image", and wrap the image, save as a
.wmf file. The file will be a little bit bigger than
bmp format. It can be done. Let me know if you are
interested. wmf format is old. One should use emf
instead. LabVIEW picture can be converted into true
vector metafile. But only NI can do it since the
format of picture hasn't been released yet.

George Zou
http://gtoolbox.topcool.net
George Zou
0 Kudos
Message 8 of 8
(3,593 Views)