Loading...

PrintImageDialog

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

PrintImageDialog

Postby heard » Thu Aug 06, 2009 8:21 pm

Hi Loic,
As you know, I have been using gdpicture for a long time now and am very happy with your creation. However, I have recently become aware of an issue where I need some help. This may sound strange but here is the issue:

If I have a locally attached printer set as my default Windows printer, no matter which printer I select in PrintImageDialog, it will print to my local (default) printer. On the other hand, if I have a network printer selected as my default printer, PrintImageDialog works fine. That is, I can print to any printer I desire.

I am only using three lines of code:

ID=gdpic.CreateImageFromFile('c:\test.tif')
gdpic.PrintImageDialog
gdpic.CloseImage(ID)

I have verified this happens on three different machines with both usb printers and lpt1 printers and with both W2K and XP Pro and have recently downloaded 5.11.17. Can you please test this on your end? To test, it seems to be important (at least for my environment ) to quit your application entirely before switching the default printer.

Thanks for your help.
Heard
heard
 
Posts: 78
Joined: Wed Jan 02, 2008 11:55 pm

Re: PrintImageDialog

Postby heard » Wed Sep 16, 2009 10:54 pm

Hi Loic,
Can you please respond to this?
Thanks,
Heard
heard
 
Posts: 78
Joined: Wed Jan 02, 2008 11:55 pm

Re: PrintImageDialog

Postby Loïc » Thu Sep 17, 2009 11:11 am

Hi Heard,

Sorry for the delay.

I've tested on Xp,2000 & Vista 32 without any problem. I have 1 network printer + 3 local printer. I can't print on any printer I want in any default printer configuration.

Could you try to download the latest release ?

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: PrintImageDialog

Postby heard » Thu Sep 17, 2009 5:05 pm

Hi Loic,
Sorry. That still does not work for me. I downloaded the latest version. It says 5.99012001.
Again, I'm only using 3 lines of code.

imageID=gdpic.CreateImageFromFile('c:\test.tif')
gdpic.PrintImageDialog
gdpic.CloseImage(image_id)

If I have a my local LPT1 printer set as the Windows default, PrintImageDialog ALWAYS prints to this printer even if I choose a network printer. If I set the network printer as the default, everything works fine. This is on my 2000 machine. Do you have any ideas how I might track this down?

Thanks,
Heard
heard
 
Posts: 78
Joined: Wed Jan 02, 2008 11:55 pm

Re: PrintImageDialog

Postby Loïc » Fri Sep 18, 2009 12:03 pm

Hi Heard,

Could you give me the exact value displayed by this code :
Code: Select all
Dim i As Long

For i = 1 To Imaging1.PrintGetPrintersCount
   MsgBox Imaging1.PrintGetPrinterName(i)
Next i


Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: PrintImageDialog

Postby heard » Fri Sep 18, 2009 3:20 pm

Hi Loic,
On this particular machine, PrintGetPrinterCount returns 16 but the name returned by your code is 'Acrobat Distiller' which is actually the first printer. My Windows default printer is HP LaserJet 5 which is printer 11 as listed in the Windows printer folder.

Regards,
Heard
heard
 
Posts: 78
Joined: Wed Jan 02, 2008 11:55 pm

Re: PrintImageDialog

Postby Loïc » Fri Sep 18, 2009 3:23 pm

Heard,

Sorry but I need all the exact names in the same order as displayed by my code. Else I can't investigate more...

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: PrintImageDialog

Postby heard » Fri Sep 18, 2009 3:39 pm

Sorry. Here you go:

1=VSI-FAX Windows Client
2=SnagIt 6
3=SHARP AL-1655CS
4=Microsoft Office Document Image Writer
5=HPLaserJet2200
6=HP LaserJet 5 (this is my Windows default printer and is connected to LPT1)
7=HP LaserJet 2200 Series PCL 6- Tray 2
8=HP LaserJet 2200 Series PCL 6 Tray 3
9=HP LaserJet 1200 Series PCL 5e
10=HP LaserJet 1018
11=GoToMyPC - HP LaserJet 2100
12=Fax
13=docuPrinter
14=Adobe PDF
15=Acrobat PDFWriter
16=Acrobat Distiller

So if I have printer 6 above as my default printer, PrintImageDialog always prints to this printer.

Thanks,
Heard
heard
 
Posts: 78
Joined: Wed Jan 02, 2008 11:55 pm

Re: PrintImageDialog

Postby Loïc » Fri Sep 18, 2009 4:39 pm

Heard,

Unfortunately I can't explain this problem. I think it is a bug generated by your printer driver.

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: PrintImageDialog

Postby heard » Fri Sep 18, 2009 4:59 pm

Hi Loic,
Thanks for your help. I'm not sure what to say about this. I have verified this same issue on 2 different machines here at my office and 1 machine at a client site. The only thing common between us is the docuPrinter. Maybe that is doing something, but I tried deleting it on this machine with no luck. I'll try to gather some more information but if anyone else on this forum has experienced this, I would sure like to hear about it.

Thanks again,
Heard
heard
 
Posts: 78
Joined: Wed Jan 02, 2008 11:55 pm

Re: PrintImageDialog

Postby Loïc » Sat Sep 19, 2009 12:13 pm

Heard,

This night I was thinking & thinking about your problem. And I would like to try something else with you.
If you have few time, write us to esupport(at)gdpicture(dot)com to get a special release which will tell us more about this issue.

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: PrintImageDialog

Postby heard » Fri Oct 02, 2009 4:10 pm

Done!
Thank you Loic!

Heard
heard
 
Posts: 78
Joined: Wed Jan 02, 2008 11:55 pm


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 2 guests