Query about the Print Capabilities

I'm new to the PT/PC world, I'm facing a problem and needed your help. We have made MSPlot application to use PT/PC. The problem is thatPTGetPrintCapabilities call is failing.Theerror code returned fromPrintCapabilitiesis “0x80040004: There is no connection for this connection ID”, though I have observed that I get same error even if the file does not exist in the specified location and all the other cases.If we keep the print capabilitiesdoc empty(i.e. only the root node, Print Capability, in place itsucceeds. But if i add the Basic nodes specified in the new Vista Logodoc, it fails... Can you please provide any pointers as to what mightthe problem be.

Few other observations which might be helpful:

1)An empty PrintCapabilities node works

2)The basic features added are

? JobCollateAllDocuments

? JobCopiesAllDocuments

? JobDuplexAllDocumentsContiguously

? PageColorManagement

? PageImageableSize

? PageMediaSize

? PageMediaType

? PageOrientation

? PageOutputColor

? PageResolution

? PageICMRenderingIntent

? JobInputBin

3)Even if I add all the basic features but EMPTY… then alsoPrintCapabilities fails with same error code.

4)It fails even if I add all the Basic nodes from the examples in the SDK.

Thanks a lot again for your time and help.

Regards,
Dipti

[6273 byte] By [DiptiBangalore] at [2008-3-7]
# 1

Dipti,

I think the print capabilities XML file whatever you wrote might not be a validated PC.May be the keywords or the feature option pair may be not correct.Try to validate the PC document and then the try calling PTGetPrintCapabiliites.To validate check with print schema section in SDK and manually validate your PC.

Regards,

Sivakami

sivakami at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,XML Paper Specification (XPS)...
# 2

Dipti,

The follwing features specified in print schema shuld not be used with Beta 2 release.This will be in effect only from RC1 of Vista.

? JobCollateAllDocuments

? JobCopiesAllDocuments

? JobDuplexAllDocumentsContiguously

visit the link for more details:

http://blogs.msdn.com/benkuhn/

sivakami at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,XML Paper Specification (XPS)...

Software Development for Windows Vista

Site Classified