Cannot print from GdViewer control on MS Access form

Discussions about document printing in GdPicture.NET using GdPictureImaging.
Post Reply
colelaus
Posts: 3
Joined: Sun Dec 29, 2013 2:32 am

Cannot print from GdViewer control on MS Access form

Post by colelaus » Thu Dec 28, 2017 1:08 am

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()
  oGdViewer.Print
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.
Attachments
simple_document_viewer.zip
(29.64 KiB) Downloaded 54 times

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest