Cannot print from GdViewer control on MS Access form

Discussions about document printing in GdPicture.NET using GdPictureImaging.
Post Reply
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()
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.
(29.64 KiB) Downloaded 124 times

Posts: 75
Joined: Tue Dec 18, 2018 10:09 am

Re: Cannot print from GdViewer control on MS Access form

Post by Hugo » Thu Mar 14, 2019 6:57 pm

Hello Colelaus,

Are you still having issues which what you mentioned? Please try with our latest GdPicture version. We can help you upgrade your license if you need.

Hugo Cudd

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest