Page 1 of 1

Cannot print from GdViewer control on MS Access form

Posted: Thu Dec 28, 2017 1:08 am
by colelaus
I'm needing to add print capability to my MS Access form that is using the GDPicture.NET 10 - Document Imaging SDK library. Seems like it should be pretty easy, load the file into the oGdViewer control and then execute the following:

Code: Select all

Private Sub btnPrintDocument_Click()
  Dim oGdViewer As GdPicture_NET_10.GdViewer
  Set oGdViewer = GdViewer1.GetObjectInterop()
End Sub

However, when I attempt to print, I get an "Object dosen't support this property of method". Intellisense is prompting me that .print is acceptable but when I execute it I get the error.

I've also tried defining a GdPictureStatus variable and setting the output as in

Code: Select all

Dim GdPictureStatus as GdPictureStatus
Set GdPictureStatus  = oGdViewer.Print()

with no success.

BTW, other print methods do appear to work such as the .PrintDialog or .PrintFix so I'm pretty sure my syntax is correct.

I'm sure this is an access vba quirk but I'm at a loss on how to fix. I've attached the sample file that is provided by the vendor with a print button to illustrate the issue. Any help would be appreciated.