TextExport Problem
Hello,
When I have export in Text format from TextExportPreview windows It's perfectly export into File.
Report Format Preview
Code Customer Name Fat Liter Amount
1 ABC 5.6 80.00 5000.00
2 XYZ 4.5 90.00 6000.00
I Sets Setting is
Report Page Size Width: 254.00mm, Height: 304.80mm
Font Courier New, Size: 11
PageBreak is checked
Frame as Text
DataLineOnly unchecked
ScaleX =1.08
ScaleY = 3.59
I have write following code for export in TextFormat and Save in a File when Press P in ReportPreview
(Programming Language is Visual Studio 2005 .Net C#)
When I am pressing p then following code is execute
_report.SmoothGraphics = false;
FastReport.Export.Text.TextExport tExport = new FastReport.Export.Text.TextExport();
_report.PrintSettings.ShowDialog = true;
_report.TextQuality = TextQuality.Regular;
tExport.PrinterName = "Epson Lx-800";
tExport.TextFrames = true;
tExport.ScaleX = 1.08F;
tExport.ScaleY = 3.59F;
string sPathExport=@c:\Temp\myreport.txt;
tExport.Export(_report, sPathExport);
When i am open file "myreport.txt" in NotePad it's output like this
(this output create from my code)
Report Format Preview
Code Customer Name Fat Liter Amount
1 ABC 5.6 80.00 5000.00
XYZ 4.5 90.00 6000.00
2
When I have export in Text format from TextExportPreview windows It's perfectly export into File.
Report Format Preview
Code Customer Name Fat Liter Amount
1 ABC 5.6 80.00 5000.00
2 XYZ 4.5 90.00 6000.00
I Sets Setting is
Report Page Size Width: 254.00mm, Height: 304.80mm
Font Courier New, Size: 11
PageBreak is checked
Frame as Text
DataLineOnly unchecked
ScaleX =1.08
ScaleY = 3.59
I have write following code for export in TextFormat and Save in a File when Press P in ReportPreview
(Programming Language is Visual Studio 2005 .Net C#)
When I am pressing p then following code is execute
_report.SmoothGraphics = false;
FastReport.Export.Text.TextExport tExport = new FastReport.Export.Text.TextExport();
_report.PrintSettings.ShowDialog = true;
_report.TextQuality = TextQuality.Regular;
tExport.PrinterName = "Epson Lx-800";
tExport.TextFrames = true;
tExport.ScaleX = 1.08F;
tExport.ScaleY = 3.59F;
string sPathExport=@c:\Temp\myreport.txt;
tExport.Export(_report, sPathExport);
When i am open file "myreport.txt" in NotePad it's output like this
(this output create from my code)
Report Format Preview
Code Customer Name Fat Liter Amount
1 ABC 5.6 80.00 5000.00
XYZ 4.5 90.00 6000.00
2
Comments
Could you send the prepared report file (.fpx, save from preview) to tz@fast-report.com?