Loading...

Printing i Terminal Servives environment

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

Printing i Terminal Servives environment

Postby leiflundh » Mon Sep 08, 2008 11:58 am

Hi!

We are using the gdviewer Pro ActiveX. We have a problem while printing in a terminal services environment. When printing, the printout always goes to the default printer instead of the one selected.

Any clues?
leiflundh
 
Posts: 2
Joined: Mon Sep 08, 2008 11:50 am

Re: Printing i Terminal Servives environment

Postby Loïc » Mon Sep 08, 2008 3:51 pm

Hi,

Did you check the returned value of the PrintSetActivePrinter() method ?

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

Re: Printing i Terminal Servives environment

Postby leiflundh » Fri Sep 12, 2008 10:43 am

Loïc wrote:Hi,

Did you check the returned value of the PrintSetActivePrinter() method ?

Loïc


Hi!
We are using the direct dialog for the first image to print:
.PrintImageDialogFit()
Then for the following we use:
.PrintImageFit()

It normally works fine, it's ONLY in Terminal services that this doesn't work. In TS the printout always goes to default printer no matter what printer I choose to print to.
leiflundh
 
Posts: 2
Joined: Mon Sep 08, 2008 11:50 am

Re: Printing i Terminal Servives environment

Postby Loïc » Sat Sep 13, 2008 10:59 am

Ok !

Now could you try to use:

if you are in vb6
Code: Select all
.PrintImageDialogfithwnd(me.hwnd)



or in .NET:

Code: Select all
me.PrintImageDialogfithwnd(me.Handle.ToInt32)


If it is always not working with that, let me know.

I will make battery of tests with GdPicture & TS on Monday.

Best regards,

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


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest