Integration of Crystal Report Viewer in VS2010 WPF

Hello,
I google and research and founded that the viewer control is not attached with VS2010 so, we have to install it separately. I found it form here    [http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp].
I installed "SAP Crystal Reports, version for Visual Studio 2010".
Now, I want to add Crystal Report Viewer on my WPF Page. how can I do this ?
I tried to find that control to add in toolbox but I didn't find it.
Please can someone help me int this that how can I add that control and call the report to view in that and change the sql server dynamically for that crystal report.
Bunch of thanks in advance, this would save me a lot....Appreciated any ones help.
Thanks

See [this|http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/a09f7025-0629-2d10-d7ae-df006a51d1a8] demo and search these forums too.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Similar Messages

  • Multiple instances of Crystal Reports Viewer possible in WPF?

    Hi, I've dragged and dropped three Crystal Reports Viewer controls on my WPF application. The goal is to be able to select up to 3 reports from a listbox and click run to generate the reports simultaneously. When I select just one report, it works fine. However when I select multiple reports it throws errors (object not found, etc). It seems there is a problem with multiple threads. Is it possible to have multiple instances of the Crystal Report Viewer display reports simultaneously? I am using version 13.0.9.1312 from the link below along with VS2013 C# WPF.
    SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
    Thanks,
    Syed

    I was able to quickly cobble together a two viewer app that looks like this:
    The code is like this:
    Public Sub New()
            ' This call is required by the designer.
            InitializeComponent()
            ' Add any initialization after the InitializeComponent() call.
            Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            crReportDocument.Load("C:\tests\formulas.rpt")
            CrystalReportsViewer1.ViewerCore.ReportSource = crReportDocument
            Dim crReportDocument2 As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            crReportDocument2.Load("C:\tests\report1.rpt")
            CrystalReportsViewer2.ViewerCore.ReportSource = crReportDocument2
        End Sub
    For more details see the document WPF Project Using the Crystal Reports WPF Viewer in 8 Easy Steps
    Now a couple of things to keep in mind;
    1) The report engine is based on 3 Concurrent Processor License (CPL) model. Meaning you can process at most three reports at the same time. In my test, doing the above code for four reports worked, but the reports are very, very simple - and with saved data. What a "real" world reports will do, I am not sure. I do know that in a web app, the reports are queued up until one report is done and thus a CPL is freed up. You will also need to keep in mind any database connection limits, etc.
    2) There is also a Print Job limit. This by default is set to 75. In a nutshell, almost anything done with a report is a Print Job. E.g.; paging, zooming, drilling, searching, etc., etc. In addition subreports are considered to be Print Jobs. Thus a report with one subreport in a detail section that returns a thousand rows of data and therefore running 1000 subreports will error out.
    You can read more about Print Job limits here:
    Crystal Reports Maximum Report Processing Jobs ... | SCN
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • WPF Styles and WPF Crystal Reports viewer

    Hi,
    We are currently developing a WPF application which will utilize Styles created with Expression Blend.
    Our environment is VS2010 SP1 and Crystal Reports for VS2010 SP2.
    We want to design our reports with Crystal Reports but we don't seem to find any documentation or topics about integrating WPF Styles with the current WPF Crystal Reports Viewer.
    So I was wondering if somebody here already tried to use WPF styles with the WPF CR Viewer.
    If so, how does it basically work?
    Thank you in advance.

    Hello Alan
    This morning I got a short note on the issue from Program Management. In a nut shell this is what they say:
    ..at this time the WPF viewer doesn't expose support for styles and the best thing will a post
    to the idea on [SAP IdeaPlace|SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]. Based on the interest level expressed there the PM group will make a decision on how best to proceed.
    Obviously, this is not going to be a swift process, but at least something...
    - Ludek

  • Crystal Report Viewer integration with Sharepoint 2010

    We had a requirement in our project to view crystal report off an hyper link embedded into sharepoint web part developed using ASP .NET. The report accepted few parameters from the sharepoint page and passed those on to the SQL server to retrive data and
    display the data in the report. The challenge was to open the report in the web browser.
    The first difficulty was to find the right control to use, the report viewer tool that comes with Visual Studio 2010 is not the right one to use to view Crystal reports, I realised this after spending half a day trying to figure out why wouldn't the report
    load. I then downloaded the Crystal Report Viewer for VS 2010 Standard from http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp. After you install this, you get the crystal report viewer in your toolbar. All you have to do is drag and drop it on
    to the web part and configure it to use your report. If any one needs help with this let me know I will show how to do that.
    So far so good. The biggest challenge was to deploy this on to the production server which took better part of 3 days to figure out how its done. If you deploy the WSP file as it is expecting that the crystal DLLs would be embedded in it then be ready to
    expect a rude shock because it isn't. Here are the steps -
    1. Deploy the WSP to the sharepoint server
    2. Install the crystal dlls used in the project (CrystalDecisions.CrystalReports.Engine.dll, CrystalDecisions.ReportSource.dll, CrystalDecisions.Shared.dll, CrystalDecisions.Web.dll) into the GAC using GacUtil command
    3. Add following entries to Web.Config file (C:\inetpub\wwwroot\wss\VirtualDirectories\80\web.congif)
        <SafeControl Assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.CrystalReports.Engine" TypeName="*" Safe="True" SafeAgainstScript="False"
    />
          <SafeControl Assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.ReportSource" TypeName="*" Safe="True" SafeAgainstScript="False" />
          <SafeControl Assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Shared" TypeName="*" Safe="True" SafeAgainstScript="False" />
          <SafeControl Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TypeName="*" Safe="True" SafeAgainstScript="False" />
    4. Install crystal redistributable package which can be downloaded from http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp (
    SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit))
    5. Copy aspnet_client folder from C:\>inetpub\wwwroot and overwrite it on C:\>inetpub\wwwroot\wss\VirtualDirectories\80
    And we are done. Fingers crossed it should all work.
    Prasad Matkar MCP, MCTS

    Hi Mahesh,
    How are you loading the report in your webpart? This is what I have done. I have tried to explain what I am doing in the program comments. Hope this helps. Good luck.
                    SPSite mySite = new SPSite(SPContext.Current.Site.Url.ToString());
                    SPWeb thisSite = mySite.OpenWeb();
                    // Writing to event log after every step in debug mode so that you get to know if there was a failure what step the failure occured after.
                    EventLog.WriteEntry("Reports", "Inside PAge Load ", EventLogEntryType.Error);
                    SPFolder folder = thisSite.GetFolder("Reports");
                    if (folder.Exists)
                        // get collection of Crystal Reports rpt files in the document library
                        SPFileCollection files = folder.Files;
                        // open the rpt file and get the contents
                        SPFile srcfile = files[reportToLaunch];
                        byte[] content = srcfile.OpenBinary();
                        // make a temporary folder
                        DirectoryInfo dir2 = new DirectoryInfo("~/temp");
                        if (!dir2.Exists)
                            dir2.Create();
                        if (File.Exists("~/temp/temp.rpt"))
                            File.Delete("~/temp/temp.rpt");
                        // write the report definition to a temporary file
                        // EventLog.WriteEntry("Reports", "Before Creating temp report ", EventLogEntryType.Error);
                        //EventLog.WriteEntry("Reports", "Before Create ", EventLogEntryType.Error);
                        BinaryWriter bw =
                          new BinaryWriter(File.Open("~/temp/temp.rpt", FileMode.Create));
                        bw.Write(content);
                        bw.Close();
                      //  EventLog.WriteEntry("Reports", "After Create ", EventLogEntryType.Error);
                        // set up the crystal report
                        ReportDocument reportDoc = new ReportDocument();
                        reportDoc.Load("~/temp/temp.rpt");
                        EventLog.WriteEntry("Reports", "after report load ", EventLogEntryType.Error);
                        ConnectionInfo connection = new ConnectionInfo();
                        connection.ServerName = "SQLServerName";
                        connection.DatabaseName = "SQLDatabase";
                        connection.UserID = "sqluser";
                        connection.Password = "sqlpassword";
                        TableLogOnInfo logon = new TableLogOnInfo();
                        logon.ConnectionInfo = connection;
                        reportDoc.SetParameterValue("@Parameter1", parameter1);
                        reportDoc.SetParameterValue("@Parameter2", parameter2);                                               
                        EventLog.WriteEntry("Reports", "after assigning parameters ", EventLogEntryType.Error);
                       foreach (CrystalDecisions.CrystalReports.Engine.Table t in reportDoc.Database.Tables)
                            t.ApplyLogOnInfo(logon);
                        EventLog.WriteEntry("Reports", "after applying login info ", EventLogEntryType.Error);
                        // and the Crystal report Viewer                                    
                        CrystalReportViewer1.ReportSource = reportDoc;
                        EventLog.WriteEntry("Reports", "Before delete ", EventLogEntryType.Error);
                        // clean up
                        File.Delete("~/temp/temp.rpt");
                        EventLog.WriteEntry("Reports", "after delete ", EventLogEntryType.Error);
    Prasad Matkar MCP, MCTS

  • Crystal Report Viewer fails for browser versions =10

    We're using the Crystal Reports for VS2010 SP2 and get the following error when trying to generate a report in Firefox 10.0.2 and Chrome 18.0.1025.11 beta-m:
    [NullReferenceException: Object reference not set to an instance of an object.]
       CrystalDecisions.Web.ViewerGlobal.get_IsNetscape6Up() +88
       CrystalDecisions.Web.CrystalReportViewer.Render(HtmlTextWriter output) +83
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8991378
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208
       System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +173
       System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +31
       System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +53
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8991378
       System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
       ASP.app_filters_reportviewer_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\qfmui\10eb2bd5\d0d0d3a5\App_Web_e2fg2prg.2.cs:0
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +109
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
       System.Web.UI.Page.Render(HtmlTextWriter writer) +29
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8991378
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3060
    If I change the user agent string in Firefox to that of Firefox 7.0.1 everything works as expected, this implies there is some logic in get_IsNetscape6Up() which is failing because the major browser version as reported by the user agent string is two digits instead of one.
    We encountered a similar issue for our legacy pages containing Infragistics 2007 controls but were able to fix that by overriding the System.Web.Configuration.HttpCapabilitiesBase.BrowserCapabilitiesProvider and faking the browser version to 9.80.  Crystal Report Viewer is apparently not using .Net's built in HttpBrowserCapabilities object, is there anything else I can adjust to stop the viewer failing?

    hello Robert
    Today must be my day. I already got a reply from PM (normally it takes a "bit" longer...). Anyhow, here is what he said:
    With Firefoxu2019s release cycles, I donu2019t think weu2019ll be able to officially support the latest versions
    of Firefox at every service release.  We do our best to test the released versions of Firefox
    that align with our releases.  I donu2019t know the details but Iu2019ve heard there is a plan in place where
    the support team(s) (?) will test the most recent releases of Firefox with whatu2019s currently
    shipping by SAP and log bugs as necessary.
    (umm, this is my - Ludek note here ) -> news to me re. support doing QA... find out something new every day. Anyhow, continuation of the message from PM:
    The current plan for CR for VS2010, the SP3 release (expected in April) will support up to
    Firefox 9.  If there are reproducible bugs in Firefox 10 (or higher), then please enter a bug
    and escalate and it will be investigated for the next available release.
    I'll revisit this once SP3 is out there and do an escalation for Firefox 10 - ok?
    - Ludek

  • How to print directly to Printer from Crystal Report Viewer ?

    Hi All,
    We are integrating our Java Web Application with Crystal report XI, currently using JRC and export to PDF for user to preview and print to local printer.
    Now there is new requirement :
    Some clients is using thin client terminal (no harddisk, only has OS +Browser in ROM), so I cannot install Acrobat Reader for them to preview&print the report.
    So I am looking at  Crystal Report Viewer, the question is : Can I print from Crystal Report Viewer directly to local printer without first converting it to PDF (because I can't have acrobat reader installed) ??
    Thank you very much,
    Krist
    Indonesia

    Hi,
    It can't be achieved through XI.
    JRCXI R2 SDK offers the ability to print the report server side
    using the PrintOutputController using printReport(PrintReportOptions printReportOptions) method.
    Here is the code(for XIR2):
    import="com.crystaldecisions.reports.sdk.*"
    import="com.crystaldecisions.sdk.occa.report.lib.*"
    import="com.crystaldecisions.sdk.occa.report.document.*"
    try {
    final String REPORT_NAME = "Inventory.rpt";
    ReportClientDocument reportClientDoc = new ReportClientDocument();
    reportClientDoc.open(REPORT_NAME, 0);
    //Create and set print options.
    PrintReportOptions printOptions = new PrintReportOptions();
    //Note: Printer with the 'printer name' below must already be configured.
    printOptions.setPrinterName("
    10.10.45.220
    BOBJ 2C");
    printOptions.setJobTitle("Sample Print Job from JRC.");
    printOptions.setPrinterDuplex(PrinterDuplex.horizontal);
    printOptions.setPaperSource(PaperSource.auto);
    printOptions.setPaperSize(PaperSize.paperLetter);
    printOptions.setNumberOfCopies(1);
    printOptions.setCollated(false);
    PrintReportOptions.PageRange printPageRange = new PrintReportOptions.PageRange(1,1);
    printOptions.addPrinterPageRange(printPageRange);
    //NOTE: If parameters or database login credentials are required, they need to be set before.
    //calling the printReport() method of the PrintOutputController.
    reportClientDoc.getPrintOutputController().printReport(printOptions);
    reportClientDoc.close();
    out.println("Successfully sent report to the printer.");
    catch(ReportSDKException ex) {     
         out.println(ex);
    Please revert in case you have any query.
    Thanks,
    Neeraj

  • Crystal report viewer does not observe the PaperSize and PageOrientation setting

    Hi:
    My application is a 3 tier application, where the WinForm client is connected to the WCF Services hosted in IIS server.
    The report is generated on server side using WCF service, and export as.rpt with data, the .rpt file is then sent to the WinForm client, the Crystal Report viewer is used to load the .rpt file for preview and print.
    On server side I've Microsoft XPS Document Writer installed and set as default printer. On the client side if the default printer is XPS or Nitro PDF creator, the report can be view and print correctly, report design in landscape will be able to show in the landscape in CR viewer, report design using custom paper size (e.g. Half Letter), CR viewer able to show it in Half Letter.
    The problem that I'm facing is when the default printer is set to HP LaserJet P1120 or others (I've tried Epson ESC/P Standard driver), the report is always shown in the portrait, and it will not be able to show in custom paper size either. Here is my code:
         Dim settings As New System.Drawing.Printing.PrinterSettings
         Dim rep as New ReportDocument
         rep.Load(sOutputFileName)     'The report is download from server and save in sOutputFileName
         SetReportPaperSize(rep, sPaperSizeName, False, settings) ' sPaperSizeName store the name of the custom paper used in the report
         CrViewer.ReportSource = rep
       Public Shared Sub SetReportPaperSize(rep As ReportDocument, paperSizeName As String, isHardCopy As Boolean, settings As Printing.PrinterSettings)
          Dim installedPrinters As Printing.PrinterSettings.StringCollection = Printing.PrinterSettings.InstalledPrinters
          Dim printers As New List(Of String)
          Dim sPrinter As String
          If installedPrinters.Count = 0 Then
             Return
          End If
          SetPrinterDefaultPaperSize(rep.PrintOptions, paperSizeName, settings)
          With rep.PrintOptions
             .PrinterName = settings.PrinterName
             .PaperSource = PaperSource.Auto
             If paperSizeName.Trim.Length > 0 Then
                .PaperSize = DirectCast(GetPapersizeId(paperSizeName, settings, rep.PrintOptions.PaperSize), CrystalDecisions.Shared.PaperSize)
             End If
          End With
       End Sub
       Public Shared Sub SetPrinterDefaultPaperSize(printOptions As PrintOptions, paperSizeName As String, settings As Printing.PrinterSettings)
          With settings.DefaultPageSettings
             If paperSizeName.Trim.Length = 0 Then
                . PaperSize = GetPaperSize (printOptions.PaperSize, settings)
             Else
                For Each size As Printing.PaperSize In settings.PaperSizes
                   If size.PaperName.EqualsTo(paperSizeName) Then
                      .PaperSize = size
                      Exit For
                   End If
                Next
             End If
             .Landscape = printOptions.PaperOrientation = PaperOrientation.Landscape
             .Margins.Top = printOptions.PageMargins.topMargin
             .Margins.Left = printOptions.PageMargins.leftMargin
             .Margins.Bottom = printOptions.PageMargins.bottomMargin
             .Margins.Right = printOptions.PageMargins.rightMargin
          End With
       End Sub
       Public Shared Function GetPaperSize(paperSizeId As Integer, defaultPrinterSettings As Printing.PrinterSettings) As Printing.PaperSize
          Dim settings As Printing.PrinterSettings = defaultPrinterSettings
          Dim result As Printing.PaperSize
          If settings Is Nothing Then
             settings = New Printing.PrinterSettings
          End If
          ' Default paper Size defined in the printer
          result = settings.DefaultPageSettings.PaperSize
          For Each size As Printing.PaperSize In settings.PaperSizes
             If size.RawKind = paperSizeId Then
                result = size
                Exit For
             End If
          Next
          Return result
       End Function
       Public Shared Function GetPapersizeId(paperSizeName As String, defaultPrinterSettings As Printing.PrinterSettings Optional defaultpaperSizeId As CrystalDecisions.Shared.PaperSize = CrystalDecisions.Shared.PaperSize.DefaultPaperSize) As Integer
          Dim settings As Printing.PrinterSettings = defaultPrinterSettings
          Dim result As Integer = defaultpaperSizeId
          If settings Is Nothing Then
             settings = New Printing.PrinterSettings
          End If
          If Not String.IsNullOrEmpty(paperSizeName) Then
             For Each size As Printing.PaperSize In settings.PaperSizes
                ' Height and Width in Printing.PaperSize is measure in hundredths of an inch
                If size.PaperName.EqualsTo(paperSizeName) Then
                   result = size.RawKind
                   Exit For
                End If
             Next
          End If
          Return result
       End Function
    Setting the PrintOptions.PaperSize and PageOrientation seem like no effect on the viewer. My code to load the report to CR viewer is much more complicated than the code I show above, I've a background worker thread to download the report, and when the worker thread finished download the report from the server, it will assign the report to CRViewer. Do the changes in report PrintOption before assign to CRViewe and after assigning to CRViewer make any different?
    I'm using VS2010, CR XI R2 (Version 11.5.3700.0). Please Help. Thanks
    Regards
    JC Voon

    Hi JC,
    CRXI R2 is a no go with VS 2010, these two are not compatible.
    With CR 11.5 use VS 2005.
    Or Use VS 2010 and CR for VS 2010 (13.0)
    Once you have the supported / compatible conbination of CR and VS, use the In Proc RAS .NET code from below KBA.
    http://search.sap.com/notes?id=0001561333&boj=/sap/bc/bsp/spn/scn_bosap/notes.do?access=69765F6D6F64653D3939382669765F7361706E6F7465735F6E756D6265723D30303031353631333333
    Also, see the KBAs returned by below search. The top right corner search box on this page is quite helpful.
    http://search.sap.com/ui/scn#query=crystal%252C+paper%252C+orientation%252C+.net%252C+sdk&startindex=1&filter=scm_a_site(scm_v_Site11)&filter=scm_a_modDate(*)&timeScope=all
    - Bhushan
    Senior Engineer
    SAP Active Global Support
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Getting started and moving ahead with Crystal Reports .NET applications.

  • Crystal Report Viewer Error Handling

    Dear All
    Thank you for your attention.
    I wrote a C# program for user to print out an order using WPF and crystal report viewer.
    Computer A is connected directly to the printer through USB.
    Computer B and C are connected to the printer through printer sharing.
    Computer A can print out anything such as word doc or image to the printer.
    However, when using the print function in the crystal report viewer(select printer and press print), it crashes.
    Very strange that computer B and C could use the print function in the crystal report viewer without any error.
    As in my developer computer I could not simulate the error, how could I capture and study the error of the print function in the crystal report viewer in computer A?
    Thanks a lot.
    Best Regards
    swivan

    try this:
    https://msdn.microsoft.com/en-us/library/aa288423(v=vs.71).aspx
    https://msdn.microsoft.com/en-US/library/ms225372(v=vs.80).aspx

  • Crystal Report Viewer and border problems

    Post Author: catalinandrei00
    CA Forum: Deployment
    Hello there,    I've created an report and I've added borders for the fields in the report (Right click on the field > Format Object -> Border -> Choose for the 4 margins the line-style single). The report is correctly exported to different formats (.doc, .pdf, .xls). My problem is that when I display the report in an ASP.NET 2.0 page using an Crystal Report Viewer the report is correctly shown but the borders don't appear.My question is why the borders don't appear in the Crystal Report Viewer? Thanks for helping for solving this issue. It's very important.Catalin  

    Hello catalinandrei00
    I have the exact opposite problem as yours.
    I am using integrated crystal reports with Visual Studio 2005 and I have put a Crystal Viewer on a web page.
    First I also had the same problem like yours and then in one of the post i found a solution for this. Hope it will work for you too. here it is :-
    Just remove the following line from your aspx page.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    Now regarding my problem. My problems is that now i can view the borders and everything correctly in the viewer but when i try to print the report it automatically exports to Adobe first and BAM!!! the format disappears. Though if i export to word Doc format it export perfectly fine with all the borders and everything
    I hope some other reader will come to my rescue...pls HELP.

  • About crystal report viewer

    Hello, I use VS2010 and it not support Crystal Report so I install "SAP Crystal Reports, version for Visual Studio 2010 - Standard" but after installed when I create project, the Toolbox still not appear crystal report viewer. What can I do to it appear the same as VS2008.Thanks!!!

    See if you have the folder c:\temp. If you do, rename it to c:\mytemp.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Crystal Reports Viewer seems to have data - but it is not showing

    I am developing on a Windows 7 box and publishing a VS2010 web application to a Windows 2008 server.
    On the server I have installed CRforVS_redist_install_64bit_13_0
    Reports are stored in a folder on that server.
    When I run the application on my local machine the report displays okay via the Crystal Reports Viewer on a .aspx page.
    When I run the application on the server, if I view the source of the page that contains the Crystal Report Viewer - it seems to have fetched the report okay. But it is not showing on the screen. I was thinking this might be because it can't find the 'style.css' file but on both the development machine and server all the various folders and files in and under crystalreportviews13 are present in aspnet_client/system_web/4_0_30319/
    When I view the source of the pages that display the report - they seem to be identical both when viewed on my development box and when accessing the app directily on the server. But, on the .aspx page displayed by the server, the page is blank in the browser. Yet, as I say, when you view source all the data is there.
    What am I doing wrong? Thanks for any help.
    Edit: In both cases if you View Source the page is showing this:
    <link rel="stylesheet" type="text/css" href="../aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/images/style.css" />
    On my development box this makes sense. The web site in question is below 'Default Web Site' - i.e. it is at the same level in the folder hierearchy as the aspnet_client folder.
    But on the server, the site is a subweb below a web site that is level with Default Web Site. So I figure the files are not being found. How can you tell the Crystal Reports Viewer that the files it wants (like style.css) are not where it thinks they are going to be?
    So the app is looking for a file at the same level.
    But on the server there
    Edited by: Steve Rowson on Jun 1, 2011 5:31 PM

    Post to the SDK forum

  • Where is the Crystal Reports Viewer

    I will try to make this short. Had a very successful .net system with crystal reports XI on a windows 2003 server which was developed on a licensed copy of visual studio 2005. The client that was responsible for paying for the server didn't and the server was wiped clean. So now I do not have a licensed copy of visual studio (yet) and the new server is windows 2008 r2. I have everything working mostly. The reports are coming up, but not in crystal reports viewer. They look like a regular web page. I also cannot test the crystal reports because I do not have a licensed version of visual studio anymore and the express version of VS 2010 does not have crystal. Is there a way to got the viewer to work on the server without having to compile/build through VS2010? I need the viewer because some of the reports are on 11x17 paper and they need the print capabilities that the viewer provides. Thank you for your help!!  Nancy Smith

    Sorry Nancy. I do not have any good news for you.
    Re; Is there a way to got the viewer to work on the server without having to compile/build through VS2010?
    - No there is not
    For vs2010, you will need CRVS2010 which you can download from [here|http://www.sdn.sap.com/irj/sdn/crystalreports-dotnet]. Unfortunately, it is not possible to integrate CRVS2010 into the express version of VS 2010...
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Cannot Send Email from Crystal Reports Viewer; MAPI:Overflow

    I am trying to send a report via email with crystal reports, but i get the following error message:
    "The following unexpected error occured while trying to send the report to MAPI: Overflow."
    I am using Outlook 2010, Win 7 x64 bit.
    Does anyone have any ideas or thoughts?

    Yes, it is a 3rd party app that opens Crystal Reports Viewer.  Attached are the screen shots I get when try to send the report as an email.
    -Dan

  • How to set printersettings for the crystal report viewer in SAP BI dynamically

    Hello
    I have set the URL method for my crystal report and with parameter passing as shown below, it was displaying the crystal report viewer by connecting to the SAP BI 4.0 server with this method.
    http://cr:port/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?sDocName=CRLabelParam&sType=rpt&lsSnPrinted=0&lsSsTestProjectNr=1
    This URL will be called from Web application by different users, i would like to set the printer settings differently for different users for this crystal report viewer how shall i need to set the printer options?
    shall i need to set the printer settings programatically for each user. Please advise me how do i need to proceed.
    Thanks & Regards,
    Rajeswari.

    There are no BI / CR APIs that would do this for you. The way I see it, you'll have to have your own print button and populate it with the correct printer information for each user as they request the report. Of course, alternatively, use the viewer printer button and get the users to choose the correct printer.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Crystal Report Viewer Collapse Unneeded Lines

    I have a CR open sales order report grouped by sales order number. Crystal report viewer outlines Sales Order #, customer name and doc total in the master line. Underneath that, it shows multi line items contain in that SO.
    I am wondering, is there a way I can collapse the multi line items and only shows the master line item? We need this sometimes to present to management just to show the big picture.
    Is it we can add a drill-down event to the crystal report viewer control? Not sure how to accomplish that. Any help will be appreciated.
    Thanks.

    Hi, 
    If the detail information is in the Detail section, you can set the Detail Section to Hide.  This will only show the Sales Order information and have the ability to drill down to the Details when you need them. 
    Good luck,
    Brian

Maybe you are looking for