Skip to Content
avatar image
Former Member

vb.net2008 CR suppress print if nothing selected

In Crystal Reports Designer XI there is an option which suppress print if no data is selected.

So nothing happens if you print to printer and there is no data selected.

Is there a possibility having this behavior in my vb.net2008 CR application?

Using PrintToPrinter() with no data selected always prints a blank page.

I use following code:

Dim objReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument

objReport.Load("example.rpt")

.

.

.

objReport.PrintToPrinter(1, False, 0, 0)

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jul 02, 2010 at 10:52 PM

    Hi,

    I am not clear about the statement ".......no data is selected" please elaborate on that.

    Are you trying to suppress a section or a report object displaying some data?

    Thanks,

    Bhushan.

    Add comment
    10|10000 characters needed characters exceeded

    • Sorry for the late reply on this issue. The product development team reviewed the problem (ADAPT00264642) with the suppress printing no records and have decided to not fix it for the current version of the product. There are too many changes to make at this time so they will look at this for future releases of Crystal Reports.

      The notes indicate this isn't fixed in Crystal Reports for Visual Studio 2010 either. I will follow up with the project manager to see if it can be looked at again.