HighTechTalks DotNet Forums  

Cant find System.Windows.Xps

VB.net microsoft.public.dotnet.languages.vb


Discuss Cant find System.Windows.Xps in the VB.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
ThatsIT.net.au
 
Posts: n/a

Default Cant find System.Windows.Xps - 01-22-2010 , 10:33 AM






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?

Reply With Quote
  #2  
Old   
Tom Shelton
 
Posts: n/a

Default Re: Cant find System.Windows.Xps - 01-22-2010 , 11:11 AM






On 2010-01-22, ThatsIT.net.au <me@work> wrote:
Quote:
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?
--
Tom Shelton

Reply With Quote
  #3  
Old   
ThatsIT.net.au
 
Posts: n/a

Default Re: Cant find System.Windows.Xps - 01-22-2010 , 11:27 AM



"Tom Shelton" <tom_shelton (AT) comcastXXXXXXX (DOT) net> wrote

Quote:
On 2010-01-22, ThatsIT.net.au <me@work> wrote:
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?
--
Tom Shelton
Yes tried 3.5 and 4

Reply With Quote
  #4  
Old   
ThatsIT.net.au
 
Posts: n/a

Default Re: Cant find System.Windows.Xps - 01-22-2010 , 11:32 AM



"Tom Shelton" <tom_shelton (AT) comcastXXXXXXX (DOT) net> wrote

Quote:
On 2010-01-22, ThatsIT.net.au <me@work> wrote:
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?
--
Tom Shelton

Found them, had to add reachframwork reference. Not a name I was looking for

Reply With Quote
  #5  
Old   
Herfried K. Wagner [MVP]
 
Posts: n/a

Default Re: Cant find System.Windows.Xps - 01-22-2010 , 03:04 PM



Am 22.01.2010 17:33, schrieb ThatsIT.net.au:
Quote:
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>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.