jasonhuibers
Programmer
I am trying to print my report directly from the asp page rather than display the report. When I use IsDisplayPage = true the report appears and the printer dialog box is prompted as well. When I change .IsDisplayPage to = false to hide the viewer, the report does not appear and the printer dialog box appears but when I click Print I get
An communication error occurred. Printing will be stopped
Here is the viewer properties:
With Session("crReportViewer")
.ReportSource = reportDocument.ReportSource
.IsOwnForm = True
.IsOwnPage = True
.PrintMode = 1
.IsDisplayGroupTree = False
.HasCrystalLogo = False
.HasPageNavigationButtons = True
.HasExportButton = True
.HasRefreshButton = True
.HasSearchButton = True
.HasPrintButton = True
.HasGotoPageButton = True
.HasToggleGroupTreeButton = True
.HasViewList = False
.EnableParameterPrompt = False
.EnableLogonPrompt = False
.IsSeparatePages = True
.IsDisplayToolbar = True
.IsEnableDrillDown = False
.ReuseParameterValuesOnRefresh = True
.IsDisplayPage = false
End With
An communication error occurred. Printing will be stopped
Here is the viewer properties:
With Session("crReportViewer")
.ReportSource = reportDocument.ReportSource
.IsOwnForm = True
.IsOwnPage = True
.PrintMode = 1
.IsDisplayGroupTree = False
.HasCrystalLogo = False
.HasPageNavigationButtons = True
.HasExportButton = True
.HasRefreshButton = True
.HasSearchButton = True
.HasPrintButton = True
.HasGotoPageButton = True
.HasToggleGroupTreeButton = True
.HasViewList = False
.EnableParameterPrompt = False
.EnableLogonPrompt = False
.IsSeparatePages = True
.IsDisplayToolbar = True
.IsEnableDrillDown = False
.ReuseParameterValuesOnRefresh = True
.IsDisplayPage = false
End With