Home All Groups Group Topic Archive Search About

Printing to XPS Document Writer



Author
3 May 2007 11:05 PM
KRose
I have a GUI that creates a report in a style similar to Word. To keep all
the formating, I send the report directly to the printer without saving it as
a text file (the only form available for saving the report to file in the
system I am using). By using the Microsoft XPS Document Writer as my printer
I can save the report as a "Print to File" XPS format. This is ideal as the
user should not be allowed to alter the data in the report. My problem is
that in using this "printer" a popup asks "Save the file as" with a browser
to the directories. I don't want the user to be able to alter the filename or
placement of the files this way. I need to make "saving" this report
invisible to the user.

Does anyone have an idea about how I could script the sending of the
filename to this "printer" without the use of the popup "Save as" browser?

--
KRose    @->----
The test of a first-rate intelligence is the ability to hold two opposed
ideas in mind at the same time and still retain the ability to function.
F. Scott Fitzgerald

AddThis Social Bookmark Button