question

MicheleSantucci-5590 avatar image
0 Votes"
MicheleSantucci-5590 asked AlbertKallal-4360 edited

ReportViewer control floating over form

I have some old ASP.NET WebForms that use ReportViewer control. The control works at runtime without problems but at design time it appears floating over the form instead being enclosed in the form where the control is declared.

 <tr>
     <td>
         <rsweb:ReportViewer ID="rptDati" runat="server" Height="440px" Width="100%" />
     </td>
 </tr>

I'm using the lastest version of Microsoft.ReportingServices.ReportViewerControl.WebForms package (as long as the latest Visual Studio RDLC extension).
How can I fix it?

dotnet-aspnet-webforms
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @MicheleSantucci-5590 , I'm not sure if you are describing the dotted lines outside the table cells in the design view, it may seem to make the entire ReportViewer control float on the form, but it will not have any effect on the results. If you move the ReportViewer control out of the table, there will be no such dotted lines.
If I understand something wrong, could you describe your problem more accurately?

0 Votes 0 ·

Hi @XuDongPeng-MSFT, since an image is worth thousand words, this's the result.

83965-cattura.png

ReportViewer should be placed below lblStatus element but as you can see it is rendered over it... but only at design time ... at runtime it correctly show in the correct place.
The behaviour get worse if I wish to specify height attribute for ReportViewer .. in such case object extend and overlaps with much of the form layout.
It may depends on css styles applied on the form? It needs to be enclosed inside particular tags?





0 Votes 0 ·
cattura.png (17.6 KiB)

I can't say you can 100% rely on the web forms designer in that view mode. The problem is with the rise of css, and a HUGE and RAPID change in web technologies?

Well, then most developers don't' have or use a GUI for the web form layout. In fact, if you jump to MVC web development, you DO NOT have a web forms design surface anymore.

So all those developers? They simply do the layout via mark-up, and then say hit ctrl-s to save, and then go to the running browser (probably on their 2nd monitor) and then hit f5 to refresh. So, to see changes occurs in very little time.

Because web based technology is moving so fast? Well, then for that design surface to REALLY work correct, then that surface designer would requite the latest browser updates. This is something that no company can keep up to date - including Microsoft. And as a result, most developers don't use a web design surface, they use a real browser to see/display/show the layout and how it will look.



0 Votes 0 ·
Show more comments

0 Answers