Solved

Crystal Report Export Problem

Posted on 2006-11-15
9
927 Views
Last Modified: 2012-05-05
Dear Sir,
    I am using .net crystal reports on my machine.  i developed two reports.  the two reports are displaying correctly.  But in one report i am able to export the report correctly to the desired format.  but in the second report i am getting the error "input string not in correct format".  but the same code i used for the both reports.i.e., i copied the first reports code to the second reports code.

    The first report is in one page and the second report is in the dialog window.  and i passed all the parameter values and connection string values to the report along with the selection formula.

How can i over come this problem.
0
Comment
Question by:seshu123
  • 4
  • 2
9 Comments
 
LVL 4

Author Comment

by:seshu123
ID: 17946027
Actually the Error is Like this

Server Error in '/HATWebSite' Application.
--------------------------------------------------------------------------------

Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2753507
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +102
   System.Int32.Parse(String s) +20
   CrystalDecisions.Web.CrystalReportViewer.OnExport() +404
   CrystalDecisions.Web.CrystalReportViewer.RaisePostBackEvent(String eventArgument) +99
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +242
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3834

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
0
 
LVL 1

Expert Comment

by:Shay79
ID: 17947500
Hi

Have you tried verifying the database on the report thats not exporting?
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 17949358
What code are you using to export the reports?

If you are passing date parameters they need to be DATE type or DATETIME type.  Crystal will not convert them for you.

mlmcc
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 4

Author Comment

by:seshu123
ID: 17962692
Thanks Sir,
        i found the solution and i corrected my reports coding.


Thanks Once again for your valuable time
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 17965889
What was the error?

mlmcc
0
 
LVL 4

Accepted Solution

by:
seshu123 earned 0 total points
ID: 17977165
actually,
   I am calling the report in one window. But in asp.net i made a trick so that the window was a modal window.  for this i am calling the report window in another window.  so that  the database and the server information are missing.  after that i put some buttons on the top and i removed the crystal reports export and print dialog buttons.  


Then it was worked.


Thanks you sirs,
  thanks for your valuable time.
0
 
LVL 4

Author Comment

by:seshu123
ID: 17985173
ok Pls. Close the question.


Thanks & regards,
Seshu123
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

919 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

19 Experts available now in Live!

Get 1:1 Help Now