Solved

ASP.net CrystalReportViewer / Overlapping Form Elements

Posted on 2004-08-03
7
1,210 Views
Last Modified: 2010-05-18
I have a asp.net webpage I am trying to use the <cr:crystalreportviewer> in.  I can get the report to show great, but the problem is, the report overlaps any of the other elements on the form. Basically I have a webform to allow the user to select the report, and I want the report to appear below the rest of the form.  I've verified like 10 times now that the html on the page is valid (i'm not forgetting to close any tags), also I use no absolute positioning in my page.  Does the report viewer need to be in its own page?

My basic html setup of the page is something like this

<div>
  ..form elements
</div>
<div>
  <cr:crystalreportviewer ....>
</div>

--Michael
0
Comment
Question by:raterus
7 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 11709798
I am not that familiar with web and asp with Crystal but I believe you are correct that the viewer should be in its own form.

I believe there are ways to have a report show as you are wanting but it is not through the viewer.

mlmcc
0
 
LVL 42

Expert Comment

by:frodoman
ID: 11710132
I've done just a very little work with this but I've always had the viewer on a form with other elements:

<form id="Form1" method="post" runat="server">
  <CR:CRYSTALREPORTVIEWER id="CrystalReportViewer1"...> </CR:CRYSTALREPORTVIEWER>
  <asp:textbox id="TextBox1" ...>  </asp:textbox>
  ... etc ...
</form>

Perhaps it's the positioning of your <div> layers that's causing the problem?

If it helps you may want to check some sample applications to get you started: http://support.businessobjects.com/communityCS/FilesAndUpdates/vbnet_web_samples.exe.asp

frodoman      
0
 
LVL 13

Expert Comment

by:TommyTupa
ID: 11713632
I've had the same problem and am forced to output reports containing subreports to PDF rather than HTML.  Please let me know if you find a solution.

0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 33

Author Comment

by:raterus
ID: 11718782
It would seem that the CrystalReportViewer outputs a style-tag along with everything else.

<style>
    div {position:absolute; z-index:25}
    a {text-decoration:none}
    a img {border-style:none; border-width:0}
</style>

Which takes all my div's and positions them in the upper left, any way to turn this off.  I experimented with the html, when just taking out the first line of that style, the report gets messed up (but it doesn't overlap anymore!)
0
 
LVL 33

Author Comment

by:raterus
ID: 11719019
Well it's pretty limiting as far as the web goes, but if you take the rest of your content out of <div> or <asp:panel> objects, the viewer will display where you put it.
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 11981967
PAQed, with points refunded (500)

Netminder
Site Admin
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now