Solved

Crystal report postback in VB.NET(URGENT)

Posted on 2004-08-02
2
678 Views
Last Modified: 2012-05-05
Hi,


I am new to crystal reports,I am using crystal reports.NET. I am getting the data from database to a dataset and attaching datatset to the report.When I click next button on the report, again it is going to database.

I tried getting the data only when it is not postback, when that time I click 'NEXT' I am not getting any data.It is displaying reportviewer control.Because the dataset is empty.Is there any properties I need to set.

I can use sessions but I don't want to use. Is there is any way I  can do

Also, I have lot of columns to display in the report.I changed the page setup to landscape, Still I need more space.How to increase the width.

This one is very urgent, Please Help!

Thanks in advance.
0
Comment
Question by:sormv
[X]
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
2 Comments
 
LVL 1

Accepted Solution

by:
RichWallace earned 100 total points
ID: 11699672
Hmm..not quite sure about the report calling the DB again on clicking NEXT, I export my reports to PDF and allow the user to maintain the report if they need it.

As far as increasing width, try changing it to Legal...
Right-click in the report object and select 'Designer','Printer Setup' and change your paper size to Legal.

HTH
-Rich
0
 
LVL 42

Expert Comment

by:frodoman
ID: 11704153
>>> I tried getting the data only when it is not postback, when that time I click 'NEXT' I am not getting any data.

This is true - the viewer doesn't hold the data between posts so Biz Objects recommends that you do not put your report creation code in your "not postback" section.

>>> When I click next button on the report, again it is going to database.

This is the correct behavior.


If you want different behavior then your best bet is to create the report, export it to some other format (personally I think PDF is best) and then display the PDF file in the browser.

frodoman
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

724 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