Windows Server 2008 64 Bit Get Printer
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
-
- User
- Posts: 18
- Joined: Wed Sep 09, 2009 4:01 pm
Windows Server 2008 64 Bit Get Printer
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?
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?
-
- Site Admin
- Posts: 5219
- Joined: Tue Jun 29, 2004 10:34 am
- Location: United Kingdom
Re: Windows Server 2008 64 Bit Get Printer
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
Best regards
Tracker Support
http://www.tracker-software.com
-
- Site Admin
- Posts: 3556
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Windows Server 2008 64 Bit Get Printer
Please try to run
pdfSaver4.exe /RegServer
and check if that helps.
Let me know the result.
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.
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: 18
- Joined: Wed Sep 09, 2009 4:01 pm
Re: Windows Server 2008 64 Bit Get Printer
That did not help
-
- User
- Posts: 18
- Joined: Wed Sep 09, 2009 4:01 pm
Re: Windows Server 2008 64 Bit Get Printer
And by "That did not help" I mean same results.
-
- Site Admin
- Posts: 17960
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
Re: Windows Server 2008 64 Bit Get Printer
Thanks for letting us know jabaran,
I will pass this for further investigation.
Regards,
Stefan
I will pass this for further investigation.
Regards,
Stefan
-
- Site Admin
- Posts: 3556
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Windows Server 2008 64 Bit Get Printer
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
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.
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: 18
- Joined: Wed Sep 09, 2009 4:01 pm
Re: Windows Server 2008 64 Bit Get Printer
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?
-
- Site Admin
- Posts: 3556
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Windows Server 2008 64 Bit Get Printer
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.
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: 18
- Joined: Wed Sep 09, 2009 4:01 pm
Re: Windows Server 2008 64 Bit Get Printer
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.
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.
-
- Site Admin
- Posts: 5219
- Joined: Tue Jun 29, 2004 10:34 am
- Location: United Kingdom
Re: Windows Server 2008 64 Bit Get Printer
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.
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
Best regards
Tracker Support
http://www.tracker-software.com
-
- Site Admin
- Posts: 3556
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Windows Server 2008 64 Bit Get Printer
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.
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: 18
- Joined: Wed Sep 09, 2009 4:01 pm
Re: Windows Server 2008 64 Bit Get Printer
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
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
-
- User
- Posts: 18
- Joined: Wed Sep 09, 2009 4:01 pm
Re: Windows Server 2008 64 Bit Get Printer
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.
-
- Site Admin
- Posts: 3556
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Windows Server 2008 64 Bit Get Printer
For first, I got:
Will install .NET 1.1 and try again
Code: Select all
'regasm' is not recognized as an internal or external command,
operable program or batch file.
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.
-
- Site Admin
- Posts: 3556
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Windows Server 2008 64 Bit Get Printer
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.
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.
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: 18
- Joined: Wed Sep 09, 2009 4:01 pm
Re: Windows Server 2008 64 Bit Get Printer
I must have attached the wrong registration script. It should be running using regasm from the 2.0 Framework. My apologies.
-
- Site Admin
- Posts: 3556
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Windows Server 2008 64 Bit Get Printer
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.
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.
-
- Site Admin
- Posts: 3556
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Windows Server 2008 64 Bit Get Printer
Got such log:
P.S. CExAPI (C++ Example) which is redistributed with API works fine.
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.
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: 18
- Joined: Wed Sep 09, 2009 4:01 pm
Re: Windows Server 2008 64 Bit Get Printer
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?
-
- Site Admin
- Posts: 3556
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Windows Server 2008 64 Bit Get Printer
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.
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: 18
- Joined: Wed Sep 09, 2009 4:01 pm
Re: Windows Server 2008 64 Bit Get Printer
We are going to start over with a fresh box tomorrow I will keep you posted as to the results
-
- Site Admin
- Posts: 5219
- Joined: Tue Jun 29, 2004 10:34 am
- Location: United Kingdom
Re: Windows Server 2008 64 Bit Get Printer
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
Best regards
Tracker Support
http://www.tracker-software.com
-
- User
- Posts: 18
- Joined: Wed Sep 09, 2009 4:01 pm
Re: Windows Server 2008 64 Bit Get Printer
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.
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.
-
- User
- Posts: 18
- Joined: Wed Sep 09, 2009 4:01 pm
Re: Windows Server 2008 64 Bit Get Printer
Another developer installed the SDK version (PDFSDKPRO4.exe) and it worked fine on both XP and 2008 64-bit
-
- Site Admin
- Posts: 5219
- Joined: Tue Jun 29, 2004 10:34 am
- Location: United Kingdom
Re: Windows Server 2008 64 Bit Get Printer
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
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
Best regards
Tracker Support
http://www.tracker-software.com
-
- User
- Posts: 18
- Joined: Wed Sep 09, 2009 4:01 pm
Re: Windows Server 2008 64 Bit Get Printer
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)