FastReport. Report Report=new FastReport. Report ();
String path=System. Environment. CurrentDirectory + "/DNR. Usd";
Report. The Load (path);
BGCZ bz=new BGCZ ();
//string DDHCX="SELECT TOP (1) QC_A. Order name FROM QC_A INNER JOIN JHB ON QC_A. Order number=JHB. Order ID the where (JHB. Bar code='" + ss. The ToString () +" ");
The StringBuilder ss=new StringBuilder ();
ListList=new List (a);
Int ZTMS=this. RichTextBox1. Lines. The Count ();
For (int I=0; i{
String aa=this. RichTextBox1. Lines [I] the ToString ();
//MessageBox. Show (aa);
List. Add (aa);
}
String [] bb=list. ToArray ();
The foreach (string dd in bb)
{
//ss. Append (dd);
String DDHCX=the string. Format (@ "SELECT TOP (1) QC_A. Order name FROM QC_A INNER JOIN JHB ON QC_A. Order number=JHB. Order ID where JHB. Bar code={0}", dd);
//MessageBox. Show (bz) CXDG (DDHCX). The ToString ());
(the report. The FindObject (" Text2 ") as TextObject). The Text=bz. CXDG (DDHCX). The ToString ();
Report. The Print ();
}
Used to print is very simple, this time to qr code for the first time to use fastreport this software, but I don't know is my code or software setup issue, my richtextbox have three rows of data, corresponding to query the database and three data, and then on the template, but print is the point when a print a piece, how can ability let him directly to print out three?