index > XML Paper Specification (XPS) > N-UP filter - GetPagePart() is failing

N-UP filter - GetPagePart() is failing

Hi All,

In WDK 5308, there are samples for N-UP filter and during processing of N-Up filter an API(FilterPipeline.h) GetPagePart() is failing.

Summary of Problem is as below:

In case of N-Up filter, a new FixedPage is created and all the required resources of the old fixedpage is to be copied to New FixedPage resource part.

GetPagePart() does this function.A call to GetPagePart in the method CopyPageResources() in rescpy.cpp is failing returning E_FAIL.

If anyone is aware of this issue and solution, Please let me know the solution as soon as possible.

Also find the code snippet causing the problem:

In rescpy.cpp, Line no:64:

CComPtr<IUnknown> pRes = NULL;

Code failing ----

if (SUCCEEDED(hr = const_cast<IFixedPage*>(pFPSrc)->GetPagePart(resIter->first, &pRes)) &&

SUCCEEDED(hr = pFPDst->SetPagePart(resIter->first, pRes)))

{resIter->second = TRUE;}




sivakami
sivakami

Appending / to the resources solved this issue.

For example :

If resource is "font_0.ttf ",GetPagePart API expects it to be "/font_0.ttf".




sivakami
sivakami
reply 2

You can use google to search for other answers

 

More Articles

• Question on <Glyphs> element
• XP Home Updation?
• WDK 5270
• migrating to xps from pdf
• A superset of PrintCapabilities to replace PPD/GDP
• Can't print any XPS documents
• XPS Viewer Scriptable?
• How to extract XpsImageType from XpsImage?
• XPS performance
• Microsoft XPS Document Writer for XP
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Creating XPS docs , without having any S
• XPS Driver Does not Spool from WinWord D
• XPS Document Writer Installation
• migrating to xps from pdf
• Regarding Font Obfuscation - embedding
• Certificate for Signdigitally?
• JDF in XPS?
• cannot view xps with xpsviewer,need help
• Under line of Glyphs
• PrintTicket Error with PTConform.exe Tool
• xps document writer in dec ctp
• Inside COM Server, IPartBase* methods ar
• How to create XPS in an application with
• Using MXDW
• Query about the Print Capabilities

Hot Articles

• XPS output for SQL Reporting Services
• Query about the Print Capabilities
• Having a problem of Vista XPSDrv filter
• How to tell if app produced XPS natively
• XPS Document Writer Installation
• XPSViewer does not print with XPSDrvSmpl
• UISpy still missing?
• Filter Pipeline(PrintFilterPipelineSvc.e
• Page Scaling
• Under line of Glyphs
• Question on <Glyphs> element
• migrating to xps from pdf
• Pre-RC1 Not Recognizing .NET Framework
• MIME Type
• Unable to create XPS doc with A5 pages

Recommend Articles

• Job sent notification message in system
• Editor for creating/editing XPS documents.
• XP Home Updation?
• Installing Vista drivers on XP
• why the vista XPSDRV printer sample can
• Page
• XPSViewer does not print with XPSDrvSmpl
• Creating XPS docs , without having any S
• Problem printing from WinFX application
• MSDN XPS sample code
• Printing to XPS from MS Word 2003 failed
• XPS on PocketPC
• How to add annotations to xps document t
• How to use "NavigationCommands.GoTo
• How to add metadata such as date, creato