Print Preview Problems and Two Questions

I'm having problems with Print Preview on a LocalReport. The "Generating Report" message stays on screen even after the toolbar becomes re-enabled. I can print, via the print button, refresh, and go back to the normal view. However, the problem does not occur with the sample Web Log Analyzer project. I have deleted the report and recreated it (several times). The only thing I haven't done is to compare the XML of my report and the Web Log report to see if there is anything radically different.

The report is a LocalReport (embedded resource), using A4 page size and 1cm margins. The data supplied is via 4 business object types. 3 are supplied as object arrays and 1 is supplied using List<T>. The report uses metric measurements.

The problem started showing up when I changed the page margins. However, resetting the page margins has no effect.

Two further questions:
Will support for nested properties be provided (such as an Invoice object which has a property being a List<InvoiceLines>) I can see the property and properties of the InvoiceLine class, but I cannot drag and drop the fields onto the form. Currently, I supply another dataset for the lines.

Is nested grouping working for object based reports I can't seem to create a List within a List (such as printing a group of Invoices). The inner group seems to always bind to the outer group's dataset.


Answer this question

Print Preview Problems and Two Questions

  • tha0

    I am now having the same problem in the report preview with the 'Generating Report' hanging but still allowing me to print. Anyody have any kind of word on this


  • Dave Balsillie

    The first issue may be a bug in ReportViewer. Regarding your questions, nested properties are not supported. Report Designer will not allow you to drag and drop nested properties. However, since expressions in the report can be any valid VB expression, you may be able to say something like =Fields!InvoiceLines.Value(0).ProductID

    Core reporting features such as lists and grouping work the same way regardless of whether your report is based on datasets or objects.

  • Print Preview Problems and Two Questions