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

Comments

  • edited 5:20AM
    Hello,

    Could you send the prepared report file (.fpx, save from preview) to tz@fast-report.com?

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.