Crystal Reports, version for Visual Studio 2010 Problem

Dear all,
I encounter a problem after installed the crystal report version for Visual Studio 2010. Once I call                              
                       ReportDocument.PrintToPrinter(1,False, 0, 0)
The error message prompt:
Report is unavailable(Index was out of range. Must be non-negative and less than the size of the collection. Parameter name:index)
If I try
                         ReportDocument.PrintToPrinter(1,False, 1, 1)
It can print the 1st page of the report.
I also try to create a simple report. It works.
After installed this version, my reports also encounter the same problem in Visual Studio 2008.
My report has sub-reports. My PC is Windows XP.
Anybody has idea on this issue!?

Now you can set the various printer options using the PrintOutputController. I'm using a UI box to select the printer but your developer should be able to figure this out. If not you can include him in the e-mail, it would be fine to go direct. Of course you will stay in the thread:
     private void btnSetPrinter_Click(object sender, System.EventArgs e)
          System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();
            CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions rasPROpts = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptionsClass();
          // Use the next line if you need to, you'll ahve to test. Depends on how the reports were saved.
            //CrystalDecisions.CrystalReports.Engine.PrintOptions.DissociatePageSizeAndPrinterPaperSize = true;
            //CrystalDecisions.ReportAppServer.ReportDefModel.ISCRPrintOptions.DissociatePageSizeAndPrinterPaperSize = true;
            //pDoc.DefaultPageSettings = pgSettings;
            PrintDialog dlg = new PrintDialog();
            dlg.Document = pDoc;
            if (dlg.ShowDialog() == DialogResult.Cancel)
                MessageBox.Show("Cancel Button clicked", "RAS", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            else
                CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions MYPRTOpts = new PrintOptionsClass();
                if (rdoCurrent.Checked)
                    pDoc.PrinterSettings.PrinterName = cboCurrentPrinters.Text;
               // the next 3 lines may not be necessary.
                    MYPRTOpts.PrinterName = cboCurrentPrinters.Text;
                    MYPRTOpts.PaperSize = (CrPaperSizeEnum)
                        pDoc.PrinterSettings.PaperSizes[cboCurrentPaperSizes.SelectedIndex].Kind;
                    MYPRTOpts.PaperSource = (CrPaperSourceEnum)
                        pDoc.PrinterSettings.PaperSources[cboCurrentPaperTrays.SelectedIndex].Kind;
                    MYPRTOpts.PaperOrientation = CrPaperOrientationEnum.crPaperOrientationLandscape;
                    //MYPRTOpts.PageMargins.Bottom = .1;
                    //MYPRTOpts.PageMargins.Top = .1;
                    //MYPRTOpts.PageMargins.Left = .1;
                    //MYPRTOpts.PageMargins.Right = .1;
                else
                    pDoc.PrinterSettings.PrinterName = cboDefaultPrinters.Text;
                    MYPRTOpts.PrinterName = cboDefaultPrinters.Text;
                    MYPRTOpts.PaperSize = (CrPaperSizeEnum)
                        pDoc.PrinterSettings.PaperSizes[cboDefaultPaperSizes.SelectedIndex].Kind;
                    MYPRTOpts.PaperSource = (CrPaperSourceEnum)
                        pDoc.PrinterSettings.PaperSources[cboDefaultPaperTrays.SelectedIndex].Kind;
                rptClientDoc.PrintOutputController.ModifyPrintOptions(MYPRTOpts);
                //MessageBox.Show("Printer set.", "RAS", MessageBoxButtons.OK, MessageBoxIcon.Information);
                rptClientDoc.PrintOutputController.PrintReport(rasPROpts);
                //MessageBox.Show("Printing report.", "RAS", MessageBoxButtons.OK, MessageBoxIcon.Information);
Thank you
Don

Similar Messages

  • How do I resolve error 1310 while installing crystal report version for visual studio 2010.

    How do I resolve error 1310. I try to install crystal version for visual studio 2010, but I got this error message. Error 1310. Error writing to file. mcf80.dll.verify that you have access to that directory. My pc is window 7 (32 bit). Please I need help
    urgently to work with this program in my system successfully. Please help.

    Hello Dorohidea,
    Do you mean that when you install crystal report in virtual studio 2010, you receive the error message about error 1310?
    Please take a look at the following KB.
    Support for Crystal Reports for Visual Studio
    https://support.microsoft.com/kb/317789/en-us
    In Visual Studio 2010, to create a Crystal Reports project or Web site or to import existing projects or Web sites that were created by using older versions of Visual Studio or Crystal Reports, you must first install a version of Crystal Reports that is
    compatible with Visual Studio 2010.
    For more information about how to use Crystal Reports in Visual Studio 2010, visit the following SAP Crystal Reports website:
    http://www.sap.com/crystalreports/vs2010
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • Crystal Reports Version for Visual Studio 2010 Fails to Install

    Hi -
    I am trying to install the CR redistribution package for .Net 4.  When I run CRRuntime_32bit_13_0.msi I get an Error 1904 when it tries to register the commonobjmodel.dll.  If I manually register the dll using regsvr32 I get the following message:
    "The module 'commonobjmodel.dll' failed to load.  Make sure the binary is stored
    at the specified path or debug it to check for problems with the binary or dependent .DLL files."
    The dll does exist and is in the correct directory.  Is there another installer I should be using?
    Thanks.
    - Andrew

    Entering "1904 crystal" into the search box at the top right corner of this page, gives the following KB:
    [1534393  - "Error 1904. Module C:Program FilesSAP BusinessObjects..dtsagent.dll failed to register ..." when installing Crystal Reports for Visual Studio 2010 MSI runtime|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533333334333333393333%7D.do].
    See if that helps. If not, there are other KBs that will come up for CRVS2010...
    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]

  • Deploying crystal reports basic for visual studio 2008 for VB6

    My application has a module in .net and other in vb6.
    I have a problem on deploying crystal reports in client machines, for module in vb6.
    The vb6 application uses crystal viewer control obtained from crystal reports basic for visual studio 2008.
    What type of deployment should I use?
    Currently, I have a setup with prerequisite "crystal reports basic for visual studio 2008".
    But I think it misses the dlls crviewer.dll and craxddrt.dll, so I put them in setup and with the register COM options, and it works, but it's not working very well.
    When I open a form that uses crystal viewer, the setup (I have created) is lunched and says that have to restart machine. Then it opens the report, but the next time I use the application it does the same thing.

    Ok, thank's for the posts, they help so much.
    So I'm going to discard vb6 and move to .NET, but... there is a problem:
    Many reports have parameters that are asked before showing the report.
    The Crystal Viewer that is used in VB6 version isn't the same used in .NET.
    The viewer of VB6 asks the parameters in the way we want, however the .NET crystal viewer ask's the parameters in way that we don't like, because we have to do next -> next -> next...
    The links above show the diferences:
    VB6 ->  http://picasaweb.google.com.br/paulo.gonc/CrystalReports#5249249283702618322
    .NET -> http://picasaweb.google.com.br/paulo.gonc/CrystalReports#5249246459437178242
    There is a way to configure Crystal Viewer, so that parameters asking form will work like the vb6 away?

  • An error in Crystal Reports Basic for Visual Studio 2008

    Greetings from Peru,
    We have a problem with one of the Crystal Reports products weu2019d like you to help us with. We work with Crystal Reports Basic for Visual Studio 2008.
    The error weu2019ve detected is in one of our systemu2019s reports; this report shows data inside frames. When the content to show is larger (in height) than the space left in the page, the container object of the report makes a line break keeping the title and the frame empty at the end of that page, but  the information is shown in the next page. What we need is that not empty frame is displayed.
    Weu2019ve tried to solve this problem by adjusting the report in different ways (by programming coding), but unfortunately this problem is related to how much data is displayed, because if this data fit in the space left in the page, the line break would not occurs and the data is shown at the end of the same page.
    We hope you can help us with this issue.  I look forward to your comments.

    All I can think of is trying CR 2008 (v.12.x). You can obtain an eval copy from here:
    http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    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]

  • Deploying Crystal Reports Basic for Visual Studio 2008

    I have Windows Forms project using Crystal Reports Basic for Visual Studio 2008
    I can't find the merge module to include in the setup project like I used to do in Visual Studio .NET 2003
    Everyone seems to say that they don't exist for that version of Crystal Reports
    After searching for a long time I found something about a package located at
    C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5\CRRedist2008_x86.msi
    Tried it and it seems to work.
    Do I have to install this to the client computer ? Is that the only way having a "Crystal Reports Basic Runtime for Visual Studio 2008" in the program list of the client computer ?

    Hi Victor,
    We can download all the runtimes from the following link:
    [https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm]
    Try to search Business Objects Note regarding this from  [here|https://www.sdn.sap.com/irj/sdn/businessobjects-notes]
    More info regarding deployment can be found from DevLibrary:
    [https://boc.sdn.sap.com/node/8546]
    Regards,
    Shweta

  • Keycode missing in Crystal Reports Basic for Visual Studio 2008

    I just upgraded from Visual Studio 2005 Professional to Visual Studio 2008 Professional (with SP1 installed also).  Crystal Reports Basic for Visual Studio 2008 is listed as installed under the VS Help dialog, but no key code is shown.  And when I attempt to open a Crystal Report, I get a dialog saying 'Please wait while Windows configures Crystal Reports Basic', which eventually terminates with an 'Invalid Keycode' message.
    I've tried repairing the Visual Studio install, and even uninstalling and reinstalling the whole thing.  To no avail.
    Other facts: My VS 2005 version still works with its version of Crystal Reports.  I am running Vista Professional.  Looking in the registry, under HKEY_LOCAL_MACHINE | SOFTWARE | Crystal Decisions | Crystal Reports | VSNET | Keycodes | CR9 NET, I see a Type REG_SZ with a data value in the form xxxxxx-xxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxx [6 chars-7 chars-26 chars].
    Help! How do I get Crystal Reports Basic for Visual Studio 2008 to work?

    Hi Elaine,
    Thanks for your response.  I do have versions of Visual Studio 2003 and Visual Studio 2005 on my machine, and the earlier versions of Crystal Reports worked with these versions.  In addition to the registry key I cited earlier (which I now understand is a VS 2003 version), there is an entry under HKEY_LOCAL_MACHINE | SOFTWARE | Crystal Decisions | Crystal Reports | 10.2 | Crystal Reports | KeyCodes | CR Ent.  I see that you are correct, and this corresponds to my VS 2005 installation (which still works).  However, there is NO entry under HKEY_LOCAL_MACHINE | SOFTWARE | Crystal Decisions | Crystal Reports | 10.5 (the CR  Basic for Visual Studio 2008 path you indicated).  There is an entry under HKEY_LOCAL_MACHINE | SOFTWARE | Business Objects | 10.5 | Crystal Reports, but it has only keys for ChartSupportPath, CommonFiles, DisablecheckForUpdates, and Path.
    The Windows\assembly folder has 25 files that are CrystalDecisions.xxx, version 10.5.3700.0.  This is consistent with my seeing 'Crystal Reports' listed as installed in VS 2008 Help.  But no KeyCode!
    I tried a complete uninstall and reinstall of VS 2008, without luck.  I can't clean my system of earlier verions of Crystal Reports, because I am still supporting a body of work that I did under VS 2005, and I can't convert all this stuff to 2008 -- at least until I have a fully working VS 2008 suite.  After this experience, I fear that if I were to uninstall an earlier version, i might never get it back!
    I've spend quite a few hours on this with no luck, so any help would be enormously appreciated.

  • Where Can I Download Crystal Report ClickOnce For Visual Studio 2012?

    I have finished my project wich i use visual studio 2012 and crystel report.
    i want to deploy my project and i need a redistributable crystal report for that version of visual studio.
    thanks in advance.
    Nihad.

    Hi Nihad.
    You can download it from
    https://global12.sap.com/campaign/ne/free_trial/crystal_reports_visual_studio/index.epx?url_id=text-
    na-sapcom-crvs-trial-landing&kNtBzmUK9zU=1
    Hope it helps.
    Regards

  • Crystal Reports Basic for Visual Studio 2008 - Export to PDF in arabic font space issue

    When exporting the crystal report having Arabic contents to PDF , space characters are replaced with " . Please find the attachment . Is there any way to sort out this issue??

    Try searching on "RTL"
    Here's a few posts that may help
    http://scn.sap.com/thread/909635
    http://scn.sap.com/thread/3444105
    And this KBA - 1322752 - Does Crystal Reports support Arabic characters?
    And this one is the ultimate answer:
    1926379 - SAP BusinessObjects BI Right-to-Left (RTL) Support
    CR for VS 2008 is CR Basic, it may not be able to. Upgrade to CR for VS 2010+.
    Don

  • Crystal Reports 10 with Visual Studio 2010

    We have Crystal Reports 10, which I have installed. The viewer provided with the install runs fine. We have an application that has an embedded viewer.
    Then I'm just trying to get the simple C# sample code to run in VS2010, which is just a form with the viewer component reading an existing .rpt file. But I get a "Load report failed" error with no other details. Seems like it really should be simple. Any idea what I might be doing wrong?
    I'm running Win7 64, but compiling in x86 mode.

    Well, you have two options;
    1) Go with the version of CR that bundles with .NET2005 (CR 10.2)
    2) Go with CRVS2010 and VS2010
    CR10.0 is not supported in either .NET2005 or .NET2010. See [this|https://wiki.sdn.sap.com/wiki/display/BOBJ/WhichCrystalReportsassemblyversionsaresupportedinwhichversionsofVisualStudio+.NET] wiki for more info.
    There are no work-arounds, no nothing that I can help with or recommend.
    - Ludek

  • Help ! Crystal Reports 2008 for Visual Studio Hangs

    I am using CR 2008 in VS 2008. When I try to set a data source in a crystal reports viewer the first time it hangs. This only occurs on the very first viewer that gets set. Once the first one works, I never have a problem again.
    This has been a problem through a number of CR releases. It is not a new issue.
    Thanks.

    And like all other releases the delay is due to the first time your app loads CR runtime is takes time do so, all programs do this. CR simply doesn't load in your memory space until it's called.
    Load a dummy report on the Main Form when your app is loading then close the dummy report, it will add additional time to load your main app but it appears then CR loads the reports quickly.
    No way around this. Also, make sure your reports have the Verify Database on first load or any of the Verify options, CR will try to connect to the DB and verify which can also take time.
    Don

  • CRVS2010 Beta - How do you hide the Group Tree for Visual Studio 2010

    Would anyone know how to hide the group tree in the Crystal Reports viewer for Visual Studio 2010.  I have tried
    DisplayGroupTree="False" and found the property doesn't exist in the new version for VS 2010.  I have search in the designer options and found nothing.  Note this report is for ASP.net.
    Thanks
    Dave.
    Subject modified as per the sticky post at the top of this forum; [Crystal Reports for Visual Studio 2010 Beta - read before posting|Crystal Reports for Visual Studio 2010 Beta - read before posting;
    Edited by: Ludek Uher on Sep 15, 2010 8:55 AM

    A simple search using the search box in the top right corner of this web page would have come up with the following KBase as one of the 1st - if not the 1st hit (for once, we beat Google    ).
    [1183704 - How to display or hide the Group Tree in CrystalReportViewer control through code in Crystal Reports 2008|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133383333333733303334%7D.do]
    - Ludek

  • Javascript - Object required error for visual studio 2010

    Hi - I have downloaded the crystal report RTM for visual studio 2010.
    My App server is windows 2008.
    We are using crystal reports as part of CRM application
    I am getting  javascript error 'Object Required'  at the following line:
    The debugger after the error message refers to this:
    bobj.crv.stateManager.setComponentState('ctl00_ContentPlaceHolder2_CrystalReportViewer1__UI',eval('('document.getElementById('__CRYSTALSTATEctl00$ContentPlaceHolder2$CrystalReportViewer1').value')'));
    The website has all the required aspnet_client files and have made sure the application is able to load them.
    When tried with a new sample solution the reports work.
    Please help. I need to make the crystal reports work with the CRM solution...

    I am assuming this is happening after you have deployed your app and that the app works as expected on your development computer(?). Please confirm...
    I need you to tell me the following:
    1) how was the app compiled; any cpu, 32 bit, 64 bit?
    2) how was the CR runtime deployed (what MSI / MSM did you use?)?
    3) if this app is installed under custom app pool see the following:
    Deploy the CrystalReportViewers13 virtual directory as a sub-directory of your application.
    Copy the Crystalreportviewers13 folder to be a sub-folder at the root of your application. You can configure where your application looks for this folder by using the following Help file [SAP Crystal Reports .NET SDK Developer Guide
    |http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_dg_2010_en.zip] and search the document for ("web.config";). In the section "Configuring your web.config file" follow the instructions specified for setting the resourceURI attribute. This way you can control updates to the viewers when deploying your application.
    Note the resourceURI value is the name of the viewers directory and should be preceded with a Tilde
    ie value="~/crystalreportviewers13"
    Also, have a look at the following two articles. Both are pre CRVS2010, however the ideas re. deploying to a custom app pool still apply. All that changes is the folder name.
    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]

  • Disabling copy feature in Crystal Reports for Visual Studio 2010 SP2

    Hi ,
    When I tried Crystal Reports for Visual Studio 2010 SP2 , I saw a new feature which allows user to copy content of the report after selecting it. I am using .net 4.0 winform application. I want to suppress this feature. I want the selection of objects in report to work as earlier version.  I could hide the copy icon in toolbar . But that doesn't change the way selections happens in the report . Please tell me how to suppress the copy feature completely when we use SP2 ?

    Hi Jijo Paul,
    We found a hidden method to disable the copy as it used to be. It is hidden meaning it's not supported so if you run into any problems using it or if it gets removed there is nothing we can do for you but give this a try:
    // this hides the button and disables the CTRL C command
    crystalReportViewer1.ShowCopyButton = false;
    crystalReportViewer1.SelectionMode = CrystalDecisions.Windows.Forms.SelectionMode.None;
    Thanks again
    Don

  • Side by side installation Crystal Reports for Visual Studio 2010 - CRXIR2 ?

    we are integrating Crystal Reports for Visual Studio 2010 into our C++ application.
    We used to work with CRXIR2.
    A customer of ours has upgraded to the VS2010 runtime version for 64-bit,
    and seems to be having random crashes.
    We haven't been able to pinpoint the problem...
    They are running several of our applications simultaniously on terminal servers.
    What we noticed is that they did not uninstall CRXIR2 from there system.
    Is this side-by-side installation supported?
    So XIR2 next to Crystal Reports for Visual Studio 2010  ?
    And even: can you have a Crystal Reports for Visual Studio 2010  64bit next to a 32bit? Probably yes?
    Next to that: is there any limit of concurrent users (applications) that use the .NET component?
    I would think not...
    Bart

    Hi Bart,
    Side by side installation shouldn't be a problem, unless you had Beta version of CRVS2010 installed on the same machine.
    For better results try upgrading to use SP1 of CRVS2010. For CRVS2010 resources, you can go through this
    Crystal Reports for Visual Studio 2010 - Deployment
    I haven't seen any problem with 64bit next to a 32bit til date.
    You can go through this for CR support on x64
    http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/10d5fa88-2013-2c10-c9a5-f11963607d4e
    To answer your last question, go through following:
    Crystal Reports Maximum Report Processing Jobs Limit
    http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/f053713e-3e3d-2c10-2a81-f79259e54023
    Thanks,
    Saurabh

Maybe you are looking for

  • Access Enforcer(error in approving the request)

    Dear all, Fascing the problem while security approver is approving the request. Error in Processing your request, Request no: 1006 in stage : ZSECURITY Thanks & Regards

  • Can no longer backup

    Someone was trying to fix some computer issues I was having (I think they may have deleted some files). Now I can no longer back up, I get an error message that reads: "The operation can't be completed because some items had to be skipped. For each i

  • Photo can't be removed

    When i try to remove photos from my ipod touch in itunes by removing the synced libraries, it tells me that an error has occured and the files can not be found. Does anyone know how to work around this problem or another way to delete photos on the i

  • Problem wrapping LDAP access

    We're running into problems wrapping C functions that access LDAP in Forte. We are using the Netscape Directory SDK for C (Version 4.0) and have written and compiled C code (on Solaris 2.6) into a shared library that calls out to the Netscape LDAP sh

  • I didn't purchase anything with my iTunes account because I forget security question's replies I want your helping.

    I didn't purchase anything with my iTunes account because I forget security question's replies I want your helping.