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 500 times

Hugo
Posts: 227
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.

Regards,
Hugo Cudd
ORPALIS

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest