Crystal Report中的Aligment问题 [英] Aligment issue in Crystal Report
问题描述
Hello Guys,
我需要一个解决我的水晶报告打印问题的解决方案,我在下面说过。
我在我的应用程序中开发了条形码打印选项,我必须连续打印4列。我已经成功完成了但是我遇到了一个问题,例如在我的打印机中获得一个空行,如果我已经打印了24个项目,它会正确打印4行,并且它会在最后打印出一个空行。亲切地帮助我解决这个问题,我处于一个异端的位置。我也在下面给出了我的代码来检查它。谢谢
Hello Guys,
I need a solution for my crystal report printing issue which i have stated below.
I have developed a bar-code printing option in my application where i have to print 4 column in a row. i have done it successfully but i have faced a issue by getting a empty row in my printer for example, "If i have given 24 items to print, it prints 4 rows correctly and also it prints me one empty row in last". So kindly some one help me to solve this issue i am on a heretic position. Also i have given my code below for check it. Thanks
private void Form1_Load(object sender, EventArgs e)
{
Barcodes barcodeDetails = new Barcodes();
DataTable dataTable = barcodeDetails._Barcodes;
BarcodeReport Report = new BarcodeReport();
int blank_labels = 0;
//int numberLabel = Convert.ToInt16(o);// 3;
string[] proid = p.Split(',');
string[] proname = q.Split(',');
string[] procost = r.Split(',');
string[] prodate = s.Split(',');
string[] prototal = o.Split(',');
for (int j = 0; j < proid.Length; j++)
{
string id = proid[j].Trim();
string name = proname[j].Trim();
string cost = procost[j].Trim();
string date = prodate[j].Trim();
string Total = prototal[j].Trim();
int numberLabel = Convert.ToInt16(Total);
for (int i = 0; i < numberLabel; i++)
{
DataRow drow = dataTable.NewRow();
if (blank_labels <= i)
{
drow["Barcode"] = "*";
drow["Barcode"] += id;//
drow["Barcode"] += "*";
drow["ProductId"] = id;//
drow["Product Name"] = name;//
drow["Cost"] = "Rs. " + cost;
drow["Date"] = date;//
}
dataTable.Rows.Add(drow);
}
}
Report.Database.Tables["Barcodes"].SetDataSource((DataTable)dataTable);
crystalReportViewer1.ReportSource = Report;
crystalReportViewer1.Refresh();
}
推荐答案
这篇关于Crystal Report中的Aligment问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!