08-05-2005 09:04 AM
08-05-2005 11:42 AM
You can use the 3D graph in VB.NET. Whenever you use ActiveX controls in .NET, you actually use them through a .NET COM-interop wrapper. The interop wrapper interface will use the .NET System.Object type in place of variants. .NET's COM interop will handle converting the .NET type to the corresponding variant type when you use the interop wrapper.
- Elton
08-05-2005 01:00 PM
08-08-2005 03:21 AM
Thanks folks
One more question-
I would also like to know if Measurement studio ocx's (particularly the graph controls and other UI controls) are usable within a Delphi environment
Thanks in advance
Paul
08-08-2005 09:04 AM
Hi there Paul,
Measurement Studio controls are 32-bit ActiveX controls that are designed to work in any ActiveX-compliant control container. However, some containers do not work with the functionality required by our controls. For example, Borland C++ Builder and Delphi do not handle ActiveX controls developed using Visual Basic
Please let me know if there is anything else
Thanks
Katherine Robinson
Technical Support - National Instruments (UK)
08-12-2005 02:58 AM
Hi
Well I have tried importing your evaluation version of cwgraph3d into a Delphi project and it seems to work fine
I cannot however find a way to print the control image.
I have been told that our project will be developed with delphi ( company wide policy)
So I understand that you dont support delphi but if anyone knows how to do this in delphi we can go ahead and use measurement studio, otherwise we have to find an alternative.
Any ideas gratefully received.
Paul
08-12-2005 10:14 AM
'Set the image of the picturebox control in VB to
'an image of the entire graph
Set Picture1.Picture = CWGraph3D1.ControlImage
I hope this helps
08-15-2005 04:55 AM
Sorry folks, another question.
When rotating a graph, the text on the axes becomes reversed, I know that this would be expected but other vendors seem to handle this correctly, is there a way to correct this?
Paul K
08-22-2005 07:18 AM - edited 08-22-2005 07:18 AM
{Get the image from the 3d Graph that is appropriate for the
printer resolution using the ControlImageEx method}
picture := TPicture.Create;
SetOlePicture(picture, CWGraph3D1.ControlImageEx(dpiX, dpiY));
{Calculate scaled rectangle for differences in Screen and Printer
resolution}
rect.Left := 0;
rect.Top := 0;
rect.Right := round(picture.Width * dpiX/Screen.PixelsPerInch);
rect.Bottom := round(picture.Height * dpiX/Screen.PixelsPerInch);
{Print the image}
Printer.BeginDoc;
Printer.Canvas.StretchDraw(rect, picture.Graphic);
Printer.EndDoc;
{Cleanup}
FreeAndNil(picture);
end;
Message Edited by mahesh on 08-22-2005 07:19 AM
08-22-2005 07:21 AM
Thanks Mahesh
Any chance you know what to about the axis labels when rotating, other tools I have seen display these correctly nomatter how you rotate the graph but the NI control rotates the labels as well making the graph unreadable or giving no point to printing the graph if rotated.
Thanks
Paul