how to convert pdf file to Xps file by using either c# or Openxml. RRS feed

  • Question

  • hi good moring to  every one,

    i want to convert pdf file to xps file by using either c# or Open Xml .

    for this i did a lot of R&D and practice ,finally i concluded with one solution as shown below:


         p.StartInfo.FileName = @"C:\Users\madhubabub\Desktop\11.pdf"

             p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; 

                  p.StartInfo.CreateNoWindow =true;

                   p.StartInfo.Verb ="PrintTo";



    but  i facing problem with this snippet is: it's working fine but after execution pdf file was  opening in background along with save dialog box, even i used hidden property in my code as shown above.

                any one  can help me to  hide or minimize pdf file and keep the save dialog box on screen.

    • Moved by Cindy Meister MVP Tuesday, July 17, 2012 2:42 PM not Office-related (From:Open XML Format SDK)
    Tuesday, July 17, 2012 9:10 AM


All replies

  • Hi Bollineni

    There's absolutely nothing in the Office Open XML file formats or SDK that will be of assistance - the question has nothing to do with Office and is off-topic in the Office-related forums.

    Cindy Meister, VSTO/Word MVP

    Tuesday, July 17, 2012 2:42 PM
  • Try asking in the C# forum on MSDN.


    Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)

    Friday, July 20, 2012 7:32 PM