I cannot print anymore

Discussions about document printing in GdPicture.NET using GdPictureImaging.
Post Reply
mitric
Posts: 7
Joined: Wed Jul 01, 2009 9:04 am

I cannot print anymore

Post by mitric » Wed Jul 01, 2009 9:18 am

Hello, here are some details:

dll version: 6.3.0.1

Sample code:

Code: Select all

  GdPicture.GdViewer v = new GdPicture.GdViewer();
  v.SetLicenseNumber("xxxxxxx");
  v.DisplayFromFile("....pdf");
  v.PrintDialog();
Throws an InvalidCastException:

Exception Details: System.InvalidCastException: Cast from type 'IntPtr' to type 'Integer' is not valid.
in Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(Object Value)
in GdPicture.GdViewer.PrintDialog(IWin32Window owner)
in GdPicture.GdViewer.PrintDialog()

Thank you

mitric

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: I cannot print anymore

Post by Loïc » Wed Jul 01, 2009 12:23 pm

Hi,

This bug has been fixed into the latest edition: https://www.gdpicture.com/download/downl ... urenet.php

With best regards,

Loïc

mitric
Posts: 7
Joined: Wed Jul 01, 2009 9:04 am

Re: I cannot print anymore

Post by mitric » Wed Jul 01, 2009 12:57 pm

Hi Loïc,
I'm using the last version, 6.3.0.1, I've installed it by clicking "Download GdPicture.NET (ZIP File)" and used all the files in C:\Program Files\GdPicture.NET\Redist\Framework 2.0.

I can add that my application doesn't create a viewer dinamically as I do in my sample code, it it's been droped into a panel owned by a winform at design time, but the error is the same.
I've also tried to use Print or PrintDialog(IWin32Window owner) without any success.

If u need any file/documentation just ask.

Thank you

mitric

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: I cannot print anymore

Post by Loïc » Wed Jul 01, 2009 12:59 pm

Hi,

The last edition is 6.3.2

Kind regards,

Loïc

mitric
Posts: 7
Joined: Wed Jul 01, 2009 9:04 am

Re: I cannot print anymore

Post by mitric » Wed Jul 01, 2009 1:36 pm

Loïc, it works like a charm.
Thank you for your fast and efficient support.

mitric

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: I cannot print anymore

Post by Loïc » Wed Jul 01, 2009 1:37 pm

Great !

Thank you for thee feedback :wink:

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests