ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   PrintToFile param - what's the file format? (https://www.excelbanter.com/excel-programming/298443-printtofile-param-whats-file-format.html)

jstrater

PrintToFile param - what's the file format?
 
I tried using the PrintToFile parameter in the Worksheet.PrintOut method and I get files, but I can't seem to open them. Is this a weird printer format, or should I be seeing a workbook file here

Thanks

James

Rob Bovey

PrintToFile param - what's the file format?
 
"jstrater" wrote in message
...
I tried using the PrintToFile parameter in the Worksheet.PrintOut method

and I get files, but I can't seem to open them. Is this a weird printer
format, or should I be seeing a workbook file here?

Hi James,

When you print to file you get a file that is formatted in whatever
codes your printer understands. It's not meant to be human-readable. It's
generally used when you don't have a direct connection to a specific
printer. You can load the printer driver for that printer, print to file,
then stick the file on a floppy disk, take it to a machine that's connected
to that printer and send the file to the printer from the command line.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *




jstrater

PrintToFile param - what's the file format?
 
That's kind of what I figured, though I was hoping it would be something human viewable, for debugging purposes. Thanks for the info

--
James

Dave Peterson[_3_]

PrintToFile param - what's the file format?
 
If you install the Generic Text printer and print to that, then you'll be able
to see the results in your favorite text editor.



jstrater wrote:

That's kind of what I figured, though I was hoping it would be something human viewable, for debugging purposes. Thanks for the info.

---
James


--

Dave Peterson



All times are GMT +1. The time now is 12:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com