|
|
 |
hemant30$2007050 hemant30 02/20/2007 :: 09:11
Registered
| | Hi!
When i try to add multiple viewer control runtime in 1 form in tabpages, it gives error. I developed in VB.NET. It gives only error when i try to close, and displayFileFrom etc.. methods.
If anyone has tried please help out
Hemant | |
 |
Loïc$2006306 Loïc 02/20/2007 :: 15:21
Registered
| | Hi,
I think you should give more precisions and specify the way in which you proceed. If you want you can send me your project by email at esupport (at) gdpicture (dot) com.
Best regards,
Loïc | |
 |
Loïc$2006306 Loïc 02/20/2007 :: 17:19
Registered
| | Ok,
You can creates gdviewer control dynamically like that in vb.net:
Dim nGdViewerToDraw As Long = 4 Dim nCpt As Long
Dim DinamicGdViewer(nGdViewerToDraw) As AxGdViewer_Pro_ActiveX.AxgdViewer For nCpt = 0 To nGdViewerToDraw - 1 DinamicGdViewer(nCpt) = New AxGdViewer_Pro_ActiveX.AxgdViewer Me.Controls.Add(DinamicGdViewer(nCpt)) DinamicGdViewer(nCpt).Visible = True DinamicGdViewer(nCpt).Top = 0 DinamicGdViewer(nCpt).Left = 100 * nCpt DinamicGdViewer(nCpt).Width = 100 DinamicGdViewer(nCpt).Height = 100 Next
Best regards,
Loïc | |
 |
hemant30$2007050 hemant30 02/20/2007 :: 17:35
Registered
| | When you try to load image OR PDF after this in each control DinamicGdViewer(nCpt).displayfromfile (pdfpath) DinamicGdViewer(nCpt).closefile Then it gives error in both statement, this will work perfectly on control placed at design time. But rune time created controls gives error. Please check and reply Hemant Athavale Ahmedabad, India.
| |
 |
Loïc$2006306 Loïc 02/20/2007 :: 17:40
Registered
| | Hi,
i've already tested my code and he works.
In your mailed code You had forgotten this line: Me.Controls.Add(DinamicGdViewer(nCpt))
Loïc | |