Windows Server 2008 64 Bit Get Printer

PDF-XChange Drivers API (only) V4/V5
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - VERSION 4 & 5 - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

jabaran
User
Posts: 18
Joined: Wed Sep 09, 2009 4:01 pm

Windows Server 2008 64 Bit Get Printer

Post by jabaran »

When I attempt to get a printer in server 2008 64 bit the following lines throws an error
printer = (PXCComLib.CPXCPrinter)factory.get_Printer("", "PDF-XChange 4.0", "", "");

The error being thrown is:

Error OnDocStart: System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at PXCComLib.CPXCControlExClass.get_Printer(String pServerName, String pPrinterName, String pRegKey, String pDevCode)

I do not get this error on 2003. Is there a something separate for 2k8 or 2k8 64-bit?
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom

Re: Windows Server 2008 64 Bit Get Printer

Post by John - Tracker Supp »

Moved to correct forum.
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
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3556
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada

Re: Windows Server 2008 64 Bit Get Printer

Post by Ivan - Tracker Software »

Please try to run
pdfSaver4.exe /RegServer

and check if that helps.

Let me know the result.
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.
jabaran
User
Posts: 18
Joined: Wed Sep 09, 2009 4:01 pm

Re: Windows Server 2008 64 Bit Get Printer

Post by jabaran »

That did not help
jabaran
User
Posts: 18
Joined: Wed Sep 09, 2009 4:01 pm

Re: Windows Server 2008 64 Bit Get Printer

Post by jabaran »

And by "That did not help" I mean same results.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Windows Server 2008 64 Bit Get Printer

Post by Tracker Supp-Stefan »

Thanks for letting us know jabaran,

I will pass this for further investigation.

Regards,
Stefan
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3556
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada

Re: Windows Server 2008 64 Bit Get Printer

Post by Ivan - Tracker Software »

Hi,
we have located an issue and uploaded a new installer to correct and this is now available ...

or you can resolve without a full install as detailed below :

1. Place pxccom.tlb into the folder where the file pdfSaver4.exe is located (see attached file).
2. run pdfSaver4.exe /RegServer

HTH
You do not have the required permissions to view the files attached to this post.
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.
jabaran
User
Posts: 18
Joined: Wed Sep 09, 2009 4:01 pm

Re: Windows Server 2008 64 Bit Get Printer

Post by jabaran »

I thought this was going to be it. I did as was suggested. When I run the code I see pdfsaver fire up but the same error was returned. Any other ideas?
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3556
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada

Re: Windows Server 2008 64 Bit Get Printer

Post by Ivan - Tracker Software »

Did you reinstall or run pdfSaver with /Regserver ?
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.
jabaran
User
Posts: 18
Joined: Wed Sep 09, 2009 4:01 pm

Re: Windows Server 2008 64 Bit Get Printer

Post by jabaran »

Yes I did run pdfsaver.exe /RegServer

Also tried this on an XP (64 bit) with out doing the recommended steps and it failed with the same type of error. Tried to print directly to the installed printer, windows informed me the driver was not supported, tried to select the driver inf and was greeted with the following error.

"The specified location does not contain a compatible software driver for your device. If the location contains a driver, make sure it is designed to work with Windows for x64-based systems."

Did the recommended steps and now the following is given as an error on the XP (64 bit) machine.

"Unable to cast COM object of type 'PXComLib.CPXControlEXClass' to interface type 'PXComLib.IPXCControlEx2'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{52BA208B-57B1-483F-8DF3-361C3E80A14E}' failed due the following error The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)."

Is there a separate install required for 64 bit environment?

Thank you again.
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom

Re: Windows Server 2008 64 Bit Get Printer

Post by John - Tracker Supp »

The install is the same but installs the correct release for your OS - but as mentioned - we uploaded a revised build yesterday.

Please download the full SDK afresh - but fully uninstall/restart and only then install the latest release :

https://www.pdf-xchange.com/downloads/dev/

Please advise if this corrects.
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
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3556
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada

Re: Windows Server 2008 64 Bit Get Printer

Post by Ivan - Tracker Software »

Can you send me your sample project ?
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.
jabaran
User
Posts: 18
Joined: Wed Sep 09, 2009 4:01 pm

Re: Windows Server 2008 64 Bit Get Printer

Post by jabaran »

Having applied the new API and running pdfsaver /RegServer I get the following error.

System.InvalidCastException: Unable to cast COM object of type 'PXCComLib.CPXCControlExClass' to interface type 'PXCComLib.IPXCControlEx2'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{52BA208B-57B1-483F-8DF3-361C3E80A14E}' failed due to the following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA).
at PXCComLib.CPXCControlExClass.get_Printer(String pServerName, String pPrinterName, String pRegKey, String pDevCode)
at PrintHTM.Form1.OnDocStart(Int32 lparam)


Additional Information:
I have run this as an Administrative account and as Local System
jabaran
User
Posts: 18
Joined: Wed Sep 09, 2009 4:01 pm

Re: Windows Server 2008 64 Bit Get Printer

Post by jabaran »

Took a bit to get clearance to send you the sample but here it is. You'll need to run the echo-install.bat. The program to run is PDFCreatorDriver.exe . Click the bottom button . A log is written to c:\temp and a generic success/failure is displayed on screen. A PDF is generated in the application directory.
You do not have the required permissions to view the files attached to this post.
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3556
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada

Re: Windows Server 2008 64 Bit Get Printer

Post by Ivan - Tracker Software »

For first, I got:

Code: Select all

'regasm' is not recognized as an internal or external command,
operable program or batch file.
Will install .NET 1.1 and try again
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.
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3556
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada

Re: Windows Server 2008 64 Bit Get Printer

Post by Ivan - Tracker Software »

Hm.

Looks into under clear installation of Windows Server 2008 there are no .NET 1.1.
Into C:\Windows\Microsoft.NET\Framework\v1.1.4322

I see only gacutil.exe.config and regsvcs.exe.config files.
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.
jabaran
User
Posts: 18
Joined: Wed Sep 09, 2009 4:01 pm

Re: Windows Server 2008 64 Bit Get Printer

Post by jabaran »

I must have attached the wrong registration script. It should be running using regasm from the 2.0 Framework. My apologies.
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3556
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada

Re: Windows Server 2008 64 Bit Get Printer

Post by Ivan - Tracker Software »

Well. will check now
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.
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3556
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada

Re: Windows Server 2008 64 Bit Get Printer

Post by Ivan - Tracker Software »

Got such log:

Code: Select all

2009-11-03 06:33:58.4645	Starting PDF. Arg Length: 1
2009-11-03 06:33:58.4645	Start ECHO
---
Process ID: 1608
Working Set: 15244
Virtual Memory: 158012
Peak Virtual Memory: 158016
---
2009-11-03 06:33:58.4645	Creating PDF from: XML C:\Users\Administrator\Documents\NWS_Sample\00000GWD0005312174.xml - XSL: C:\Users\Administrator\Documents\NWS_Sample\00000GWE.xsl
2009-11-03 06:33:58.8395	Print Driver End: JobId = 1
---
Process ID: 1608
Working Set: 28324
Virtual Memory: 184764
Peak Virtual Memory: 193056
---
2009-11-03 06:33:58.8707	File saved from: JobId = 1
---
Process ID: 1608
Working Set: 28452
Virtual Memory: 184764
Peak Virtual Memory: 193056
---
2009-11-03 06:33:58.8863	Attempting to kill all PDF saver processes
2009-11-03 06:33:58.8863	Killing Process
2009-11-03 06:33:58.8863	Done killing Process
2009-11-03 06:33:58.8863	Ending PDF printing.
P.S. CExAPI (C++ Example) which is redistributed with API works fine.
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.
jabaran
User
Posts: 18
Joined: Wed Sep 09, 2009 4:01 pm

Re: Windows Server 2008 64 Bit Get Printer

Post by jabaran »

That is exactly what I would like to see here. And I get that on every environment other than the two 64 bit ones (XP, 2008). Are there any extra security considerations?
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3556
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada

Re: Windows Server 2008 64 Bit Get Printer

Post by Ivan - Tracker Software »

Can you try to run under Administrator account? And try with UAC turned off (but XP has no UAC)
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.
jabaran
User
Posts: 18
Joined: Wed Sep 09, 2009 4:01 pm

Re: Windows Server 2008 64 Bit Get Printer

Post by jabaran »

We are going to start over with a fresh box tomorrow I will keep you posted as to the results
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom

Re: Windows Server 2008 64 Bit Get Printer

Post by John - Tracker Supp »

Thankyou - awaiting the outcome ;)
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
jabaran
User
Posts: 18
Joined: Wed Sep 09, 2009 4:01 pm

Re: Windows Server 2008 64 Bit Get Printer

Post by jabaran »

I get the same results on a new machine using the sample program I sent. I wonder if I'm grabbing the wrong files.

I have got "PDF-XChange 4 Drivers API v.4.0169" pointing at the zip file "https://www.pdf-xchange.com/download/PDFX4API.zip"

I have run as administrator as well.
jabaran
User
Posts: 18
Joined: Wed Sep 09, 2009 4:01 pm

Re: Windows Server 2008 64 Bit Get Printer

Post by jabaran »

Another developer installed the SDK version (PDFSDKPRO4.exe) and it worked fine on both XP and 2008 64-bit
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom

Re: Windows Server 2008 64 Bit Get Printer

Post by John - Tracker Supp »

Can you confrim that:

1: The file PDFX4API.exe installed is dated : 29th October 2009

If not - you dont not have the latest installer.

2: what happens if you use the file : PDFSDKPRO4.exe - on your machine that was having issues ?

Thanks
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
jabaran
User
Posts: 18
Joined: Wed Sep 09, 2009 4:01 pm

Re: Windows Server 2008 64 Bit Get Printer

Post by jabaran »

I verified I had the install appropriately dated PDFX4API, but the other install appears to be working at the moment (at least for the vista 64)