Jaa


Proof-of-concept Silverlight XPS reader comes to Beta 2 [SimpleSilverlightXpsViewer sample updated for Silverlight 2 Beta 2!]

**

This blog has moved to a new location and comments have been disabled.

All old posts, new posts, and comments can be found on The blog of dlaa.me.

See you there!

Comments

  • Anonymous
    June 13, 2008
    The comment has been removed

  • Anonymous
    June 14, 2008
    Az XPS ugye a Microsoft PDF-e, ha egy mondatban akarjuk megfogalmazni. Itt van egy  Silverlight

  • Anonymous
    July 02, 2008
    Can we simply use XPS files saved from Word 2007 with this code?

  • Anonymous
    July 02, 2008
    samcov, I believe that Word 2007 XPS documents do not work by default. I touch on this briefly in the "Introductory Post" I link to above where I first announced the XPS Viewer sample. Basically, the sample supports only the file structure that the XPS Printer Driver outputs because that's what I had to work with. Any variations on the XPS internal document structure would likely require some changes to the code to support. I don't recall exactly whether Word 2007 documents are the same, but I think I remember checking and finding them different. Hope this helps!

  • Anonymous
    July 03, 2008
    I tried to create the file using the XPS document writer, but it only outputs a XPS file, and not the additional files you seem to get. I'm not sure how you created the printer files. Sam...

  • Anonymous
    July 03, 2008
    samcov, FYI, with the Beta 2 version of the XPS Viewer sample, it is necessary to extract only the font (*.odttf) files and place them alongside the XPS file. A good workflow (that includes re-ZIPping the XPS files which is often necessary) goes something like: get content you want to view in an application, print it to the XPS Printer Driver, save that output as file Intro.XPS, rename it to Intro.XPS.zip, extract all files to Intro directory with Windows or other ZIP tool, delete Intro.XPS.zip, create new Intro.XPS.zip file from Intro directory with Windows or other ZIP tool, rename Intro.XPS.zip to Intro.XPS, copy all *.odttf files from under Intro to the same location as the new Intro.XPS file, copy Intro.XPS and *.odttf to the Intro.XPS subdirectory that is part of the XPS Viewer Sample (replacing the existing Intro.XPS file and fonts), run XPS Viewer Sample - and you should see your content instead of the default Intro page. It's that "easy"! :)

  • Anonymous
    July 07, 2008
    I thought I posted this, but it hasn't appeared. Anyway, it worked EXACTLY as you outlined it... Thanks! It appears that re-zipping is crutial for some reason.

  • Anonymous
    July 14, 2008
    It works fine in IIS5.1,but in IIS 6.0 an IIS 7.0 the font does not display, and a downloaderror #4001 occured,Why?

  • Anonymous
    July 14, 2008
    jidizhiguang, I'll guess that your IIS 6 and 7 configuration is such that *.odttf is not a supported file type for download. You can verify this by trying to download a .odttf file directly from a browser. I expect it to work for your IIS 5.1, but fail from 6 and 7. You should be able to easily fix this by adding *.odttf as a supported file type for download for your IIS 6 and 7 installs. Hope this helps!

  • Anonymous
    July 16, 2008
    When putting content on the web, it's important to get that content to the user as quickly as possible.

  • Anonymous
    July 29, 2008
    del.icio.us Tags: Silverlight       Technorati Tags: Silverlight       

  • Anonymous
    July 29, 2008
    At the bottom of the post on migrating SimpleSilverlightXpsViewer to Silverlight Beta 2 , I hinted at

  • Anonymous
    July 30, 2008
    Or maybe everything is in a cycle... Develop XPS , awesome fixed format document and print stream format

  • Anonymous
    August 05, 2008
    Laurence Moroney just published a blog post in which he adapted David Anson's XPS Viewer for Silverlight

  • Anonymous
    August 05, 2008
    digg_url = "http://blogs.msdn.com/pblog/archive/2008/08/05/read-about-silverlight-in-silverlight.aspx";digg_title

  • Anonymous
    August 05, 2008
    I convertet some pdf files to xps with the XPS Document writer. However, If I unzip and re-zip them they stop working! I did not change any content. Even the regular viewer can not display them anymore - it displays an exception: System.ArgumentException: The document does not contain a valid FixedDocumentSequence. at MS.Internal.Documents.DigitalSignatureProvider..ctor(Package package) what is the issue here?

  • Anonymous
    August 06, 2008
    hjpavelka, Something about how you're rezipping the files seems to be going wrong. What I'm guessing is happening is that the file structure is getting changed when you re-zip - possibly the addition of another directory level at the root, or the absence of the subdirectories. You probably want to compare the contents of the XAP.zip files before and after the re-ZIP process to be sure they're structurally identical. The syntax and default behavior of various ZIP tools is fairly different, so you may need to check the documentation for your particular tool to find out just what settings are needed. Hope this helps!

  • Anonymous
    September 14, 2008
    i try to open my xps file create a folder named : Step1.xps i use print out in Step1.xps folder and named :Step1.xps extract the fonts ant put it on Step1.xps folder but that's give me an error :XML_MissingRoot

  • Anonymous
    September 15, 2008
    mrtmrcn, Every time I've gotten a problem report like this so far, it has been solved by re-ZIPping the XPS file. Please see the notes in the post and the comments above for details on how to re-ZIP. If that doesn't work, then something about the XML structure of your file seems to be unusual. The next thing would be to check that the file was generated with the XPS Printer Driver because other techniques are known to produce different file structures that aren't recognized by the sample application. Hope this helps!

  • Anonymous
    October 17, 2008
    Since the public release of Microsoft Silverlight 2 , I've gotten a few internal and external requests

  • Anonymous
    November 23, 2008
    Fix for Simple XPS Silverlight Viewer for Silverlight 2

  • Anonymous
    February 15, 2010
    Umm... As for VS2008+Silverlight 3, it is not likely to run as per written here... The status message is displayed as " (XPS file not recompressed?)" I'm tinkering right now but no answer yet...

  • Anonymous
    February 16, 2010
    ComSpex, That error usually means something else; I wouldn't expect to get it from the sample files I include in the source code download. But you may want to read the following post about why this sample doesn't work on the official Silverlight 2 bits before spending too much time on this: http://blogs.msdn.com/delay/archive/2008/10/18/roadblock-in-the-way-of-migrating-the-proof-of-concept-silverlight-xps-reader-simplesilverlightxpsviewer-sample-does-not-work-on-silverlight-2-rtw.aspx Sorry for the trouble!

  • Anonymous
    February 16, 2011
    The comment has been removed

  • Anonymous
    February 17, 2011
    Ramesh, It sounds like you're running into the problem I describe in the notes of the original post: blogs.msdn.com/.../lighting-up-the-xml-paper-specification-proof-of-concept-xps-reader-for-silverlight.aspx As I describe there, a simple un-ZIP and re-ZIP should get things working for you. Good luck!