XML Paper Specification (XPS) ForumDiscuss XPS Document creation, viewing, printing and all things related to this new open format.© 2009 Microsoft Corporation. All rights reserved.Sun, 29 Nov 2009 05:09:35 Zcfbfed3d-b5ad-48e3-8443-f8c6ceb7600chttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/8fa7c4a7-f2e7-440c-8e94-99c8181dd898http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/8fa7c4a7-f2e7-440c-8e94-99c8181dd898dittimonhttp://social.msdn.microsoft.com/Profile/en-US/?user=dittimonCustomers having trouble viewing xps documentsHi, I'm developing a .NET application that creates a few xps documents which are sent as email attachments. The problem is the majority of users cannot just open the xps file and find it too confusing to try and download the xps essentials pack from Microsoft (It's not very straightforward even though I have provided a link to the download page) Several non IE browsers attempt to open the file but fail. <div><br/></div> <div>A few questions:</div> <div><br/></div> <div>Does the .NET framework provide anything to export these xpf docs as pdf or other common format that most people can view without the hassle of downloading new software to view?</div> <div><br/></div> <div>Anyway to include a viewer in my applications installation process? Any advice? Thanks for any help,</div> <div><br/></div> <div>Dittimon.</div>Sun, 29 Nov 2009 05:09:35 Z2009-11-29T05:09:35Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/e3f37f58-5801-4a4c-a584-8c2bb7926c72http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/e3f37f58-5801-4a4c-a584-8c2bb7926c72Jo0815http://social.msdn.microsoft.com/Profile/en-US/?user=Jo0815DocumentViewer / DocumentPaginator - only FixedDocument or FixedDocumentSequence???Hello all,<br/> <br/> when I assign my own DocumentPaginator to the DocumentViewer's Document I get an exception only FixedDocuments or FixedDocumentSequences are allowed.<br/> <br/> I basicly want to modify pages of a XPS document (adding additional text/lines...) and show them in the DocumentViewer. I just thought I create my own DocumentPaginator (implementing also IDocumentPaginatorSource) and return the modified (document)pages in the method GetPage() so the pages getting created on-the-fly when the Document-Viewer needs to load and display them. But it seems this is not possible...<br/> <br/> So the only way I currently see is to create a new XpsDocument in memory (either rendering using XpsSerializationManager/my own DocumentPaginator or via XpsDocumentWriter/SerializerWriterCollator) and then display this new created in the viewer. However I need to render *ALL* pages at once and when having documents with lots of pages this could take some seconds (f.e. in my case a document needs 7-10s) before showing up in the viewer then... ofcourse not really a good way...<br/> <br/> Are there any better ways to display Visuals (-&gt; DocumentPages) in the DocumentViewer and render pages on the fly when they get displayed??<br/> <br/> Can anyone of Microsoft bring some light into this why it's not possible to assign an own DocumentPaginator to the DocumentViewer providing own DocumentPages???<br/> <br/> any ideas are welcome... <br/> <br/> regards from Germany,<br/> JoMon, 08 Jun 2009 08:33:34 Z2009-11-24T09:14:38Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/ace3e8d1-7e30-4094-9c18-1f32089ced63http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/ace3e8d1-7e30-4094-9c18-1f32089ced63LalitSRanahttp://social.msdn.microsoft.com/Profile/en-US/?user=LalitSRanaModifying a XPS document!!!I want to modify existing XPS files to include new PrintTicket setting to it, or if there is no PrintTicket in the XPS then attach a new PrintTicket with my settings.<br><br>I suppose I can do it by creating a new xps file, wherein all the properties will be copied from the original xps file to the new xps and the modified PrintTicket would be added.<br><br>But is there any property or easier way provided by microsoft (WPF) to acheive this???<br><br>Regards,<br>♪<br><br><br><br><br>Mon, 18 Dec 2006 14:09:57 Z2009-11-23T15:49:22Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/75827086-9517-4301-b581-1bb7c26a9d5bhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/75827086-9517-4301-b581-1bb7c26a9d5bDustin.Khttp://social.msdn.microsoft.com/Profile/en-US/?user=Dustin.KHow to convert from office document(.doc, .docx, xls, xlsx, ppt, pptx, txt, etc) to xps document??<p>I want convert to all of document to xps. <br/>I develop Win32app in Win Vista.<br/><br/>===========================================================================================<br/>LocalPrintServer localPrintServer = new LocalPrintServer();<br/>PrintQueue defaultPrintQueue = localPrintServer.GetPrintQueue(&quot;Microsoft XPS Document Writer&quot;);<br/>PrintSystemJobInfo xpsPrintJob = defaultPrintQueue.AddJob(&quot;A.doc&quot;, nextFile, true);<br/>===========================================================================================<br/>catch exception.....<br/><br/>I know XPSDrv, but how to use it.<br/>please help me to convert form office document to xps.<br/><br/><br/><br/><br/><br/></p>Mon, 23 Nov 2009 08:00:25 Z2009-11-23T08:02:34Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/eb1aab0d-f015-479e-9fe7-bfb848a4d58bhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/eb1aab0d-f015-479e-9fe7-bfb848a4d58bandrexushttp://social.msdn.microsoft.com/Profile/en-US/?user=andrexusHow to create new xps-file with Print TicketI want to attach a Print Ticket to the existing xps-file, but I don't know how to serialize it to the new xps-file;<br/> <br/> XpsDocument doc = new XpsDocument(&quot;C:\\input.xps&quot;, FileAccess.ReadWrite);<br/>                 XpsDocumentWriter writer = XpsDocument.CreateXpsDocumentWriter(doc);<br/> <br/>                 PrintTicket pt = new PrintTicket();<br/>                 pt.OutputColor = OutputColor.Grayscale;<br/>                 // Here must be code to save the file with pt Print Ticket<br/> <br/>Thu, 19 Nov 2009 21:25:02 Z2009-11-22T21:23:34Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/d016c594-eaae-4fc9-9438-44863e8b877dhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/d016c594-eaae-4fc9-9438-44863e8b877dBnabeelhttp://social.msdn.microsoft.com/Profile/en-US/?user=Bnabeelhow can i change the printticket to the exist xps file <p>need a help pls<br/><br/>how can change the tray or some print tickect properties in exist xps file , and can ,modify this properties<br/><br/>thx</p>Sun, 15 Nov 2009 19:55:32 Z2009-11-20T10:44:36Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/f5859148-26f1-4e89-949c-180413bcc898http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/f5859148-26f1-4e89-949c-180413bcc898Candersonhttp://social.msdn.microsoft.com/Profile/en-US/?user=CandersonXPS Printing, Tray selection and InputBinCapability (InputBin) = Problem<img src="images/emoticons/smile_sad.gif"><br><br><span style="font-family:Geneva,Arial,Sans-serif">Hi all, thanks for taking some time to read this.  I really hope that someone can give me a push in the right direction.<br><br>Basically, when I print an XPS document I want to be able to select the papertray on a page by page basis.<br><br>For example:  My document contains 2 pages.  The first page is a letter, and the second page is a cheque.  I want to load my printer with plain paper in tray 1, and cheque paper in tray 2.  When I send the XPS document to print the first page should be printed on paper from tray 1, and the second page should come from page 2.<br><br>Currently, I have the following code:<span style="color:rgb(0, 0, 255)"></span><br style="color:rgb(0, 0, 255)"><br style="color:rgb(0, 0, 255)"><span style="color:rgb(0, 0, 255)">Dim oprintCapabilites As System.Printing.PrintCapabilities = myPrintQueue.GetPrintCapabilities()</span><br style="color:rgb(0, 0, 255)"><span style="color:rgb(0, 0, 255)"> </span><span style="color:rgb(0, 0, 255)"></span><br style="color:rgb(0, 0, 255)"><span style="color:rgb(0, 0, 255)"> Dim value As System.Collections.ObjectModel.ReadOnlyCollection(Of System.Printing.InputBin)</span><br style="color:rgb(0, 0, 255)"><br style="color:rgb(0, 0, 255)"><span style="color:rgb(0, 0, 255)">value = oprintCapabilites.InputBinCapability<br><br><span style="color:rgb(0, 0, 0)">value at this stage now contains two values:<br>(0) Autoselect{1}<br>(5) Manual{5}<br><br>From my understanding (and there is a good chance I am wrong!!!), the .InputBinCapability should be returning a list of all the available paper trays.  We have 3 trays to pick from our printer, so should I not be getting a return with 4 values?<br>1. auto select<br>2. Tray 1<br>3. Tray 2<br>4. Manual feed<br><br>or am I looking in the wrong place?<br><br>When I select AutoSelect, the document is printed from the default tray and when I select manual the printer display asks the user to insert paper into the manual feed.  So this tell me that I am changing the correct settings.  How do I find out the other tray numbers for my printer?<br><br>Any help would be great thanks,<br><br>C.<br><br></span></span><br></span>Fri, 12 Jan 2007 15:23:41 Z2009-11-19T15:15:27Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/12a3421f-a0e6-4acf-a3d4-26c753661728http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/12a3421f-a0e6-4acf-a3d4-26c753661728Lewis_Pringlehttp://social.msdn.microsoft.com/Profile/en-US/?user=Lewis_PringleXPS Viewer from HTML <object> tagI know that the default XPSViewer allows you to display an xps document from inside MSIE.<br><br>My question is - is it possible to run that same XPSViewer as an OLE COM object, embedded in an OLE Container.<br><br>In particular, the container I have in mind is MSIE.<br><br>I've tried:<br>&lt;object<br>    ID='xpsobj'<br>    CLASSID='CLSID:7DDA204B-2097-47C9-8323-C40BB840AE44'<br>    src=&quot;c:\testxpsdoc.xps&quot;<br>  &gt;<br>  &lt;PARAM NAME=&quot;FileName&quot; VALUE=&quot;C:\testxpsdoc.xps&quot;&gt;<br>  &lt;/Object&gt;<br>and it doesn't appear to work properly.<br><br>          Lewis.<br>Thu, 12 Jul 2007 03:01:12 Z2009-11-17T14:30:29Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/1863f39b-207f-44fc-a209-4f57159977cdhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/1863f39b-207f-44fc-a209-4f57159977cdMoonlyhttp://social.msdn.microsoft.com/Profile/en-US/?user=MoonlyI want to use DocumentViwer control in C++/CLI.<span class="short_text"><span style="font-size:large"><span style="background-color:#fff" title="DocumentViewer를 C++/CLI에서 사용하려고합니다.">DocumentViewer(C# control) the C + + / CLI is used in the attempt. </span><span style="background-color:#fff" title="visual studio 2008을 사용합니다.">I use visual studio 2008. </span><span style="background-color:#fff" title="어떻게 해야 할까요?">What should I do?</span></span></span>Tue, 17 Nov 2009 04:49:05 Z2009-11-17T04:49:09Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/1c51c2b7-8e78-46e3-b603-d08259c8bc3fhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/1c51c2b7-8e78-46e3-b603-d08259c8bc3flouise zdillahttp://social.msdn.microsoft.com/Profile/en-US/?user=louise%20zdillai cant' send out video e-mail on logitechbecause i don't have docimentviewer.msi installedpleas install or help me to install the documentviewer.msiSat, 14 Nov 2009 23:15:52 Z2009-11-14T23:15:52Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/e74ea5ca-a03a-477b-b345-c7df89872bechttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/e74ea5ca-a03a-477b-b345-c7df89872beclouise zdillahttp://social.msdn.microsoft.com/Profile/en-US/?user=louise%20zdillai cant' send out video e-mail on logitechbecause i don't have docimentviewer.msi installedpleas install or help me to install the documentviewer.msiSat, 14 Nov 2009 23:14:51 Z2009-11-14T23:14:52Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/b80b4a88-6b5c-42c6-afb5-653b82f5284dhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/b80b4a88-6b5c-42c6-afb5-653b82f5284ddrjasonharrisonhttp://social.msdn.microsoft.com/Profile/en-US/?user=drjasonharrisonRaising "Save as..." dialog from XPS Monolithic Printer DriverI'm investigating how to raise the &quot;Save as...&quot; dialog from an XPS Monolithic Printer Driver, that is in the same way that MXDW pops up it's &quot;Save as...&quot; dialog.  Is this through the CreateProcessAsUser function from a filter?  How would this best be done from a monolithic xps printer driver or a port monitor?<br/> <br/> Thanks,<br/> -Jason<br/> <br/>Fri, 13 Nov 2009 20:58:04 Z2009-11-13T20:58:04Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/3c9eed60-e8d6-4bef-bd8e-ebdf3f305fa9http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/3c9eed60-e8d6-4bef-bd8e-ebdf3f305fa9Vineeth Paliathhttp://social.msdn.microsoft.com/Profile/en-US/?user=Vineeth%20PaliathXPS to XAMLHi All,<br/> <br/> Is it any way to convert <br/> <br/> Thanks<hr class="sig">VineethThu, 12 Nov 2009 09:05:41 Z2009-11-12T09:05:42Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/fa25fc9b-3565-4c60-98c6-96971c4f197ehttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/fa25fc9b-3565-4c60-98c6-96971c4f197efirefly21http://social.msdn.microsoft.com/Profile/en-US/?user=firefly21Microsoft Document Writer<strong>What exactly does the Microsoft Document Writer do? I have it on my laptop but didn't put it there and don't really know what it's for. </strong>Tue, 03 Nov 2009 04:10:37 Z2009-11-11T01:09:47Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/749f394f-f248-45c6-a258-55ee99ac50f7http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/749f394f-f248-45c6-a258-55ee99ac50f7Gordon Freemanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Gordon%20FreemanYour current security settings do not allow this file to be downloaded.<p align=left><font face=Arial size=2></font> </p> <p>                                               Vista Home Premium: </p> <p align=left>                 I have been emailing XPS documents for several months.Today had a surprise when I was checking my send box in Windows Mail, when I selected an XPS attachment in an email I had sent, I could not view the attachment. First the &quot;Mail Attachment&quot; box opened with the correct file name, but when I Click &quot;open&quot; , the Yellow triangle with the exclamation mark and the error message &quot;Your current security settings do not allow this file to be downloaded&quot; appears.</p> <p>                I now no longer have any faith in the XPS system what use is it if pages cannot be emailed or viewed and now I have to go back through months of work to re-email all my xps doc's as jpegs.</p> <p align=left>                I have tried to eliminate all of windows mail and internet explorer's security settings but cannot view any of my xps doc email attachments no matter what I do, I am going to have to toss XPS and go back to PDF and I am very annoyed!</p>                Does any body know how to fix this!Fri, 25 Apr 2008 16:47:20 Z2009-10-31T10:53:31Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/d4eda6f4-b10c-4783-91af-443b3664f83chttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/d4eda6f4-b10c-4783-91af-443b3664f83csoorya_jhttp://social.msdn.microsoft.com/Profile/en-US/?user=soorya_jIPrintCoreHelper Interfacing - Help needed<p>Hi, </p> <p>Our team was trying to use the IPrintCoreHelper Interface in our filter pipeline code. Our code is unidriver based.We tried to use it in the similar way as shown in the SimplePipelineFilter example in WDK6000. On debugging the StreamFilter code using WinDBG in the SimplePipelineFilter we found that it failed when it called the QueryInterface in InitializeFilter. The error code returned was </p> <p> <font face=Arial size=2><span class=546134013-08122006>hr =  0x80004002  :   _E _NOINTERFACE : no such interface supported .</span></font></p> <p>Also we noticed that there does not exist any symbolic name for IPrintCoreHelper property in the Print Pipeline PropertyBag and the GetProperty method passed it as a string. </p> <p>Has anybody come across the same observation? Help needed on resolving this issue.</p> <p>The version of unidrv that we used is  : <span class=546134013-08122006><font size=2>0.3.6000.16386</font></span> </p> <p>Thanks and regards,</p> <p>Soorya</p> <p><font face=Arial size=2><span class=546134013-08122006></span></font> </p> <p><font face=Arial size=2><span class=546134013-08122006></span></font> </p>Mon, 11 Dec 2006 04:04:45 Z2009-11-02T12:04:48Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/0ef83a41-eea7-4b6c-8766-21d02004cfc0http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/0ef83a41-eea7-4b6c-8766-21d02004cfc0seanachainhttp://social.msdn.microsoft.com/Profile/en-US/?user=seanachainseanachain<p><strong>When I try to print a photo on my HP Photosmart 7450, using Vista, I get this message: &quot;Thunking Spooler from 32 to 64 process has stopped working.&quot; Not only am I unable to print a photo, all windows freeze and cannot be closed.</strong></p>Sat, 24 Oct 2009 23:24:12 Z2009-10-24T23:24:13Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/ae296640-7b08-442a-8ef3-f069ddafa46fhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/ae296640-7b08-442a-8ef3-f069ddafa46fMORAZAhttp://social.msdn.microsoft.com/Profile/en-US/?user=MORAZAXPS Document writer printing blank pagesHi,<br/> <br/> I have Win XP SP3 and .NET  Framework 3.0 SP1 installed. When I try to print 2 copies of a document to XPS Document writer then the first page prints fine and the second copy is blank. If we give multiple copies then only 1 copy is printed fine and rest all the copies are blank.<br/> <br/> Any ideas what could be causing this?Thu, 23 Jul 2009 13:33:28 Z2009-10-24T14:46:53Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/20f5f885-3549-4cac-8477-542046b8e134http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/20f5f885-3549-4cac-8477-542046b8e134rjenovaihttp://social.msdn.microsoft.com/Profile/en-US/?user=rjenovaiXPS Sample Driver questionHi, <div><br/></div> <div>I am trying to modify xpsdrvsmpl to call another program shortly after the document</div> <div>starts to &quot;print&quot;. Where would be the best place to place the CreateProcess or ShellExecute</div> <div>call so that it only executes once? Thanks</div> <div><br/></div> <div>Randy</div> <div><br/></div>Fri, 26 Jun 2009 20:47:18 Z2009-10-22T18:01:47Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/55f563be-63bf-4cb8-aa89-b2136968b9bfhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/55f563be-63bf-4cb8-aa89-b2136968b9bfIrakli Lomidzehttp://social.msdn.microsoft.com/Profile/en-US/?user=Irakli%20LomidzeXPS Has been Removed from .NET 4XPS Has been Removed from .NET 4<br/><br/>Why ?<br/><br/>Is XPS dead ? (Unfortunaly)<hr class="sig">Irakli LomidzeTue, 20 Oct 2009 10:12:50 Z2009-10-22T14:57:16Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/3db305c5-4181-4ae3-8b31-fc26bc0373f2http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/3db305c5-4181-4ae3-8b31-fc26bc0373f2newtowpfxpshttp://social.msdn.microsoft.com/Profile/en-US/?user=newtowpfxpsCan't display contents of listview in xaml to XPS Document<span style="font-family:'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;font-size:13px;color:#333333;line-height:16px">Hi, <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">I am new to WPF, so I am not familiar with many advanced features available. I will be more than Thankful if I get some assistance in regards to this question.</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">I have a WPF application where a set of records are displayed in a listview of a xaml page. Can anyone explain how can I create XPS document with all the records ( ready to print) from listview in xaml page.</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">To avoid all inconsistencies, I thought of using XPS for printing. There are many modules which needs printing which contain records, graphs etc. So, is XPS a better solution for all these issues?</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Thanks,</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Victor</div> </span>Sun, 18 Oct 2009 18:29:28 Z2009-10-18T18:29:28Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/53b36f7d-29e1-4eda-affa-b621eb8495eehttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/53b36f7d-29e1-4eda-affa-b621eb8495eeIrakli Lomidzehttp://social.msdn.microsoft.com/Profile/en-US/?user=Irakli%20LomidzeXPS on PDC 2009Dear Sirs.<br/>Why we still does not see any XPS (sorry OpenXPS) Session anonsument for PDC 2009 ?<br/><br/>Will XPS Session on there ? or it's better to forget about XPS (Dislike this Idea)<br/><br/>Thank you in advance.<hr class="sig">Irakli LomidzeSun, 18 Oct 2009 16:43:03 Z2009-10-18T16:43:03Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/771586c7-95f9-4977-9db0-c01a24a3134fhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/771586c7-95f9-4977-9db0-c01a24a3134fdigitalmercenaryhttp://social.msdn.microsoft.com/Profile/en-US/?user=digitalmercenary64-bit printing (thunking spooler stopped working)after building (64-bit) theXPSDrv sample driver and printing a document in MS Word 2007,<br>I get the following error:<br><br>&quot;Thunking Spooler APIS from 32 to 64 Process has stopped working&quot;<br><br>is this a problem with the driver or some other Vista issue?<br><br>Wed, 20 Jun 2007 02:53:06 Z2009-10-17T11:26:44Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/11717b5a-0491-41ea-96ee-b3385cdac123http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/11717b5a-0491-41ea-96ee-b3385cdac123szmulderhttp://social.msdn.microsoft.com/Profile/en-US/?user=szmulderhow to print xps file without showing Print DialogIs anyone can provide me the code can print a XPS file without the Print Dialog popup?<br /><br />What i want to do it's allow user click a windows WPf button and send to printer directly without choose printer and page size.<br /><br />Thanks!<hr class="sig">mulderTue, 13 Oct 2009 04:00:26 Z2009-10-15T23:33:42Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/73da9e24-6adb-4b15-9e62-0675275a6a92http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/73da9e24-6adb-4b15-9e62-0675275a6a92Mriduhttp://social.msdn.microsoft.com/Profile/en-US/?user=MriduHow to use SimplePipelineFilter with my Monolithic configuration module<div dir=ltr align=left><span class=375031707-28062006><font face=Arial color="#0000ff" size=2>We have a Monolithic Config Module with IPrintTicketProvider. And this is working fine with our Monolithic GDI-based driver.</font></span></div> <div dir=ltr align=left><span class=375031707-28062006><font face=Arial color="#0000ff" size=2></font></span> </div> <div dir=ltr align=left><span class=375031707-28062006><font face=Arial color="#0000ff" size=2>Now we want to use the same Config Module with the SimplePipelineFilter (which comes with the WDK 5384). </font></span></div> <div dir=ltr align=left><span class=375031707-28062006></span> </div> <div dir=ltr align=left><span class=375031707-28062006></span><span class=375031707-28062006><font face=Arial color="#0000ff" size=2>Could you please let us know how to integrate our UI with this SimplePipelineFilter. </font></span></div> <div dir=ltr align=left><span class=375031707-28062006><font face=Arial color="#0000ff" size=2></font></span> </div> <div dir=ltr align=left><span class=375031707-28062006><font face=Arial color="#0000ff" size=2>Thanks and regards,</font></span></div> <div dir=ltr align=left><span class=375031707-28062006><font face=Arial color="#0000ff" size=2>Mridu</font></span></div>Wed, 28 Jun 2006 09:02:27 Z2009-10-13T12:48:40Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/e31edefa-b07e-450d-8ab8-5a171ee8d4c1http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/e31edefa-b07e-450d-8ab8-5a171ee8d4c1Ryan---------------http://social.msdn.microsoft.com/Profile/en-US/?user=Ryan---------------Memory leak when opening XPS document, how to workaround or avoid?The following code snippet illustrates a memory leak when opening XPS files. If you run it and watch the task manager, it will grow and not release memory until the app exits.<br><br><font size=2><span style="font-family:Arial">Module Main<br><br>    Const DefaultTestFilePath As String = &quot;D:\Test.xps&quot;<br>    Const DefaultLoopRuns As Integer = 1000<br><br>    Public Sub Main(ByVal Args As String())<br>        Dim PathToTestXps As String = DefaultTestFilePath<br>        Dim NumberOfLoops As Integer = DefaultLoopRuns<br><br>        If (Args.Count &gt;= 1) Then PathToTestXps = Args(0)<br>        If (Args.Count &gt;= 2) Then NumberOfLoops = CInt(Args(1))<br><br>        Console.Clear()<br>        Console.WriteLine(&quot;Start - {0}&quot;, GC.GetTotalMemory(True))<br>        For LoopCount As Integer = 1 To NumberOfLoops<br><br>            Console.CursorLeft = 0<br>            Console.Write(&quot;Loop {0}    &quot;, LoopCount)<br><br>            ' The more complex the XPS document and the more loops, the more memory is lost.<br>            Using XPSItem As New Windows.Xps.Packaging.XpsDocument(PathToTestXps, System.IO.FileAccess.Read)<br>                Dim FixedDocSequence As Windows.Documents.FixedDocumentSequence<br><br>                ' This line leaks a chunk of memory each time, when commented out it does not.<br>                FixedDocSequence = XPSItem.GetFixedDocumentSequence<br>            End Using<br>        Next<br>        Console.WriteLine()<br>        GC.Collect() ' This line has no effect, I think the memory that has leaked is unmanaged (C++ XPS internals).<br>        Console.WriteLine(&quot;Complete - {0}&quot;, GC.GetTotalMemory(True))<br><br>        Console.WriteLine(&quot;Loop complete but memory not released, will release when app exits (press a key to exit).&quot;)<br>        Console.ReadKey()<br><br>    End Sub<br><br>End Module<br><br></span></font> <p>The reason it loops a thousand times is because my code processes lots of files and leaks memory quickly forcing an OutOfMemoryException. Forcing Garbage Collection does not work (I suspect it is an unmanaged chunk of memory in the XPS internals).</p> <p><br></p> <p>The code was originally in another thread and class but has been simplified to this.</p> <p><br></p> <p>Any help greatly appreciated.</p> <p><br></p> <p>Ryan</p> <p><br></p><br>Mon, 20 Oct 2008 14:53:41 Z2009-10-12T19:54:56Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/fe4aea4d-3745-472a-86d8-d516a245bafehttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/fe4aea4d-3745-472a-86d8-d516a245bafeXPSUserhttp://social.msdn.microsoft.com/Profile/en-US/?user=XPSUserUsing MXDW<p>I would like to use MXDW to create XPS documents from any application. But I would like to automate the creation by automating the printing process. But when I try to do this it always comes up with the &quot;save as&quot; dialog box. I had the same problem using the MODI driver as well. Does anyone know how to get rid of that ?</p> <p> </p> <p>Any samples will be helpful.</p>Fri, 23 Jun 2006 13:06:47 Z2009-10-07T20:20:35Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/b16cc8a6-a761-4032-adb6-482f512320cchttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/b16cc8a6-a761-4032-adb6-482f512320ccdcad_manhttp://social.msdn.microsoft.com/Profile/en-US/?user=dcad_manCannot download due to current security settingsI have Vista Home premium on my new laptop and I was in the process of downlaoding from the Full Tilt poker site to play online poker.  I get the following message: &quot;YOUR CURRENT SECURITY SETTINGS DO NOT ALLOW THIS FILE TO BE DOWNLOADED&quot; I have uninstalled my TrendMicro Internet security program and got the same message.  I disabled everthing I could find in windows security and got the same message. Does anyone have any ideas on how to solve this problem?  I prefer a step by step answer because I am not up to speed with Vista.Thu, 03 Sep 2009 05:40:04 Z2009-10-01T12:33:10Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/b0167d28-dc95-4fc3-b1f9-5f4651ed47e3http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/b0167d28-dc95-4fc3-b1f9-5f4651ed47e3erothvthttp://social.msdn.microsoft.com/Profile/en-US/?user=erothvtHow to fix this XPSSerilizationExcpetion when printing a fixed Document?I have created a Base class that inherits from FixedDocument as so: <div> <pre>public class ReportViewBase : FixedDocument { ... }</pre> <br/> <div> <div>then i am creating a Xaml file like this:</div> <div> <pre>&lt;rp:ReportViewBase x:Class=&quot;ReportingProto.CSTBeadLotTransReportView&quot; xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot; xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot; xmlns:ui=&quot;clr-namespace:System.Windows.Documents;assembly=PresentationUI&quot; xmlns:rp=&quot;clr-namespace:ReportingProto&quot; x:Name=&quot;fdMain&quot;&gt; &lt;PageContent&gt; &lt;FixedPage Width=&quot;816&quot; Height=&quot;1056&quot;&gt; &lt;Grid&gt; &lt;TextBlock Text=&quot;HI&quot;/&gt; &lt;/Grid&gt; &lt;/FixedPage&gt; &lt;/PageContent&gt; &lt;/rp:ReportViewBase&gt;</pre> Then I had the document to the documentview like this:</div> <div> <pre>&lt;DocumentViewer Name=&quot;DocViewer&quot; Document=&quot;{Binding Path=Document}&quot;/&gt;</pre> Where Document is an instance of the ReportViewBase xaml defined above.</div> <div>and when i click the print button on the documentviewer control and then pick an xps file to save to i get the exception below. Since my base class is a FixedDocument why does this not work?</div> <div><br/></div> <div>Thanks for any help in advance!</div> <div><br/></div> <div> <div>System.Windows.Xps.XpsSerializationException was unhandled</div> <div>  Message=&quot;Serialization of this type of object is not supported.&quot;</div> <div>  Source=&quot;ReachFramework&quot;</div> <div>  StackTrace:</div> <div>       at System.Windows.Xps.Serialization.XpsSerializationManagerAsync.SaveAsXaml(Object serializedObject)</div> <div>       at System.Windows.Xps.XpsDocumentWriter.WriteAsync(FixedDocument fixedDocument)</div> <div>       at System.Windows.Controls.Primitives.DocumentViewerBase.OnPrintCommand()</div> <div>       at System.Windows.Controls.Primitives.DocumentViewerBase.ExecutedRoutedEventHandler(Object target, ExecutedRoutedEventArgs args)</div> <div>       at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)</div> <div>       at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)</div> <div>       at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)</div> <div>       at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)</div> <div>       at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)</div> <div>       at System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)</div> <div>       at System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)</div> <div>       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)</div> <div>       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)</div> <div>       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)</div> <div>       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)</div> <div>       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)</div> <div>       at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)</div> <div>       at System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)</div> <div>       at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)</div> <div>       at System.Windows.Controls.Primitives.ButtonBase.OnClick()</div> <div>       at System.Windows.Controls.Button.OnClick()</div> <div>       at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)</div> <div>       at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)</div> <div>       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)</div> <div>       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)</div> <div>       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)</div> <div>       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)</div> <div>       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)</div> <div>       at System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)</div> <div>       at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)</div> <div>       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)</div> <div>       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)</div> <div>       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)</div> <div>       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)</div> <div>       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)</div> <div>       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)</div> <div>       at System.Windows.Input.InputManager.ProcessStagingArea()</div> <div>       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)</div> <div>       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)</div> <div>       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)</div> <div>       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp; handled)</div> <div>       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp; handled)</div> <div>       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp; handled)</div> <div>       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)</div> <div>       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)</div> <div>       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)</div> <div>       at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)</div> <div>       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)</div> <div>       at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)</div> <div>       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)</div> <div>       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG&amp; msg)</div> <div>       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)</div> <div>       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)</div> <div>       at System.Windows.Window.ShowHelper(Object booleanBox)</div> <div>       at System.Windows.Window.Show()</div> <div>       at System.Windows.Window.ShowDialog()</div> <div>       at ReportingProto.Mainform.LgTableReport_Click(Object sender, RoutedEventArgs e) in C:\BD\bd\ReportingProto\Mainform.xaml.cs:line 188</div> <div>       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)</div> <div>       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)</div> <div>       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)</div> <div>       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)</div> <div>       at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)</div> <div>       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)</div> <div>       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)</div> <div>       at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)</div> <div>       at System.Windows.Threading.DispatcherOperation.InvokeImpl()</div> <div>       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)</div> <div>       at System.Threading.ExecutionContext.runTryCode(Object userData)</div> <div>       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)</div> <div>       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)</div> <div>       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)</div> <div>       at System.Windows.Threading.DispatcherOperation.Invoke()</div> <div>       at System.Windows.Threading.Dispatcher.ProcessQueue()</div> <div>       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp; handled)</div> <div>       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp; handled)</div> <div>       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)</div> <div>       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)</div> <div>       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)</div> <div>       at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)</div> <div>       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)</div> <div>       at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)</div> <div>       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)</div> <div>       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG&amp; msg)</div> <div>       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)</div> <div>       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)</div> <div>       at System.Windows.Threading.Dispatcher.Run()</div> <div>       at System.Windows.Application.RunDispatcher(Object ignore)</div> <div>       at System.Windows.Application.RunInternal(Window window)</div> <div>       at System.Windows.Application.Run(Window window)</div> <div>       at System.Windows.Application.Run()</div> <div>       at ReportingProto.App.Main() in C:\BD\bd\ReportingProto\obj\Release\App.g.cs:line 0</div> <div>       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)</div> <div>       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)</div> <div>       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()</div> <div>       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)</div> <div>       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)</div> <div>       at System.Threading.ThreadHelper.ThreadStart()</div> <div>  InnerException: </div> <div><br/></div> </div> </div> </div>Mon, 21 Sep 2009 23:22:54 Z2009-09-21T23:22:54Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/567f80d2-5a6f-4c70-81eb-356d05ef40b1http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/567f80d2-5a6f-4c70-81eb-356d05ef40b1kikuno8http://social.msdn.microsoft.com/Profile/en-US/?user=kikuno8XPS Document Signing ErrorXPS is displayed with Internet Explorer, and when [Digital Signature] - [Sign this document] menu is executed, the following error messages are displayed. <br><br>---------------------------<br>XPS Document Signing Error<br>---------------------------<br>Signing process failed. To sign this document, you need to obtain a digital certificate.<br>---------------------------<br>OK   <br>---------------------------<br><br>Is the *.cer file used?<br>Please teach the problem solving method. <br>My best regards. <br><br>Thu, 29 Mar 2007 01:18:52 Z2009-09-21T16:58:08Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/07117c86-48a8-4894-8855-97073e90bb1bhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/07117c86-48a8-4894-8855-97073e90bb1brankornfeldhttp://social.msdn.microsoft.com/Profile/en-US/?user=rankornfeldImplementing search with XPS in SilverlightHello <div><span style="background-color:#ffffff"><br/></span></div> <div>I have a Silverlight application that show XPS documents (using First Floor's DocumentToolkit solution).</div> <div><br/></div> <div>I am trying to figure out what is the right way to highlight words when searching for text. I have access to the Glyphs in the document, but I do not know how to highlight a single word or letters in the Glyph. </div> <div>I guess there should be a way to measure the text and find the bounding box for a part of the glyph.</div> <div><br/></div> <div>Any ideas?</div> <div><br/></div> <div>Thanks</div> <div>Ran</div>Wed, 16 Sep 2009 11:17:09 Z2009-09-16T11:17:10Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/d2830fd4-25ea-45d6-8127-18fb7f85fed0http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/d2830fd4-25ea-45d6-8127-18fb7f85fed0C4702http://social.msdn.microsoft.com/Profile/en-US/?user=C4702Any XPS Guru's Around?<div>Can anyone provide a c# example of how I can copy / reuse XPS resources?  In creating a &quot;template&quot; system, I'm trying to: 1) read an XPS document; 2) replace place-holder text with actual text; 3) write new XPS document.  My works so far leave an XPS document that when opened gives the error &quot;AddFontResourceEx failed&quot; :( </div> <div> </div> <div>Any help would greatly be appreciated.</div>Tue, 21 Nov 2006 20:16:30 Z2009-09-15T07:02:46Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/51529c1e-6969-4ff6-8cef-d4a94551b153http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/51529c1e-6969-4ff6-8cef-d4a94551b153alex65http://social.msdn.microsoft.com/Profile/en-US/?user=alex65Printing generated XPS Document with embedded imageHi,<br/> If I try to print XPS Document, with embedded high resolution image, on XPSViewer.exe (IE8) (x86), it's anti-aliased.<br/> If try to print same XPS Document opened with XPSViewer EP (x64), it's aliased.<br/> Regardless &quot;Canvas&quot; option &quot;RenderOptions.EdgeMode&quot;.<br/> Is it possible to print XPS Document with embedded aliased high resolution image on InternetExplore?<br/> <br/> Thanks for any help!<br/> alex<br/>Mon, 14 Sep 2009 10:21:21 Z2009-09-16T08:39:54Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/f47e5cfb-b621-4010-84c1-67a880c045c4http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/f47e5cfb-b621-4010-84c1-67a880c045c4zhthttp://social.msdn.microsoft.com/Profile/en-US/?user=zhtmonolitic XPS printer driver weird problem<p class=MsoNormal style="margin:0cm 0cm 10pt"><span style="font-size:8pt;color:black;line-height:115%;font-family:'Verdana','sans-serif'">I am developing monolithic XPS printer driver and I add some additional fields to the print ticket in ConvertDevModeToPrintTicket. The driver works fine for Notepad, Wordpad etc. but with MSWord the first time I print a document it deletes the print job. It works fine for the next print attempt – it only fails when a fresh instance of MSWord is printing to the printer for the first time. The environment is XP SP3 (same for Win2003) and MSWord 2007.</span></p> <p class=MsoNormal style="margin:0cm 0cm 10pt"><span style="font-size:8pt;color:black;line-height:115%;font-family:'Verdana','sans-serif'">I found that my ConvertDevModeToPrintTicket is called twice (in the application context) in this case and after the second call I get:</span></p> <p class=MsoNormal style="margin:0cm 0cm 10pt"><span style="font-size:8pt;color:black;line-height:115%;font-family:'Verdana','sans-serif'">“dd::production::ZipProductionPart::~ZipProductionPart, !m_closed is true, a part was released but not closed “</span></p> <p class=MsoNormal style="margin:0cm 0cm 10pt"><span style="font-size:8pt;color:black;line-height:115%;font-family:'Verdana','sans-serif'">in the debug output and the job gets deleted, printfilterpipelinesvc.exe is not even started. If I skip my modifications to the print ticket on this second call then the print is successful and even contains my extra fields added in the first call to ConvertDevModeToPrintTicket?!</span></p> <p class=MsoNormal style="margin:0cm 0cm 10pt"><span style="font-size:8pt;color:black;line-height:115%;font-family:'Verdana','sans-serif'">I could not find any indication why this happens! It could be a bug in the print ticket processing part but I cannot work around it - I need to add my extra fields to the print ticket.</span></p>Fri, 24 Jul 2009 02:34:01 Z2009-09-11T09:07:46Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/fa1aec06-a5ea-4a53-9a7e-0cad69ceb659http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/fa1aec06-a5ea-4a53-9a7e-0cad69ceb659Toriihttp://social.msdn.microsoft.com/Profile/en-US/?user=ToriiThunking spooler APIS stopped working (again)Ok, i don't speak computer jargon, so im going to need a little help.<br/><br/>Everytime i try to print from my schools webaccess, it pulls that message about thunking spooler apis from 32 to 64 has stopped working. I restarted the computer and it worked, but it does it everytime.<br/><br/>Is there any way to get this off? I should clarify. Is there an EASY way to get this off that doesn't take configuring too many settings. I can work through computer settings, but the stuff the other questions about this were talking about was way over my head.<br/><br/>Thanks.Thu, 03 Sep 2009 01:27:07 Z2009-09-09T21:10:39Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/da2128a1-df3d-4f78-812e-1b3e4894a1a9http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/da2128a1-df3d-4f78-812e-1b3e4894a1a9whtankhttp://social.msdn.microsoft.com/Profile/en-US/?user=whtankhow to use mxdw print large image?<p>I want to print a large image to XPS with MS XPS Document Writer with this following steps<br/>1&gt; Get MXDW DC<br/>2&gt; StartDoc(dc);<br/>3&gt; StartPage(dc);<br/>4&gt; draw image to this dc with WIN API, i.e. <strong>StretchDIBits<br/></strong>5&gt; EndPage(dc)<br/>6&gt; EndDoc();<br/><br/>Whereas the 'EndPage' always return -1.<br/>Then I used 'MS Office Picture Manager' to print this image and printing worked well then I unzip the XPS file and found that the image was cut into multiple clips.<br/>I try to print the image with the similiar way in my application and found the printing can work well too. <br/><br/>The question is that I am not sure what's the clip size I should use to print? Because the clip size decide whether the printing can work successfully. But I cannot make the clip size very small such as 4 X 4, or 2 X 2, ortherwise the printing speed is very slow.</p>Mon, 07 Sep 2009 05:20:00 Z2009-09-08T01:48:38Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/958bd801-31dd-40fd-ab44-1a4db545789bhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/958bd801-31dd-40fd-ab44-1a4db545789b_Michael_http://social.msdn.microsoft.com/Profile/en-US/?user=_Michael_XPS to .doc or .docx conversion<p>Word can SaveAs .xps but not open.  </p> <p> </p> <p>Is there ever likely to be a plugin to open .xps directly in Word?</p> <p>Are there any other convertors out there?</p> <p> </p> <p>Thanks</p> <p>Michael</p>Mon, 16 Jul 2007 09:32:04 Z2009-09-02T20:54:11Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/6dd60355-6e1c-49ec-8509-6b3f44aa81e2http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/6dd60355-6e1c-49ec-8509-6b3f44aa81e2hmipshttp://social.msdn.microsoft.com/Profile/en-US/?user=hmipsCompressed and Uncompressed file size in Zip (aka XPS) archives<font size=2><span style="font-family:Arial">hi all,<br>I was just wondering whether MS will fix the problem of lacking file sizes in their archives local zip file header structures.<br><br>I have got to unzip the archives in order to use the distinct elements in it. <br>This is actually possible even without knowing how much compressed data will follow the local header but actually that's too slow for my app. <br><br>So, is there a fix coming some when or will XPS never be applicable for streamed unpacking.<br><br>(please don't start talking about the global header, it will be sent some gigabytes after the pages that shall be printed, that's not even worth thinking about)<br><br>thnx<br>  horst<br><br></span></font>Fri, 29 Aug 2008 14:08:55 Z2009-08-31T09:50:03Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/e2d657ce-7f8b-49d1-b93f-75cfda4e8422http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/e2d657ce-7f8b-49d1-b93f-75cfda4e8422AquaMeihttp://social.msdn.microsoft.com/Profile/en-US/?user=AquaMeiHow to get Indices?EX: UnicodeString = &quot;Hello World&quot;<br/> How to get Indices numbers depend on different FontUri ?<br/> <br/> Thanks.Fri, 28 Aug 2009 06:42:40 Z2009-08-28T14:32:20Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/383f445a-c1fb-4d8d-bd2f-2bd55fe0fa81http://social.msdn.microsoft.com/Forums/en-US/windowsxps/thread/383f445a-c1fb-4d8d-bd2f-2bd55fe0fa81whtankhttp://social.msdn.microsoft.com/Profile/en-US/?user=whtankPrinting failed in 'EndPage' with XPS printer<p>Recently I print an image with 'A2' paper, the printing still failed in 'EndPrint' WIN API function. GetLastError is 0, the return value of 'EndPrint' is -1. Printing the image with A4 can work well. It seems the XPS printer cannot accept big data transfering.<br/><br/>Who knows where can I check the log file then I can know why the printing with 'A2' failed?</p>Fri, 28 Aug 2009 01:36:58 Z2009-08-28T09:30:26Z