Crystal Report Basic for VS 2008 Memory Leak

Hi,
I am having a problem with CR Basic for VS 2008.  I can display a report, which I have linked to an DataSet in C#, but when I close the window, I seem to have a memory leak, as verified by process explorer.
I am doing the following when the report window is closing:
myReportViewer.ReportSource = null;
myReportViewer.Dispose();
myReportObject.Close();
myReportObject.Dispose();
GC.Collect();
Any ideas?  I have a significant report that is generated and the memory leak is quite significant.
Thanks,
Dave

The memory management you are seeing is an artifact of how the framework manages memory allocations of managed dlls. These dlls are left in memory as it is expect that they may be used later on in your app and reloading these dlls would be a resource intensive process. It is difficult, if not impossible to unload managed dlls and there may not be a good solution.  However I suspect that once the managed dlls are loaded, you will see the memory moving in the 38,860 to 40,812 range. This memory will not be freed by the framework until the application is terminated.                                                                               
Couple of ideas:                                                                               
1) Trying to find resources on the possibility of unloading managed dlls. Apparently there is a way, but it is cumbersome. Couple of years ago, one of my coworkers spent some time on the issue and eventually gave upu2026 Looking around a bit, I have found the following links that may be of some use to you:                                                                               
http://blogs.msdn.com/jasonz/archive/2004/05/31/145105.aspx                                                                         
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/a2682b53-12ad-4719-b05c-df1476cb39c9                             
http://msdn.microsoft.com/en-us/library/system.appdomain.aspx ;                                                                      
http://www.discussweb.com/c-programming/2391-how-unload-both-managed-unmanaged-dll.html ;                                                                               
2) Try to see how the latest version of Crystal Reports behaves in your environment. Initially, I would suggest a test on a clean system with an eval version of Crystal Reports 2008. In CR 2008 we manage the memory via the crheapalloc.dll. So the behavior may be different. You can even try to see how CR 2008 behaves without the dll by simply renaming the dll.                                                                               
An eval download of CR 2008 is here:                                                                               
http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx                                                                               
Ludek

Similar Messages

  • 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

  • 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?

  • 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.

  • Registration code not sent for Crystal Reports Basic for VS2008

    I need to know how to receive a CR registration code for VS2008.
    In VS2008 when I open a Crystal Report, I'm asked for a registration code.  So I registered at the SAP website for the CR Basic for VS2008 license, but all I received was an email below.  So where is my registration code for this? Where can I get one so I can stop the nag screen.
    Email received below:
    Thank you for registering SAP Crystal Reports, version for Visual Studio .NET 2008.
    As a registered user of SAP Crystal Reports, version for Visual Studio .NET, you'll be the first to receive notifications of product news and updates, beta programs, and special events.
    Make the SAP Crystal solutions support site your primary destination for technical support. Search the knowledge base, read and post to the forums, browse articles, and download service packs.
    Tap into the full power of the SAP Crystal Reports product line. Visit our website, to learn more about optimizing your business, download trial software, and explore upgrade paths that can help you support larger deployments and diverse user needs.
    Thank you for choosing SAP Crystal Reports, version for Visual Studio .NET.
    Sincerely,
    SAP.com Customer Service

    This is not a technical support issue as such. Please call 866-681-3435. They should be able to help you out.
    - Ludek

  • 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

  • Consultant "Registration code not sent for Crystal Reports Basic for VS2003

    I need to know how to receive a CR registration code for VS2003.
    In VS2003 when I open a Crystal Report, Iu2019m asked for a registration code. So I registered at the SAP website for the CR Basic for VS2003 license, but all I received was an email below. So where is my registration code for this? Where can I get one so I can stop the nag screen.

    Hello,
    Unless you or someone else edited your original posting there's no "email below" in your post. If the email has a keycode in it you don't want to post it here. You don't want to share your keycode with everyone.
    Do you see a 19 or 23 digit alpha-numeric keycode in the email you received? If so, that's your keycode. If not, let us know and we'll see if we can find out who you can contact to receive your keycode.
    Sincerely,
    Dan Kelleher

  • Error in Crystal Reports Runtime for VS 2008

    Hi, everyone...
    I have an app that have some reports.
    On my DevMachine, works fine. But when I deploy in ServerMachine (Windows Server 2003 R2 64), the app fails when I try to access a page that have a Crystal Report component.
    Retrieving the COM class factory for component with CLSID {5FF57840-5172-4482-9CA3-541C7878AE0F} failed due to the following error: 800736b1.
    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.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {5FF57840-5172-4482-9CA3-541C7878AE0F} failed due to the following error: 800736b1.
    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:
    [COMException (0x800736b1): Retrieving the COM class factory for component with CLSID {5FF57840-5172-4482-9CA3-541C7878AE0F} failed due to the following error: 800736b1.]
       CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +207
    [TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.]
       CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0
       test.Page_Load(Object sender, EventArgs e) +999
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    I tried so many things, such as verify permissions, change registry and other stuff, without success.
    I have installed on my server machine, the correctly (I think) version of Crystal Runtime
    Please help me!
    Thanks..

    Yes..
    The app pool is running as 32bit... and the OS is 64bit..
    Actually, there is something that can help..
    Before this error appear (800736b1),
    other error (800002ad UNKNOWN.RPT) was appearing...
    After that I filled the property "TempDir" in the registry with a directory that had enough permissions,
    the (800736b1) began to show.
    Maybe you have the answer for this error (unknown.rpt)...
    I already read the document (UNKNOWN Crystal Reports for .NET Troubleshooting the Background Processing Error Message),
    but nothing in this document worked for me.
    Edited by: lukinha on Jun 20, 2011 6:29 PM

  • Cannot download PrintControl.cab for Crystal Report Basic (VS2008)

    Our legacy ASP.NET application uses Crystal Report Basic (from Visual Studio 2008), and it can't download PrintControl.cab from address : http://resources.businessobjects.com/support/downloads/microsoft/vs_2008/printcontrol.cab
    Is there any new address to download PrintControl.cab ?
    I also experienced this problem last year (PrintControl for Crystal Report for Visual Studio 2008), but the new address of PrintControl.cab is not working now.
    Please help.

    Hi Paulus,
    Yes they killed that server so we are working on finding a new URL to link to....
    Don

  • How to add Crystal Report Basic 2008 in SAP B1 2005 B

    Hi All Experts,
    I have installed Crystal Report Basic 2008 in SAP B1 2005 B PL 25.
    But I dont know how to add this in addon.
    Can any body guide me to do plz.
    With Warm Regards,
    Chintesh Soni

    Chintesh Soni 
    Go to administration >add-on mabager and make sure crystal report is started
    now select administration -> Crystal Report Administration->Account Setup ->enter password for ur database and click-> update->create Ext Tables
    now select Manage Crystal Report->new report ->Browse to add .rpt file, give a name description select module and you can set the access as public or any specific group. select public for first time and click update
    Now click on Preview and Print to view the report
    Thanks
    Krish

  • Is crystal reports correct for me / my needs?

    i'm wondering if crystal reports is correct for my needs.  i don't mind investing the time / money to figure this out, but i really can't waste any time so i thought i'd ask the question first
    is crystal reports correct for my needs?
    some detail of my needs:
    1.  the report would be similar to an IKEA catalog: lots of pictures, different layouts (so different reports merged into one). reports need to "look bitchin'". needs to be "printer ready" in regards to size, crop lines, page numbers, etc.  my main concern here is basically "how limiting is crystal reports in data placement on the page"?
    2.  the data would come from a relatively large db (MS SQL, Oracle, mySQL, and maybe others).  size: about 40 million record main table, with supporting tables (i.e., relational). the db is not encrypted and is accessible if you have the main password.
    3.  i would like to send the reports to something like PDF, but also to excel and text file.
    4.  i would like to offer the reports to my clients as part of my own software package, so hopefully this consists of an .exe file only (no updates required, etc).
    i would prefer to talk to a live person about this, or ideally see a quick demo of what is possible with crystal reports.  is this possible?

    Hello,
    Pictures can be a problem, they take up a lot of report space. I assume your pictures are in the database? Large reports get very large quickly with pictures ( ole object ).
    What you could do is download the trial version of CR 2008 and the sample reports:
    Go to this link: http://www.sdn.sap.com/irj/boc and download the trial version of CR XI R2 and use your XI keycode, then apply the patches which you can get to by clicking on the BusinessObjects tab above, then Downloads.
    Direct link to the Trial version: http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    I also suggest you call Sales, they can send you links for demo's etc.
    https://smpdl.sap-ag.de/~sapidp/012002523100005852352008E/cr_xi_xtreme_rep_smpl_en.zip
    https://smpdl.sap-ag.de/~sapidp/012002523100006010272008E/feature_smpl.zip
    This may be of help also:
    https://smpdl.sap-ag.de/~sapidp/012002523100006010012008E/demo_smpl.zip
    Thank you
    Don

  • Reuse Crystal report Viewer For different reports - unload cache

    So I am migrating from crystal reports basic to crystal reports 2008. I have hit a stumbling block. Rather than have a new page and report viewer for each report I decided it would be easier to have one report viewer and send to it in session variables the report I wish to run and appropriate parameters. This seemed to work fine in CR basic.
    Now I have upgraded the viewer works fine for the first report I run however it then caches this report and doesn't seem to clear it down, if the new report has different parameters I will get a parameter error. If I run a report requiring the same parameters I will get the original report not an updated one.
    I believe I need to leave the CrystalReportSource cache on in order to page the report (correct me if I am wrong)
    I have taken a few snippets of code, is this possibly running too late in page life cycle have I missed something or is there a way to force a cache clear:
    protected override void OnLoad(EventArgs e) {
    //setup report in viewer with correct db logon
                    CrystalRepSource.Report.FileName = report;
                    SetupLogonInfo(CrystalRepSource);
                    //add parameters
                    AddParam(paramFields, pfItem1, dcItem1, "@year", year);
                    AddParam(paramFields, pfItem2, dcItem2, "@school", school);
                    AddParam(paramFields, pfItem3, dcItem3, "@division", division);
                    AddParam(paramFields, pfItem4, dcItem4, "@progArea", progArea);
                    AddParam(paramFields, pfItem5, dcItem5, "@type", SessionHandler.record_type);
                    AddParam(paramFields, pfItem6, dcItem6, "@filterText", "School = \'" + school +
                                                            "\' Division = \'" + division
                                                            + "\' Programme Area = \'" + progArea
                                                            + "\' Record Type = \'" + SessionHandler.record_type_text + "\'");
    CrystalViewer.ParameterFieldInfo = paramFields;
    private void SetupLogonInfo(CrystalReportSource CrystalRepSource)
            TableLogOnInfo logOnInfo = new TableLogOnInfo();
            logOnInfo = CrystalRepSource.ReportDocument.Database.Tables[0].LogOnInfo;
            ConnectionInfo connectionInfo = new ConnectionInfo();
            connectionInfo = logOnInfo.ConnectionInfo;
            connectionInfo.DatabaseName = Application["db"].ToString();
            connectionInfo.ServerName = Application["server"].ToString();
            connectionInfo.Password = Application["pass"].ToString();
            connectionInfo.UserID = Application["user"].ToString();
            CrystalRepSource.ReportDocument.Database.Tables[0].ApplyLogOnInfo(logOnInfo);
        private void AddParam(ParameterFields paramFields, ParameterField pfItem, ParameterDiscreteValue dcItem, string fieldName, string value)
            pfItem.ParameterFieldName = fieldName;
            dcItem.Value = value;
            pfItem.CurrentValues.Add(dcItem);
            paramFields.Add(pfItem);

    ok so I have tried changing the code to:
    CrystalRepSource.ReportDocument.SetParameterValue("@year", year);
                    CrystalRepSource.ReportDocument.SetParameterValue("@school", school);
                    CrystalRepSource.ReportDocument.SetParameterValue("@division", division);
                    CrystalRepSource.ReportDocument.SetParameterValue("@progArea", progArea);
                    CrystalRepSource.ReportDocument.SetParameterValue("@type", SessionHandler.record_type);
                    CrystalRepSource.ReportDocument.SetParameterValue("@filterText", "School = \'" + school +
                                                            "\' Division = \'" + division
                                                            + "\' Programme Area = \'" + progArea
                                                            + "\' Record Type = \'" + SessionHandler.record_type_text + "\'");
    private void Page_Unload(object sender, EventArgs e)
            try
                    CrystalRepSource.Report.DataSources.Clear();
                    CrystalRepSource.Report.Parameters.Clear();
                    //CrystalRepSource.ReportDocument.Close();
                    //CrystalRepSource.ReportDocument.Dispose();
                    CrystalRepSource.Dispose();
                    CrystalViewer.Dispose();
                    GC.Collect();
            catch { }
    I experimented with various bits in the page unload as you can see I have commented a bit out at present as it was throwing an exception. The SetParametersValue while handy (will clean the code up a bit) didn't make any difference I am still getting the same issue.

  • 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

  • Dynamic Crystal Report with Windows Server 2008

    I am creating a report through code with Crystal report on Windows Server 2008 R2. When I am executing the following command:
    CRAXDRT.Report.Database.AddADOCommand
    This is generating an error which is given below:
    Error description: Logon failed
    Details: [Database Vendor Code: -205]
    But its working fine with Windows Server 2003.
    Private Sub AddRptDatabase(a_CRReport As CRAXDRT.Report, a_sStartDT As String, _
                               a_sEndDT As String, a_sDept As String, a_sStatus As String)
        Dim cnnRpt As ADODB.Connection
        Dim cmRpt As ADODB.Command
        Dim sSQL As String
        Dim sWhere As String
        Dim sTemp As String
        Dim sTemp1 As String
    sSQL = sSQL & sWhere & " Order by AdminData.RONumber"
      Set cnnRpt = New ADODB.Connection
        cnnRpt.open g_objBA.LocalConnectionString
    Set cmRpt = New ADODB.Command
        cmRpt.ActiveConnection = cnnRpt
        cmRpt.CommandType = adCmdText
        cmRpt.CommandText = sSQL
        'Create data set
        a_CRReport.Database.AddADOCommand cnnRpt, cmRpt
      Exit Sub
    Please suggest some solution.

    Moved to Legacy SDK forum.
    CR XI R2 Service Pack 6 and Fix Pack 6.4 should work on Windows 2008. CR 2008 SP 2 and above also. Older version, no support for it.
    CR is 32 bit, make sure the 32 bit client is installed and being used.
    Thank you
    Don

Maybe you are looking for