Hi
I want to use XPS printer driver on Windows XP. while installing this XPS printer driver on windows XP it's asking for some DLL files (ex. xdwmark.dll, xdcolman.dll).
in WDk folder there is no such DLL that means i have to build this DLL from WDK building environment.
when i am trying to build these dll from WDK's Windows XP build environment i am gettting following warning :
[source path ] is not valid for the current
can you help me how can i build these DLL for XP
I am able to build these DLL from Windows Vista environment. but while printing from this driver spooler got crashed.
Is this mean i can't use Dll build from vista environment on a XP machine
can anyone give some thoughts on this.

Building XPS printer driver on windows XP
Gregor Jovan
Jo0815,
Are you looking into this as a way of getting around the Microsoft XPS Document Writer's Save As prompt I have also been struggling with this issue and have been looking for the WDk for XPS Drv Sample that is often mentioned. I cannot find it anywhere. Can you point me in the right direction, or if you have a working solution, post a link to your driver implementation I am trying to get this to work on XP and then Vista (when I get a copy).
Well done for discovering the memory-leaks issue in the Page Limit post.
Peter
ClarkMN
If you are using WDK sample, inf file will have the entry.
When I did point and print install, i have copied some extra dll, it did worked.
I'm doing some testing if i find something let you know.
huabing78
hi Karthik,
Thanks for your cooperation.
Yeh you are right about WDK versions have dependencies on their Vista builds.
Previously i was trying WDK 6000 with Vista Beta 2 release but when i tried this WDk with Vista RC2 release my problem is solved.
Thanks once again
Abhishek
John Lieurance
Abhishek,
At the time of installing the filter binaries are not invoked. They are invoked only while priniting. So there is no chance that installation will fail. Installation depends on the, inf file and UI binary.
I strongly feel that you should be trying to install the 6000 binaries on Vista RTM. I feel that WDK versions have dependencies on their Vista builds.
Hope this helps.
regards.
Karthikeyan.
curiousss
karthik,
thanks for your response.
I am installing the XPS driver on windows Vista ,which is already having .Net 3.0 installed.
and i have tested on two WDK version : WDK 5840 and WDK 6000 (as suggested by you).
But still the same issue. (Out put prn file size is 0 bytes).
Extra info: I am working on Windows Vista Beta 2 release. is this release ( Beta 2 ) can be a reason of this prob
michaelleewebb
In XP side, have you installed print processor and set the datatype as MX_XPS
In your Inf you should have this entry and dll:
PrintProcessor="MS_XPS,filterpipelineprintproc.dll"
doug.taylor
Hi Abhishek,
Try building the DLLS from the Vista build environment itself. The Vista binaries are backward compatible.
regards,
Karthikeyan.
vijay1
Hej CTA,
the printprocessor is defined in the .inf file and also I have used those extra dll's (mxdwdrv.dll, XPSSVCS.DLL, MSXPSINC.GPD from either Essential Pack and I have tried with those from vista) when I have installed the sample-driver...
- Using LPT1: port and print-to-file option in Word leads to crashing word
- Using LPT1: port and print-to-file option in Word WITHOUT ANY FILTER (n-up, watermark etc.) seems to work...
- Using "c:\temp\output.xps"-port it seems to work somehow, but sometimes the spoolfile got deleted immediatly after printing to spooler and no output-file is generated, OR it works but needs some time to generate output-file and the printjob is "hanging" with delete-status (also PrintFilterPipelineSvc.exe is still in taskmanager)...
- On Vista the same binaries work fine... also with the filters in the filter-pipeline
Do you know if the filters are depending on some vista dll's
SPasse
Abhishek,
What is the WDK version you are using. I hope you have installed the .Net3.0.
regards,
Karthikeyan
Walker Boh
Karthik,
There is no specific reason for the older builds of WDK. Now i am using WDK 600 build only. and Windows Vista Beta 2.
but as i told you i am still getting PRN file of 0 bytes.
i have a question:
Is the WDK release is specific to the Vista's release
i am making it more clear. can i use WDK RTM build with vista's RTM release only
if no then why i am not able to use WDK 6000 binaries with Vista beta 2 release.
As i told you before by using WDK 6000 binaries i am able to instal the XPS printer driver on windows Vista beta 2 release but out put prn file size is 0 bytes
can you give some more thoughts on this
Thanks
Abhishek
Vybez Cartel
Karthikeyan,
do you know if it's possible to install the xpsDrv-sample driver on XP I have compiled the sample in DDK's Vista environment and want to install it on XP....
It seems the filter causing problems when printing from Word for example, without the filters it works on XP (also same binaries work fine in Vista properly)... so I think you're right with the dependencies...
but how could they be compiled to work on XP also (I have installed .NET 3.0 and also the XPS Essential Pack on that XP machine)
any ideas
regards,
Jo
Tamim Sadikali
Thanks karthik,
Still the same prob. On emore thing i want to tell you is that when i am printing from XPS driver on Vista also the resulted PRN file size is 0 bytes.
I searched through the forum then i came to know
In the install folder of WDK(\WinDDK\5384\src\print\XPSDrvSmpl\install),the config file "xdsmpl-PipelineConfig.xml" has lower case "input" and "output" for filter dll's.But it should be upper case as expected by filte pipeline.
but my Config file already have this change even then my file size is 0 bytes.
Can you tell me if any other setting i have to do to make the driver work.
Udo2
I thought you were installing your driver on XP machine, sorry for that. We are able to install the WDK6000 binaries in the Vista RTM(6000). Build. So try with the 6000 build of Vista.
Is there any specific reason behind you looking for the older builds of WDK
regards,
Karthikeyan
PC2NETS
Peter,
You can download the WDK from Microsoft pages, just follow the instructions on that page -> http://www.microsoft.com/whdc/devtools/wdk/betawdk.mspx
If you're registered on that Micrsoft-connection-page, then you can use this direct link -> https://connect.microsoft.com/Downloads/Downloads.aspx SiteID=148
(select Windows Driver Kit RTM from december 2006 I think)
The DVD-Iso image is about 2gig and the XpsDrv-Sample is in the following folder then after installation: ...\WinDDK\6000\src\print\XPSDrvSmpl\
well, I play around with the xps-Drv-sample as I need to write some additional filters...
I haven't found a good way to get rid of that annoying SaveAs-dialog yet, and choosing "c:\temp\output.xps" local port isn't a good solution either as it drops down performance a lot (at least when printing to non-xps-printers like pcl/ps-printers) compared to the tradional way using the StartDoc-API, which is not supported in XPS :(...
also I haven't found a way to get those filters working on XP/Office WITH Print-To-File-Option yet, but I need to dig into this further... I assume there's a dependency on vista-dll's, I've read something in source-files that it uses STL7.0 which is only available on vista...
regards,
Jo