Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Bad image quality of CWGraph (File or Clipboard copy) with ControlImage method?

I use a CWGraph control in my Visual Basic 6.0 project. To create a CWGraph image for report in WORD, i create an image file (SavePicture instruction) or a ClipBoard copy (SetData method) with the ControlImage method applied to a PictureBox control with the PaintPicture method. The image have some defects and differences with the original : The Yaxis labels touch the ticks axis, with large plot line width the image plot width is not correct (no constant width) and not rigorously at the same position (see attached file : the blue plot (width=1) should be situated to the middle of the red plot (width=5).
0 Kudos
Message 1 of 6
(6,680 Views)
Hello FEE

Can you attach some code I could use to reproduce the problem?

Thanks

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 6
(6,678 Views)
Ok Bilal.

See attached file. It's a simplified soft of my application.

Thanks for your contribution.
0 Kudos
Message 3 of 6
(6,678 Views)
Hello

We are currently having a beta for Measurement Studio. This is a public beta where we let customers evaluate beta software versions of the next release of Measurement Studio. If you can go to the beta site ( http://ni.com/beta ) and sign up for the Measurement Studio beta, you can evaluate this behavior in the newer CWGraph control and see if it provides you the desired behavior.
The main reason you are seeing problems like this is that the ControlImage function selects 600 dpi to draw the image out, since this is a standard number that works with most printers.The 7.1 controls will now provide a ControlImageEx function that lets you select the dpi for the image. The standard for most screens is 96 dpi.

Please email the beta coo
rdinator( mstudio.beta@ni.com ) once you have signed up.

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 4 of 6
(6,680 Views)
Sorry Bilal.

At this time i can only use the Windows NT4.0 with Visual Basic 6.0 environment who is not compatible with .net environment required for the 7.1 measurement studio beta version.
0 Kudos
Message 5 of 6
(6,678 Views)
hello FEE

I'm sorry, I should have clarified this some more. The ControlImageEx method has been added to the VB 6.0 ActiveX controls for Measurement Studio 7.1. Once you sign up at the beta website, please send the beta coordinator an email at mstudio.beta@ni.com. We can then provide you a beta version of the 7.1 ActiveX control for evaluation.

-Bilal
Bilal Durrani
NI
0 Kudos
Message 6 of 6
(6,680 Views)