Solved

Crystal report postback in VB.NET(URGENT)

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Query combine all charges 6 58
.csv files 5 79
Oracle function works in 11g but not in 12c 21 59
Slow SQL query 12 27
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
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…

746 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