Microsoft Excel Export as PRN

  • Thread starter Thread starter Adam
  • Start date Start date
A

Adam

I need to create a excel spreadsheet in a program then
save it as a comma-delimited PRN file. I know how to
create and save an Excel file in c# and I have done it
several times successfully, but I do not know how to save
it as a PRN file through code. I figure it is part of the
Excel.xlFileFormat but I do not know which format it is.
Does anyone know which one I should use for a PRN file?

Thanks for you assistance,
Adam
 
Adam,

I don't know what a PRN file is, but if you want to save as a
comma-delimited file, you can just use the xlCSV value in the XlFileFormat
enumeration.

Hope this helps.
 
You want:

Microsoft.Office.Interop.Excel.XlFileFormat.xlTextPrinter

Just a tip, anytime you need to figure out how to do something in Excel,
sometimes is quick and easy to record a macro to see how it's done.

hth,
Scott
 
Back
Top