Hi,
We have issue where users on terminal server environment see multiple tracker printers. Our client will reboot the server to resolved this issue. We would like to resolve this issue without having to reboot the machine. Any help will be appreciated.
Below are lines of code we use to initialize tracker printer.
Private Sub InitializeTrackerPrinter()
Dim sKey As String = "XXXXXXX"
Dim sDevCode As String = "XXXXXXX"
Try
PDFPFactory = Nothing
PDFPFactory = New PXCComLib5.CPXCControlEx
Threading.Thread.Sleep(200)
PDFPFactory.RemoveOrphanPrinters("", "Doc.It 4 PDF Printer")
PDFPrinter = PDFPFactory.Printer("", "Doc.It 4 PDF Printer", sKey, sDevCode)
Threading.Thread.Sleep(200)
With PDFPrinter
If nDocItDefaultPrinter = 1 Then
.SetAsDefaultPrinter()
End If
.Option("Save.SaveType") = "Save"
.Option("Save.ShowSaveDialog") = "No"
.Option("Save.WhenExists") = "Overwrite"
.Option("Save.RunApp") = false
.Option("Fonts.EmbedAll") = 1
.Option("DevMode.PapSize") = 1
.ApplyOptions(nTPPApplyOptions)
End With
Catch ex As Exception
mGenericError(ex, False)
End Try
End Sub
Thank you,
Doc.It Inc
Multiple printers v4 showing in TS environment
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
-
- Site Admin
- Posts: 3550
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Multiple printers v4 showing in TS environment
I suspect that every user on TS who run your app has own printer?
Tracker Software (Project Director)
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Re: Multiple printers v4 showing in TS environment
Yes. Every user in TS gets their own tracker printer.
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Re: Multiple printers v4 showing in TS environment
[b]Attention Tracker
Priority Level : Very High
Subject : Need Help, Multiple printers v4 showing in TS environment[/b]
This became an urgent issue for us. We reported this issue a year ago but we never heard from you guys after one reply.
Every user in TS gets their own tracker printer but some user gets multiple virtual printers (All printer does not work except one). They have to select the right printer to print.
Do you guys have any resolution for this issue?
Doc.It
Priority Level : Very High
Subject : Need Help, Multiple printers v4 showing in TS environment[/b]
This became an urgent issue for us. We reported this issue a year ago but we never heard from you guys after one reply.
Every user in TS gets their own tracker printer but some user gets multiple virtual printers (All printer does not work except one). They have to select the right printer to print.
Do you guys have any resolution for this issue?
Doc.It
-
- Site Admin
- Posts: 306
- Joined: Sun Nov 21, 2004 3:19 pm
Re: Multiple printers v4 showing in TS environment
Hi.
What is the name pattern for those multiple tracker printers?
Or provide an excerpt (3-4 names from the same TS session).
What is the name pattern for those multiple tracker printers?
Or provide an excerpt (3-4 names from the same TS session).
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Re: Multiple printers v4 showing in TS environment
We initialize the printer using line written below. (Whole the subroutine is mentioned in my first post.)
PDFPrinter = PDFPFactory.Printer("", "Doc.It 4 PDF Printer", sKey, sDevCode)
So the name of the printer is "Doc.It 4 PDF Printer" and when the issue occurs the name pattern would become
Doc.It 4 PDF Printer
Doc.It 4 PDF Printer (1)
Doc.It 4 PDF Printer (2)
Doc.It 4 PDF Printer (3)
Doc.It 4 PDF Printer (4)
......
......
and so on.
PDFPrinter = PDFPFactory.Printer("", "Doc.It 4 PDF Printer", sKey, sDevCode)
So the name of the printer is "Doc.It 4 PDF Printer" and when the issue occurs the name pattern would become
Doc.It 4 PDF Printer
Doc.It 4 PDF Printer (1)
Doc.It 4 PDF Printer (2)
Doc.It 4 PDF Printer (3)
Doc.It 4 PDF Printer (4)
......
......
and so on.
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Re: Multiple printers v4 showing in TS environment
And also, only one of the multiple "Doc.It 4 Printer" will work.
-
- Site Admin
- Posts: 306
- Joined: Sun Nov 21, 2004 3:19 pm
Re: Multiple printers v4 showing in TS environment
Ok, so the multiple printers are generated through the SDK, not redirected from TS client or so.
Am I right in thinking that your application creates a PDF-XChange printer not only for internal use but exposes it to be used by the user?
Am I right in thinking that your application creates a PDF-XChange printer not only for internal use but exposes it to be used by the user?
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Re: Multiple printers v4 showing in TS environment
Multiple printers are generated through the SDK and yes it is exposed to be used by the user. (That is the issue that user are seeing multiple printers in Windows devices and printers)
-
- Site Admin
- Posts: 5219
- Joined: Tue Jun 29, 2004 10:34 am
- Location: United Kingdom
Re: Multiple printers v4 showing in TS environment
Hi,
I regret to tell you this will not be changed - there would be multiple issues and potential licensing consequences were we to do so.
PDF-XChange is designed to create a temporary instance of the printer to allow your user to print from your application - leaving the printers available permanently not only causes problems you have described (and more I suspect in some environments) but also causes potential licensing breaches where now users have a PDF printer available to all applications rather than just yours and this is outside of the T&C's of your license.
Further, for us to change the architecture of the printers design would be a massive task to achieve what you require (if we were motivated to ignore the licensing issues - which we are not).
A simpler solution is for you is to ensure that the printers are named uniquely and identifiable by each specific user - perhaps by your applications user login info (assuming this is required) or some other means satisfactory to yourself and your users - but please do note the potential licensing abuse issues, I believe we have discussed this previously in the past an I would not want this to become an issue again.
I regret to tell you this will not be changed - there would be multiple issues and potential licensing consequences were we to do so.
PDF-XChange is designed to create a temporary instance of the printer to allow your user to print from your application - leaving the printers available permanently not only causes problems you have described (and more I suspect in some environments) but also causes potential licensing breaches where now users have a PDF printer available to all applications rather than just yours and this is outside of the T&C's of your license.
Further, for us to change the architecture of the printers design would be a massive task to achieve what you require (if we were motivated to ignore the licensing issues - which we are not).
A simpler solution is for you is to ensure that the printers are named uniquely and identifiable by each specific user - perhaps by your applications user login info (assuming this is required) or some other means satisfactory to yourself and your users - but please do note the potential licensing abuse issues, I believe we have discussed this previously in the past an I would not want this to become an issue again.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.
Best regards
Tracker Support
http://www.tracker-software.com
Best regards
Tracker Support
http://www.tracker-software.com