printing to dot matrix preview
Hi,
I need to have a button that is a shortcut to
save \ print \ textfile / matrix printer
how do I do this from vb.net code so that the preview window shows up please?
Regards,
R
This discussion has been closed.
Hi,
I need to have a button that is a shortcut to
save \ print \ textfile / matrix printer
how do I do this from vb.net code so that the preview window shows up please?
Regards,
R
Comments
add a button and set onclick :
using (FastReport.Export.Text.TextExport export = new FastReport.Export.Text.TextExport())
{
// show the dialog
export.Export(report);
// export to a file
export.Export(report, "d:\\test.txt");
}
that is Fantastic! it opens now :-)
I don't suppose you know how to set the values on the preview? i
tried export.EmptyLines = True
but it doesnt work.
-R
Hello!
To open the dot-matrix text preview/print settings dialog box directly from a button in VB.NET:
Alternatively, call report1.Export(txtExport, path) directly / configure PrinterType, PageBreaks, Frames, EmptyLines, and Encoding without displaying a dialog box.