Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

ASP.net CrystalReportViewer / Overlapping Form Elements

Posted on 2004-08-03
7
1,214 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 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