Board index » delphi » Visio and Delphi
Jon-Olav Hermansen
Delphi Developer |
Visio and Delphi2003-09-15 10:20:22 PM delphi248 Hello, I am trying to use the Visio 11 Drawing ActiveX Control in a Delphi( 5 or 7) application. I imported the ActiveX component, and placed it on a form. It works fine, except that I am not able to move any shapes in the control. Adding and resizing works without any problem. I tried the same in VB6, and had no problem with moving. This is the only line of code in both the VB(Visual Basic) and Delphi application : [VB] : DrawingControl1.Document.Pages.Item(1).DrawRectangle 1, 1, 2, 2 [Delphi] : DrawingControl1.Document.Pages.Item[1].DrawRectangle(1, 1, 2, 2); -- Regards, Jon-Olav Aa. Hermansen ------ System Consultant -- XXXX@XXXXX.COM Tlf +47 69 17 70 44 -- Fax +47 69 17 70 12 -- ICQ 92681182 |