Hi everyone,
I have a grid which the User can select an Invoice Item to view.
I have the code below which returns an empty report. Thanks.
try {
var selectedinvoice = InvoiceView.GetFocusedRow() as Invoice;
if (selectedinvoice == null) return;
rptInvoice InvoiceChoice = new rptInvoice();
InvoiceChoice.DataSource = _invoiceTransactionService.GetById(selectedinvoice.InvoiceId);
ReportPrintTool tool = new ReportPrintTool(InvoiceChoice);
tool.ShowPreview();
} catch (Exception Errhand) {
MessageBox.Show(Errhand.Message);
}
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sujeet SumanRank #790 · 2.9K reputationPosted Sep 25, 2015, 11:06 AM EDT
Peter Dzuya156 reputationPosted Sep 29, 2015, 1:38 AM EDT