Print vs PrintFit

Discussions about document printing in GdPicture.NET using GdPictureImaging.
Post Reply
bwolfe
Posts: 5
Joined: Fri Aug 21, 2009 6:07 pm

Print vs PrintFit

Post by bwolfe » Fri Aug 21, 2009 8:23 pm

I am using version 6.3.0.5

While creating a Viewer object in code to load and print a PDF document, the .Print command will print the document, but not resize. The .PrintFit will not do anything and it will return a status of OK. While stepping through, it doesn't even take any time with the command. The .PrintFitDialog command works as expected, but I lose control over the presentation of the dialog. Any help will be appreciated.

Code: Select all

	Dim oViewer As GdViewer = Nothing        
        Dim oPrintDialog As PrintDialog = Nothing
	Dim blPrint as boolean = false         
	Dim oFile as io.fileinfo = new io.fileinfo(Pdf_file)

        Try
            oPrintDialog = New PrintDialog
            oPrintDialog.AllowPrintToFile = False
            oPrintDialog.AllowCurrentPage = True
            oPrintDialog.AllowSelection = False
            oPrintDialog.AllowSomePages = True
            oPrintDialog.PrinterSettings.MaximumPage = 100
            oPrintDialog.PrinterSettings.FromPage = 1
            oPrintDialog.PrinterSettings.ToPage = 100
            If oPrintDialog.ShowDialog = Windows.Forms.DialogResult.OK Then
                blPrint = True
            End If

            If blPrint = true Then


                oViewer = New GdViewer
                oViewer.SetLicenseNumber(sPictureLic)
                oViewer.DisplayFromFile(oFile.FullName)

                oViewer.PrintSetActivePrinter(oPrintDialog.PrinterSettings.PrinterName)
                oViewer.PrintSetFromToPage(oPrintDialog.PrinterSettings.FromPage, oPrintDialog.PrinterSettings.ToPage)
                oViewer.PrintSetCopies(oPrintDialog.PrinterSettings.Copies)
                oViewer.PrintSetDocumentName("This is my name")
                oViewer.Print  '// Prints but does not resize

                oViewer.PrintFit()  '// Will not do anything - gdstatus = 0



                oViewer.CloseDocument()
                oViewer = Nothing

	    else

                oViewer = New GdViewer
                oViewer.SetLicenseNumber(sPictureLic)
                oViewer.DisplayFromFile(oFile.FullName)

                

                oViewer.PrintFitDialog(me)  '// Works, but lose some control



                oViewer.CloseDocument()
                oViewer = Nothing
            End If
        Catch ex As Exception

        End Try

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

Re: Print vs PrintFit

Post by Loïc » Mon Aug 24, 2009 10:55 am

Hi,

We fixed a similar issue into the current beta release. Please, wait for the next release (1st September 2009) to get this problem away, or contact us to esupport (at) gdpicture (dot) com to get a link the the beta release download.

With best regards,

Loïc

bwolfe
Posts: 5
Joined: Fri Aug 21, 2009 6:07 pm

Re: Print vs PrintFit

Post by bwolfe » Fri Aug 28, 2009 5:01 pm

Does GdPicture.NET V 6.4 solve my issue or is there a forthcoming version?

Thanks,

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

Re: Print vs PrintFit

Post by Loïc » Fri Aug 28, 2009 5:05 pm

Hi,
Does GdPicture.NET V 6.4 solve my issue or is there a forthcoming version?
Only you can tell that making a try. As I said, a similar issue have been solved - but we have not been able to reproduce your one.

Kind regards,

Loïc

bwolfe
Posts: 5
Joined: Fri Aug 21, 2009 6:07 pm

Re: Print vs PrintFit

Post by bwolfe » Fri Aug 28, 2009 5:47 pm

Perhaps my question should have been - Is this the intended version for me to try to see if this fixes my issue or is there one forthcoming (on or after 9-01 as earlier indicated.) :D

I was unaware that you had not been able to duplicate it. I have a similarly confusing issue with the PrintFitDialog. On my machine, whether it be in the IDE or running a compiled version, the PrintFitDialog prompts me and allows me to selete the page range and the executes my print with a status of 0 on success. Any other machine that I install on will prompt with the PrintFitDialog, but the page range selection is grayed out. When I choose a printer to print to, I get a status of 0, but nothing prints.

I will download the latest version and try both scenarios.

bwolfe
Posts: 5
Joined: Fri Aug 21, 2009 6:07 pm

Re: Print vs PrintFit

Post by bwolfe » Fri Aug 28, 2009 6:36 pm

Issue # 1 has not been tested in 6.4 yet, but issue 2 was caused by not including the 6.3 pdf dlls. My installer had the 6.2 still referenced. I will let you know about 6.4 after I test.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest