DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 14 Aug 2007 09:49:34 +1000,    posted on: microsoft.public.dotnet.framework        back       

Thread Index
  1    Lloyd Dupont net.galador@ld
          2    Kevin Spencer
                 3    Lloyd Dupont net.galador@ld
                 4    Kevin Spencer
                 5    Lloyd Dupont net.galador@ld


create an XPS document   
I would like to export my document has an XPS document.
I already have some printing code.

The problem which I am facing is making the whole process without dialog.

Through the print menu the user get a dialog where he can choose his printer 
of choice among available printer, which can be the XPS output if it's 
available. Then there is a second dialog letting him specify the output 
file.

I would like to be able to do everything programatically so that I test if 
the XPS printer is there and set the output file.

How do I do that?

I was thinking to set PrinterName to "Microsoft XPS Document Writer" but 
it's obviously an internationalized english sentence and that won't work in 
non english country...

Any tips?
Date:Tue, 14 Aug 2007 09:49:34 +1000   Author:  

Re: create an XPS document   
Use the System.Windows.Xps.Packaging namespace:

http://msdn2.microsoft.com/en-us/library/system.windows.xps.packaging.aspx

-- 
HTH,

Kevin Spencer
Microsoft MVP

DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Lloyd Dupont" <net.galador@ld> wrote in message 
news:O9sg3Sg3HHA.5796@TK2MSFTNGP05.phx.gbl...

>I would like to export my document has an XPS document.
> I already have some printing code.
>
> The problem which I am facing is making the whole process without dialog.
>
> Through the print menu the user get a dialog where he can choose his 
> printer of choice among available printer, which can be the XPS output if 
> it's available. Then there is a second dialog letting him specify the 
> output file.
>
> I would like to be able to do everything programatically so that I test if 
> the XPS printer is there and set the output file.
>
> How do I do that?
>
> I was thinking to set PrinterName to "Microsoft XPS Document Writer" but 
> it's obviously an internationalized english sentence and that won't work 
> in non english country...
>
> Any tips? 
Date:Tue, 14 Aug 2007 07:52:06 -0400   Author:  

Re: create an XPS document   
Hi Kevin,
Thanks for the tip.
I wonder though, it looks quite hard to go from the GDI+ drawing method to
the XPS document constrution methods....
Any tips on that?
A Graphics.DrawXXX() => XPS method table?


"Kevin Spencer"  wrote in message 
news:uBc2Kmm3HHA.464@TK2MSFTNGP02.phx.gbl...

> Use the System.Windows.Xps.Packaging namespace:
>
> http://msdn2.microsoft.com/en-us/library/system.windows.xps.packaging.aspx
>
> -- 
> HTH,
>
> Kevin Spencer
> Microsoft MVP
>
> DSI PrintManager, Miradyne Component Libraries:
> http://www.miradyne.net
>
> "Lloyd Dupont" <net.galador@ld> wrote in message 
> news:O9sg3Sg3HHA.5796@TK2MSFTNGP05.phx.gbl...
>>I would like to export my document has an XPS document.
>> I already have some printing code.
>>
>> The problem which I am facing is making the whole process without dialog.
>>
>> Through the print menu the user get a dialog where he can choose his 
>> printer of choice among available printer, which can be the XPS output if 
>> it's available. Then there is a second dialog letting him specify the 
>> output file.
>>
>> I would like to be able to do everything programatically so that I test 
>> if the XPS printer is there and set the output file.
>>
>> How do I do that?
>>
>> I was thinking to set PrinterName to "Microsoft XPS Document Writer" but 
>> it's obviously an internationalized english sentence and that won't work 
>> in non english country...
>>
>> Any tips?
>
> 
Date:Fri, 17 Aug 2007 09:01:35 +1000   Author:  

Re: create an XPS document   
Hi Lloyd,

How hard it is to save as XPS depends on how your document and your current 
printing code is constructed. Any document can be expressed in XML or XHTML, 
except for the images and other binary content, using markup language. So, 
you take the text portions of the document and translate them into the XPS 
XML format, with references to the binary content, which is also stored in 
the XPS file. The XPS file is essentially a compressed set of files and 
folders, like a zip file, and in fact can be opened using WinZip or any 
other zip file compression software.

-- 
HTH,

Kevin Spencer
Microsoft MVP

DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Lloyd Dupont" <net.galador@ld> wrote in message 
news:%23ABQQmF4HHA.1184@TK2MSFTNGP04.phx.gbl...

> Hi Kevin,
> Thanks for the tip.
> I wonder though, it looks quite hard to go from the GDI+ drawing method to
> the XPS document constrution methods....
> Any tips on that?
> A Graphics.DrawXXX() => XPS method table?
>
>
> "Kevin Spencer"  wrote in message 
> news:uBc2Kmm3HHA.464@TK2MSFTNGP02.phx.gbl...
>> Use the System.Windows.Xps.Packaging namespace:
>>
>> http://msdn2.microsoft.com/en-us/library/system.windows.xps.packaging.aspx
>>
>> -- 
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>>
>> DSI PrintManager, Miradyne Component Libraries:
>> http://www.miradyne.net
>>
>> "Lloyd Dupont" <net.galador@ld> wrote in message 
>> news:O9sg3Sg3HHA.5796@TK2MSFTNGP05.phx.gbl...
>>>I would like to export my document has an XPS document.
>>> I already have some printing code.
>>>
>>> The problem which I am facing is making the whole process without 
>>> dialog.
>>>
>>> Through the print menu the user get a dialog where he can choose his 
>>> printer of choice among available printer, which can be the XPS output 
>>> if it's available. Then there is a second dialog letting him specify the 
>>> output file.
>>>
>>> I would like to be able to do everything programatically so that I test 
>>> if the XPS printer is there and set the output file.
>>>
>>> How do I do that?
>>>
>>> I was thinking to set PrinterName to "Microsoft XPS Document Writer" but 
>>> it's obviously an internationalized english sentence and that won't work 
>>> in non english country...
>>>
>>> Any tips?
>>
>>
> 
Date:Fri, 17 Aug 2007 07:25:36 -0400   Author:  

Re: create an XPS document   

> How hard it is to save as XPS depends on how your document and your 
> current printing code is constructed. Any document can be expressed in XML 
> or XHTML, except for the images and other binary content, using markup 
> language. So, you take the text portions of the document and translate 
> them into the XPS

well, here is a .. problem.
I don't use simple DrawString() call.
I used Uniscribe to decompose the text in glyphs and then I draw the glyphs 
along curve....
But I will investigate... thanks for the tip.


> XML format, with references to the binary content, which is also stored in 
> the XPS file. The XPS file is essentially a compressed set of files and 
> folders, like a zip file, and in fact can be opened using WinZip or any 
> other zip file compression software.
>
> -- 
> HTH,
>
> Kevin Spencer
> Microsoft MVP
>
> DSI PrintManager, Miradyne Component Libraries:
> http://www.miradyne.net
>
> "Lloyd Dupont" <net.galador@ld> wrote in message 
> news:%23ABQQmF4HHA.1184@TK2MSFTNGP04.phx.gbl...
>> Hi Kevin,
>> Thanks for the tip.
>> I wonder though, it looks quite hard to go from the GDI+ drawing method 
>> to
>> the XPS document constrution methods....
>> Any tips on that?
>> A Graphics.DrawXXX() => XPS method table?
>>
>>
>> "Kevin Spencer"  wrote in message 
>> news:uBc2Kmm3HHA.464@TK2MSFTNGP02.phx.gbl...
>>> Use the System.Windows.Xps.Packaging namespace:
>>>
>>> http://msdn2.microsoft.com/en-us/library/system.windows.xps.packaging.aspx
>>>
>>> -- 
>>> HTH,
>>>
>>> Kevin Spencer
>>> Microsoft MVP
>>>
>>> DSI PrintManager, Miradyne Component Libraries:
>>> http://www.miradyne.net
>>>
>>> "Lloyd Dupont" <net.galador@ld> wrote in message 
>>> news:O9sg3Sg3HHA.5796@TK2MSFTNGP05.phx.gbl...
>>>>I would like to export my document has an XPS document.
>>>> I already have some printing code.
>>>>
>>>> The problem which I am facing is making the whole process without 
>>>> dialog.
>>>>
>>>> Through the print menu the user get a dialog where he can choose his 
>>>> printer of choice among available printer, which can be the XPS output 
>>>> if it's available. Then there is a second dialog letting him specify 
>>>> the output file.
>>>>
>>>> I would like to be able to do everything programatically so that I test 
>>>> if the XPS printer is there and set the output file.
>>>>
>>>> How do I do that?
>>>>
>>>> I was thinking to set PrinterName to "Microsoft XPS Document Writer" 
>>>> but it's obviously an internationalized english sentence and that won't 
>>>> work in non english country...
>>>>
>>>> Any tips?
>>>
>>>
>>
>
> 
Date:Sun, 19 Aug 2007 22:13:52 +1000   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us