Page 1 of 1

Print data, from a text file, without the need to visualize a report.

Posted: Mon May 23, 2011 1:22 pm
by SkyWander
Good afternoon everyone.

I wonder, how do I print (USB printer) data from a text file

Via Stimulsoft, without the need to visualize a report.

Thank you in advance.

Print data, from a text file, without the need to visualize a report.

Posted: Tue May 24, 2011 2:49 am
by Ivan
Hello,

Please provide more details regarding your issue.

Thank you.

Print data, from a text file, without the need to visualize a report.

Posted: Tue May 24, 2011 8:24 am
by SkyWander
I need read a text file, and use then in stimulsoft,
I know that the rich text can do it, but I don't know how.
I saw some samples using the getvalue event, but i need do something diferent
I using stimulsoft like a class,
the rich text accept a text file like parameter?

Print data, from a text file, without the need to visualize a report.

Posted: Thu May 26, 2011 5:03 am
by Alex K.
Hello,

You can use the following code:

Code: Select all

StiReport report = new StiReport();
report.Load();
Stimulsoft.Report.Components.StiRichText rt = report.GetComponents()["RichText1"] as StiRichText;
RichTextBox rtb = new RichTextBox();
rtb.LoadFile(@"e:\Sample.rtf");
rt.RtfText = rtb.Rtf;
report.Compile();
report.Show();
Thank you.