Új hozzászólás Aktív témák
-
NoMan
csendes tag
Akkor is legalább 3mp a render idő, ha csak egy label elem van az rdclen, amibe beleírtam egy szöveget. Tehát teljesen adatfüggetlen nyomtatási kép esetén is lassú a render idő.
Így hívom meg az osztályt:
LocalReport report = new LocalReport();
report.ReportEmbeddedResource = "<rdcl neve>.rdlc";
Report_DataSet dataSet = new Report_DataSet();
DataTable dataTable = dataSet.dataGridView_List;
DataRow dataRow = null;
foreach (DataGridViewRow row in dataGridViewProductList.Rows)
{
dataRow = dataTable.NewRow();
dataRow["productId"] = ((row.Cells["colProductId"].Value != null) ? row.Cells["colProductId"].Value.ToString() : "");
dataRow["productName"] = ((row.Cells["colProductName"].Value != null) ? row.Cells["colProductName"].Value.ToString() : "");
dataRow["productCount"] = ((row.Cells["colProductCount"].Value != null) ? row.Cells["colProductCount"].Value.ToString() : "");
dataTable.Rows.Add(dataRow);
}
report.DataSources.Add(new ReportDataSource("dataGridView_List", dataTable));
using (Printer printer = new Printer())
{
printer.Run(report);
}
Új hozzászólás Aktív témák
● ha kódot szúrsz be, használd a PROGRAMKÓD formázási funkciót!
- iPhone 17 Pro Max 256Gb Új bontatlan Garanciális Számlás(27%)
- iPhone 17 Pro 256Gb Új bontatlan Garanciális Számlás(27%)
- Xiaomi Redmi Note 14 Pro+ 8/256GB, Megkímélt, Kártyafüggetlen, Töltővel, Dobozzal, 1 Év Garanciával!
- Csere-Beszámítás! Macbook Air M1 8/256 Retina! Makulátlan! Akksi 96%!
- Apple iPhone 14 128GB, Akku: 98%, Megkímélt, Kártyafüggetlen, Töltővel, 1 Év Garanciával!
Állásajánlatok
Cég: BroadBit Hungary Kft.
Város: Budakeszi
Cég: Laptopműhely Bt.
Város: Budapest

