By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,435 Members | 2,033 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,435 IT Pros & Developers. It's quick & easy.

Printing to a file

P: n/a
Hi

How can I redirect a print job to a file? There is a
checkbox in the print dialog, but I would like to do it
in code indicating a filename.

Thanks
Bruno Hardmeier
Nov 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
You can use a fprintf typing in the file buffer and the
filename.
-----Original Message-----
Hi

How can I redirect a print job to a file? There is a
checkbox in the print dialog, but I would like to do it
in code indicating a filename.

Thanks
Bruno Hardmeier
.

Nov 20 '05 #2

P: n/a

How can I do that in VB?
-----Original Message-----
You can use a fprintf typing in the file buffer and the
filename.
-----Original Message-----
Hi

How can I redirect a print job to a file? There is a
checkbox in the print dialog, but I would like to do it
in code indicating a filename.

Thanks
Bruno Hardmeier
.

.

Nov 20 '05 #3

P: n/a
* "Perilmind" <an*******@discussions.microsoft.com> scripsit:
You can use a fprintf typing in the file buffer and the
filename.


That's a function of the C runtime...

;-)

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #4

P: n/a
My question is still open:
How can I redirect a print job to a file? There is a
checkbox in the print dialog, but I would like to do it
in code indicating a filename.
Thanks
Bruno Hardmeier
-----Original Message-----
* "Perilmind" <an*******@discussions.microsoft.com>

scripsit:
You can use a fprintf typing in the file buffer and the filename.


That's a function of the C runtime...

;-)

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
.

Nov 20 '05 #5

P: n/a
* <an*******@discussions.microsoft.com> scripsit:
My question is still open:
How can I redirect a print job to a file? There is a
checkbox in the print dialog, but I would like to do it
in code indicating a filename.


Sorry, I don't know how to do that...

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #6

P: n/a
PrinterSettings.PrintToFile

This property is used by the PrintDialog when the user selects the Print
to file option. In such a case, the output port is set to "FILE",
causing the Windows printing subsystem to prompt the user for a file
name when the PrintDocument.Print method is called.

Note: The PrinterSettings.PrintToFile property can only be set by the
System.Windows.Forms.Printing.PrintDialog class. The Print to file
option only appears on the System.Windows.Forms.Printing.PrintDialog
when the System.Windows.Forms.Printing.PrintDialog.AllowPri ntToFile
property is set to true. For more information, see the KB article
"'PrintDocument Class' Does Not Implement The PrintToFile Feature
(820644)" on Microsoft TechNet, at http://www.microsoft.com/technet .

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003OCT.1033/cpref/html/frlrfsystemdrawingprintingprintersettingsclassprin ttofiletopic.htm

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003OCT.1033/cpref/html/frlrfsystemdrawingprintingprintersettingsmembersto pic.htm
an*******@discussions.microsoft.com wrote:
My question is still open:
How can I redirect a print job to a file? There is a
checkbox in the print dialog, but I would like to do it
in code indicating a filename.
Thanks
Bruno Hardmeier

-----Original Message-----
* "Perilmind" <an*******@discussions.microsoft.com>


scripsit:
You can use a fprintf typing in the file buffer and
the
filename.


That's a function of the C runtime...

;-)

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
.



Nov 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.