<< Click to Display Table of Contents >> Navigation: Tasks > Draw Shapes / Text objects on PDF > VB6 add rectangle and text |
The ActiveX defines the method AddDrawObject a little different. Here you have to pass the parameters to the function and not in a record:
Add Text:
WPViewPDFX1.AddDrawObject DrawAndAddOne, "", 0, 0, 0, 0, 0, 100, 0, 0, 0, 255, 3, 0, 0, 0, "HALLO"
Add a rectangle (the user has to draw a rectangle)
WPViewPDFX1.AddDrawObject DrawAndAddOne, "", 0, 0, 0, 0, 0, 1, 0, 0, 0, 255, 3, 0, 0, 0, ""