Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
Display a Report from a selected grid Item
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Peter Dzuya
9y
384
1
Reply
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);
}
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
MVC
a return keyword must not be followed by anobject expression