G
Guest
Hi
I am trying to print a string with a fixed format usin
StreamReader streamToPrint = new StreamReader(formattedString) ;//("PrintMe.Txt")
try
//Assumes the default printe
TextFilePrintDocument pd = new TextFilePrintDocument(streamToPrint)
PrintDialog dlg = new PrintDialog()
dlg.Document = pd
DialogResult result = dlg.ShowDialog()
if (result == DialogResult.OK)
pd.Print()
}
catch {
finally
tr
streamToPrint.Close()
catch{
I use String.Format to format string as grid. Hopping the printout will always be the same length regardless the value. However, it seems ok for COnsole.Writeline but not working is I sent it to printer as the way above
Any suggestions
Thanks a lo
Chris
I am trying to print a string with a fixed format usin
StreamReader streamToPrint = new StreamReader(formattedString) ;//("PrintMe.Txt")
try
//Assumes the default printe
TextFilePrintDocument pd = new TextFilePrintDocument(streamToPrint)
PrintDialog dlg = new PrintDialog()
dlg.Document = pd
DialogResult result = dlg.ShowDialog()
if (result == DialogResult.OK)
pd.Print()
}
catch {
finally
tr
streamToPrint.Close()
catch{
I use String.Format to format string as grid. Hopping the printout will always be the same length regardless the value. However, it seems ok for COnsole.Writeline but not working is I sent it to printer as the way above
Any suggestions
Thanks a lo
Chris