cancel
Showing results for 
Search instead for 
Did you mean: 

Display Toolbar error

Former Member
0 Kudos

Post Author: app

CA Forum: .NET

When I enable "Display Toolbar" on the CrystalReportViewer I get an error when I try to display the report on a web page. The error is "Control 'CrystalReportViewer1_ctl02_ctl01' of type 'ToolbarButton' must be

placed inside a form tag with runat=server." The report displays normally if the Display option is false. What causes this error? I need to display the toolbar.VS 2005

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Post Author: xamslp

CA Forum: .NET

Hi.

Ensure that you have a form tag in your aspx page. I just ran into this and when I removed my old CRViewer, the <form> tag went with it.

<body><form id=frmViewer method=post runat=server>...<crviewer/></form></body>

Felix

Answers (3)

Answers (3)

Former Member
0 Kudos

Post Author: app

CA Forum: .NET

Yes, that's it! Thank you! I've been scouring the Internet for a while now trying to find the answer. Whew, glad that's over.Thanks xamslp

Former Member
0 Kudos

Post Author: xamslp

CA Forum: .NET

sorry double post 😕

Former Member
0 Kudos

Post Author: xamslp

CA Forum: .NET

Hi.

Ensure that you have a form tag in your aspx page. I just ran into this and when I removed my old CRViewer, the <form> tag went with it.

<body><form id=frmViewer method=post runat=server>...<crviewer/></form></body>

Felix