Cant find System.Windows.Xps

T

ThatsIT.net.au

I'm trying to write a console app that will convert pdf's to xps files, but
the relevant XPS objects like System.Windows.Xps I cant find.

I have tried VS2008 VS2010, but no objects, they are in the object browser
but can not import and can not add them as reference

any ideas?
 
T

Tom Shelton

I'm trying to write a console app that will convert pdf's to xps files, but
the relevant XPS objects like System.Windows.Xps I cant find.

I have tried VS2008 VS2010, but no objects, they are in the object browser
but can not import and can not add them as reference

any ideas?

Is your app targeting .NET Framework 3.5?
 
H

Herfried K. Wagner [MVP]

Am 22.01.2010 17:33, schrieb ThatsIT.net.au:
I'm trying to write a console app that will convert pdf's to xps files,
but the relevant XPS objects like System.Windows.Xps I cant find.

I have tried VS2008 VS2010, but no objects, they are in the object
browser but can not import and can not add them as reference

Maybe you are lacking a reference to "System.Printing.dll" Note that
the DLL containing a certain type is listed at the beginning of the
documentation on the type:

XpsDocumentWriter Class (System.Windows.Xps)
<URL:http://msdn.microsoft.com/en-us/library/system.windows.xps.xpsdocumentwriter.aspx>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,152
Latest member
LorettaGur
Top