Solved

Crystal report postback in VB.NET(URGENT)

Posted on 2004-08-02
2
643 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
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This article describes some very basic things about SQL Server filegroups.
APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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…

803 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