Click here to Skip to main content
12,633,990 members (24,353 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: CrystalReports
Hi..
Am using crystal reports and while exporting to pdf or any other format,getting error as "Failed to export using the options you specified. Please check your options and try again." How to solve this?
Posted 3-Feb-13 22:12pm
Comments
Richard MacCutchan 4-Feb-13 4:57am
   
Do what the message tells you.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Use Session to store Report and Use its Solve your Problem.
Look at Code

protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Session.Remove("CR_Session");
                Session.Clear();
                BindReport();
            }
            CrystalReportViewer1.ReportSource = Session["CR_Session"];  //Set Report Source for Viewer
        }
        void BindReport()
        {
            HR_EmployeeVocation Cr = new HR_EmployeeVocation(); //Create New Report Instance
            Cr.SetDataSource(GetEmployeeList());  //Set Data Source for Report
            Session.Add("CR_Session", Cr);  //Add Report into Session CR_Session
        }
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161208.2 | Last Updated 14 Aug 2014
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100