Crystal Report Showing Wrong Values On Pressing Print Button?
or
Crystal Report Details Section Value Changes On Run Time When You Click Print Button?
A Major Hurdel Of Crytal Report Is Solved Now!
Did You Ever Notice The Values In Details Section Changes Automatically When You Press Any Button From The Crystal Report Toolbar On Top.
In Simple Words Its Just Because Crystal Report Saying That Please Learn The Life Cycle Of ASP.Net Page Again!
By Means Of This I Want To Say That Crystal Report Showing Confliction In Values Because Of Loading All Values On Page Load Every Time!
Basically you are addicted to love using thing like this..
Writing your reprt binding function in page load by making sure that page is not post back
protected void Page_Load(object
sender, EventArgs e)
{
if (!Page.IsPostBack)
{
{
if (!Page.IsPostBack)
{
bindingfunction();
}
}
}
Why Don't You Try Put You Binding function In Page_Init Step of Page life cycle
protected void Page_Init(object
sender, EventArgs e)
{
if (!Page.IsPostBack)
{
{
if (!Page.IsPostBack)
{
bindingfunction();
}
}
}
And You'll See Nothing Is Sorted Out Because You Are Still Calling your page.ispostback here
just remove it and see the problem is no more existed in your crystal page.
protected void Page_Init(object
sender, EventArgs e)
{
{
bindingfunction();
}
Ask Me If You Didn't Understand any thing from above or you have further more question
No comments:
Post a Comment