ReportDocument.Load taking 2-3 mins, VS 2008 Professional + Bundled Crystal

Hi there,
We recently upgraded our desktop app from VS 2003, Crystal 8.5 to VS 2008 and included Crystal.
Our 8.5 crystal reports were upgraded using the VS 2008 Professional Crystal Designer. (bundled)
Now the method ReportDocument.Load is taking 2-3 mins to run. The initial load is always very slow. Most loads after that are fast but sometimes it can take 2-3 mins again.
The reports do not have sub-reports. Printer has been set to none.
Thankyou for any help you can provide.
The code does the following
1 - Opens ReportDocument
2 - Sets parameter and log on info
3 - Sets Viewer control source to the report document

There are a number of post on this forum re. initial slow load. Search for those and see if there is anything that will be of help. However in a nut shell, initial slow load is an expected behavior as there are a number of dlls that need to be loaded and other initialization functions performed by the CR engine. A work-around is to load the CR runtime before you actually need the first report. E.g.; load the runtime at start of the app. You'd do this by loading a report in the background - not letting the user see this. Also, ensure you are using .close and .dispose once you are done using the report object.
Ludek

Similar Messages

  • ReportDocument.Load() taking long time.

    Hello,
    We are using crystal reports 2010. We are using OLEDB for connecting to reports. When the reports are originally developed, they are saved with a 'Developer Server' set in them. In the production environment, at the time of printing a report, we load the report and change the connection information in it programmatically. We are seeing that the ReportDocument.Load method takes about 20 seconds. I recreated the problem in our Dev environment and am seeing about 50 seconds for ReportDocument.Load to finish when that original development server does not exist on the network. I have turned on CRPE logging and have gotten _bkgrnd, _Diagnostics, _functions trace files generated. I am not sure, which one to look at to relate to the long time being taken by ReportDocument.Load. Any help on that would be appreciated.
    Also could you guide us, how to speed up the ReportDocument.Load for us ? I mean, we would be having the developer server set in the reports and we are going to override the connection programmatically. So in that scenario, what is the best way for us to speed up the ReportDocument.Load process so that if the server set on the server is not existing, return back quickly.
    Please advise,
    Thanks,
    Amit

    Hi Amit,
    Apply [Service Pack 1|http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_1.exe] to Crystal Reports for Visual Studio 2010.
    There was an issue with CR4VS2010, the report slooks for the database server against which the report was originally developed and this increases the report load time.
    This issue is addressed in the above SP1.
    Take a look at the Below SAP Notes
    14[1439745 - How to improve performance of a Crystal Report in VB. NET application on load of first report.|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%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433333339333733343335%7D.do]
    And the article : [Improving Crystal Reports Performance in Visual Studio .NET Applications|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8029cc96-6ff3-2b10-47a2-b30ea790ea5b]
    Hope it helps,
    Thanks,
    Bhushan.

  • ReportDocument.Load() is extremely slow.. What does it do?

    We are having issues with reports taking an extremely long time to load at customer sites.  We have isolated the issue down to the Load() method of the ReportDocument.  On some machines this takes a split second and on others, using the same report, same system, and same data it takes 25 - 40 seconds per Load() call.  We are having issues isolating what is causing the disparity between computers.
    What steps does the Load method take to fully load the report?
    For example, does it query the printer?  Does it query for database access?  Does it attempt to verify the database?  Our reports are designed in-house and sent to the customer.  We report the connection and the printer after the load().  So, the printer and database do not exist at the customer's site.
    We are using .NET 4.0, Crystal Reports for Visual Studio 2010 Support Pack 1.  The 32-bit runtime is deployed at our customer sites.  The reports have been loaded from a local C:\ drive and from a network share with no difference in performance.  We have disabled virus scanning, and all other services that may be running.  The issue occurs on Windows 2008 64-bit and Windows 7 32-bit.  We have looked at previous existing threads on the forum, and tried to make all the required changes to the reports - no specific printer, updating the database, no saved data, etc.
    It is a huge performance difference.  Running five reports based off a single piece of data on some systems takes 5 seconds.  On these machines it is taking almost four minutes.  Obviously the customers are very unhappy.
    Thanks for the help on isolating and solving this issue.
    Kyle
    Edited by: kmfisher on Oct 31, 2011 10:46 PM

    Don,
    I was able to trace using crpe32 and got the .glf file created. It is pretty huge. I did the search for Load and found the hit:
    b4dc3a1e-2440-ea84-eb17-a949c19e2e0b|2011 11 07 10:30:22:406|-0600|==| | |Diagnostics| 8828|8896|| |0|0|0|0|CRPE.CRPEBackgroundThread|localhost:8828:8896.1:1|-|-|CRPE.CRPEBackgroundThread|localhost:8828:8896.1:1||||||||||||..\..\src\reportdef\containers\rptdoc.cpp:1487,Load document,Start Time,"10:30:22"
    |58fc346b-38f7-eb64-484b-24e67bdf330a|2011 11 07 10:30:22:406|-0600|==| | |Diagnostics| 8828|8896|| |0|0|0|0|CRPE.CRPEBackgroundThread|localhost:8828:8896.1:1|-|-|CRPE.CRPEBackgroundThread|localhost:8828:8896.1:1||||||||||||..\..\src\reportdef\containers\rptdoc.cpp:1488,Load document,Document name,"C:\Users\A.COM\AppData\Local\Temp\PostTicketJournal {85C9B513-4A4E-487A-A83C-A6B06AF9979E}.rpt"
    |2648a0f8-8150-a3f4-0b6f-1374d9d5a956|2011 11 07 10:30:22:406|-0600|==| | |Diagnostics| 8828|8896|| |0|0|0|0|CRPE.CRPEBackgroundThread|localhost:8828:8896.1:1|-|-|CRPE.CRPEBackgroundThread|localhost:8828:8896.1:1||||||||||||..\..\src\reportdef\containers\rptdoc.cpp:1504,Load document,Access mode will discard saved data,"FALSE"
    I am not able to locate the end of the load document process ? What will be logged to signify the end of the load has occurred ?
    I searched for "End Load" etc..but no hits were found. Is there a way, I can send this glf to you to help us understand what the ReportDocument.Load is doing. I do see that the server "localhost" is being used.
    Please advise,
    Thanks,
    Amit

  • In the ReportDocument.Load method it tries to connect using the using the connection information embedded in the Report File

    Post Author: bhaveshbusa
    CA Forum: Crystal Reports
    In the ReportDocument.Load method it tries to connect using the using the connection information embedded in the Report File. When the application calls ReportDocument.Load(reportFileName). This
    tries to connect to the database using the connection information embedded in
    the "reportFileName". This was only realised on checking the ODBC Trace
    Log. The connection itself is not a problem. The problem is that the embedded
    connection information is related to OLD production system. And failed
    connections had raised some concerns.
    Note: I am using
    SetDataSource to populate the data for the report. So I don't need the
    connection.
    Is there any way I
    can disable this auto-connect?
    Thanks and
    regards,
    Bhavesh

    960738 wrote:
    I need a help in answering one of the issue encountered last week.
    I have created a database link and tried to access the information from a table using the program written in another language. The password provided was incorrect for that user while creating database link. So we expected that,while retrieving the data, Database connection has to be errored out as password provided is incorrrect.
    But unfortunately, user account was locked out. When i checked with DBAs they mentioned that it tries to connect 16 ports with in a min of time.we were shocked as it STOPS another scheduled jobs with that user. and affects production badly.
    As per the program, it has to connect only one time and yesterday we tried to execute the program in DBAs observation and it errored out as expected. Didn't tried for multiple ports.
    Now the question is, WHY the database connection established 16 times last week and caused user account locked. DBAs are unable to answer it. Any EXPERTs opinion on this would greatly appreciated.
    I have verified managing ports in oracle documentation, it was mentioned that if one port is busy it will try to connect to another port in the range of ports mentioned during the installtion. DBAs verified ports related file and it was blank. and they are not agreeing with this reason. Please HELP me in finding the correct REASON for this.
    is it a NETWORK issue or issue with DATABASE SERVER only?
    Thanks
    SSP
    Edited by: 960738 on Sep 22, 2012 9:13 PMDBLINK is 100% oblivious to the fact any port exists.
    DBLINK only contains username, password & TNS Alias.
    can you post actual SQL & results?

  • Slow Initial ReportDocument.Load & Creation Of *.rptConMgrCache file

    Problem Description
    We have a .NET reporting application that utilizes CrystalReports (assembly version 12.0.2000.840) to render about 10 different reports. When loading a particular report template (*.rpt) using ReportDocument.Load, we have noticed that the initial load takes approximately 2-3 minutes. All subsequent loads of the same template take a fraction of a second.
    The strange thing is that this behavior only occurs on particular servers (all servers in our environment are Windows 2003). On the servers with the 2-3 minute initial load, a *.rptConMgrCache file is created during the initial load and deleted when the operation is completed. On the servers that don't have that issue, the initial load is about 10-15 seconds at worst and no *.rptConMgrCache file is created.
    Initial Load in this scenario refers to the first call to the ReportDocument.Load function after IIS has been reset. This delay on the initial load is only encountered on one of the 10 report templates. The others load consistently on all servers without generating the *.rptConMgrCache file.
    Questions
    1. What is the *.rptConMgrCache file that is created in the C:\Windows\Temp directory on the problematic servers? Why would some servers create this file while others do not?
    2. Is there a resolution to this issue? I encountered this forum thread with the same issue, but the solution is for an older version of CrystalReports:
    [Re: Creating Rpt Conmgr Cache File In Temp folder while opening report from app|Re: Creating Rpt Conmgr Cache File In Temp folder while opening report from app]
    Environment Details
    - Windows 2003 Servers
    - .NET 3.5 Application developed with Visual Studio 2008
    - Packaged Crystal Report Assembly Version: 12.0.2000.840
    - Latest GAC Crystal Report Assembly Version (all servers): 12.0.2000.0
    - Kirti
    Edited by: KirtiRK on Oct 12, 2010 5:45 PM

    Ludek,
         From the other posts and articles that I have read, I completely understand that the first load is supposed to take longer because the runtime is being loaded. I should have been more clear in my original post, but this is basically what I see in terms of performance:
    Troublesome Report Document
    Initial Load
    Good Server   ~10s
    Bad Server      2-3minutes**
    2-3 Minutes covers the range of the worst loads we've seen. But you're right that I'm sensationalizing it a bit - most of the delays are right around 1minute.
    Subsequent Loads
    Good Server    <1s
    Bad Server      <1s
    All Other Report Documents
    Initial Load
    Good Server   ~10s
    Bad Server     ~10s
    Subsequent Loads
    Good Server  < 1s
    Bad Server    < 1s
    Differences in Report
    Other reports have subreports and we verified that all of our report properties match exactly. There are definetely some layout differences and I can dig in to see if there is anything odd.
    Differences in Modules
    The modified dates are somewhat different for many of the modules/assemblies, but most of them match up exactly with file size and version. I will dig in here as well to see if I can find any notable differences.
    Environment Factor
    In the end, the same code/document behaves differently on some servers. Given that information, I think that it might end up being an environmental issues - wheter that is with the Crystal Reports installation or some other .NET setting, etc. Other than the delay, the only concrete difference we've seen is the creation of the *.rtpConMgrCache file in the C:\Windows\Temp directory.
    What I'm Looking For
    To guide me in researching and drilling down further, I was hoping to find out more about what the *.rptConMgrCache files are and understand why they are created on initial load on one server and not on another. Unfortunetely, I was not able to find too much information about this on the net/forums.
    - Kirti

  • ReportDocument load very slowly

    Hi everybody.
    I have a problem with CR2008 and .NET 4.0 (I hope this is the right forum for that kind of problem).
    The problem is this: when I use the ReportDocument.Load(filename), the program wait about 20 seconds before to load the report.
    I searched on the internet and saw that other people have the same problem, but I never find a solution.
    I try to check all this situations:
    1) No printer associated to the report
    2) No object that points to a network driver
    3) No "load data" when open the report
    4) No images
    I saw that someone tell about a "certification" problem (.NET that try to contact verysign for check if Crystal certificate is valid).
    The strange thing is that I have this kind of problem only with a customer where the internet is very slow...
    PS: I can't load the report at the beginning of the application. In my case I can't do that, so I need another kind of solution.
    Thank you in advance.

    Make sure you are using SP 3:
    SP 3 msi     
    https://smpdl.sap-ag.de/~sapidp/012002523100007123592010E/cr2008sp3_redist.zip
    SP 3 msm     
    https://smpdl.sap-ag.de/~sapidp/012002523100007123582010E/cr2008sp3_mm.zip
    Don't use framework 4.0 with CR 2008. Either drop down to framework 3.5 or use CRVS2010 with framework 4 (note that CRVS2010 is for VS2010 only).
    Also, see the article [Improving Crystal Reports Performance in Visual Studio .NET Applications|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8029cc96-6ff3-2b10-47a2-b30ea790ea5b]
    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]
    Edited by: Ludek Uher on Mar 1, 2011 1:31 PM

  • Reportdocument.load causes "request timed out"

    Hello.
    We sometimes have problems using the crystal report viewer in a viual studio 2008 based ASP.NET application.
    A report should be generated and sent to the printer directly by printtoprinter. Generally this works quite fine
    but almos once a day it starts to slow down und finally time out.
    There are about 40 Workstations using our application simultaniously.
    I localized the problem is, when "reportdocument.load()" is being called.
    I see the report is generated temporarilly in windows/temp directory. when the problem occurs,
    this temporary generated repoort will not be closed and all further startet reports will hang as well.
    I read, i guess, almost every article about that problem and tried most of the things, that appear usefull to me.
    1. I set the printer in the report to NONE
    2. the SQL Statement is a procedure call, the used fields on the report are no mathematical formulars
    3. nothing is verified in the beginning of loading the report
    We use sybase sql anywhere 11 database.
    Until December 2009 everything went fine in that application. Then we update from sybase 9 to 11 and now this
    problem occurs. But since it is the reportdocument.load() call, i don't believe that an database upgrade can be the problem.
    Maybe someone of you can help us out.
    Greeting Tim

    Hello Tim:
    For now, I'll go on the assumption that you are using CR 10.5 (bundles with .NET 2005) - if you could confirm that please.
    Based on that assumption, I'd like you to download SP 1 from here:
    https://smpdl.sap-ag.de/~sapidp/012002523100009351512008E/crbasic2008sp1.exe
    Next, I'd like you to confirm that you are closing and disposing of the report objects as you get done with them.
    Next, have a look at [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f053713e-3e3d-2c10-2a81-f79259e54023] article re. print job limits.
    Finally, check to see if  there are any Sybase 11 updates, particularly for the client install.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • ReportDocument.Load Exception: Failed to find Report Applicatication Server

    I am using ReportDocument.Load(InfoObject infoObject, EnterpriseSession enterpriseSession) to load from an InfoObjects retrieved using InfoStore.Query. Though the query returns a valid report (the InfoObjects object is populated), I continue to get the following exception:
    Exception Message = "Load report failed."
    InnerException Type = System.Runtime.InteropServices.COMException
    InnerException Message = "Failed to find an available Report Application Server."
    According to [this thread|Failed to find an available Report Application Server;, I need to check CCM to make sure the Report Application Server is running. It does not show up in my CCM, but in CMC it is running and enabled. I also verified that the Guest account is enabled and has permissions to the reports folder and RAS.
    Is there a way to test (with code) that my RAS is running and accessible? The code I am running is located on a different machine than the BOE server.
    My purpose in attempting this is to export a report to disk using ReportDocument.ExportToDisk.
    Thank you for your help,
    -colin-

    This was an issue of mixed code. Colin has opened an incident with SAP Support and the issue will be handled there.

  • Record the CPU Load in a log for Windows 2008 R2

    Use performance monitor and log it to a file.

    Hi,
    I am an Oracle DBA. I need to record the load of the CPU for windows 2008 R2. Load in the sense Total Memory, Available Memory, Cached and Free. All together into a log.
     Kindly suggest me on the same.
    Thank you.
    This topic first appeared in the Spiceworks Community

  • Taking exactly 10 min to open the task list using smartview

    Hi All,
    We are using hyperion smartview 11.1.2.2
    when I connect to hyperion planning task list using smartview it is taking exactly 10 min to open the task but the same is taking only 3 seconds in our Production environment. Can someone help me out.
    I have also followed the below but it did not help me out.
    It might be that APS is timing out, I assume you are running OHS
    if so stop OHS, go to <MIDDLEWARE_HOME>\user_projects\<instance_name>\httpConfig\ohs\config\OHS\ohs_component
    edit mod_wl_ohs.conf
    In there you will see something like
    < LocationMatch ^/aps>
    SetHandler weblogic-handler
    WeblogicCluster <APS_SERVER>:13080
    < /LocationMatch>
    add
    WLIOTimeoutSecs 3600
    so it looks like
    < LocationMatch ^/aps>
    SetHandler weblogic-handler
    WeblogicCluster <APS_SERVER>:13080
    WLIOTimeoutSecs 3600
    < /LocationMatch>
    Save, start OHS and try again.
    Below is our planning0.log
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101017 MACHINE =   CONTEXTID = 0000K2RgbvYCsl95nfp2iZ1I4pUX00000x TIMESTAMP = 1377001701090 
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >
    ####<Aug 20, 2013 8:28:21 AM EDT> <Warning> <HTTP>  <Planning0> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <0000K2RgbvYCsl95nfp2iZ1I4pUX00000x> <1377001701106> <BEA-101138> <ServletContext@30584151[app:PLANNING module:HyperionPlanning path:/HyperionPlanning spec-version:2.5 version:11.1.2.0] One of the getParameter family of methods called after reading from the ServletInputStream. Not merging post parameters.>
    ####<Aug 20, 2013 8:28:21 AM EDT> <Info> <WorkManager> <AMIWSP01> <Planning0> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <0000K2RgbvYCsl95nfp2iZ1I4pUX00000x> <1377001701106> <BEA-002936> <maximum thread constraint WatchManagerEvents is reached>
    ####<Aug 20, 2013 8:28:22 AM EDT> <Alert> <Diagnostics>  <Planning0> <oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl - Incident Dump Executor (created: Tue Aug 20 08:28:21 EDT 2013)> <<WLS Kernel>> <> <> <1377001702028> <BEA-320016> <Creating diagnostic image in C:\Oracle\Middleware\user_projects\domains\AMIHYPRD\servers\Planning0\adr\diag\ofm\amihyprd\planning0\incident\incdir_69426 with a lockout minute period of 1.>
    ####<Aug 20, 2013 8:39:11 AM EDT> <Error> <WebLogicServer> <Planning0> <[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1377002351544> <BEA-000337> <[STUCK] ExecuteThread: '28' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "635" seconds working on the request "Workmanager: default, Version: 0, Scheduled=true, Started=true, Started time: 635907 ms
    POST /HyperionPlanning/SmartView HTTP/1.1
    Accept: */*
    Accept-Language: en-US
    Accept-Encoding: gzip
    ORA_EPM_SVCLIENT_CLIENTIP: 10.101.6.194
    ORA_EPM_SVCLIENT_EXTENSIONS: b78f60ca-e18b-401d-a10f-626c0118daf2;AF52322C-D60B-41f1-A8C8-0C299FBB0AA4
    Content-Encoding: gzip
    User-Agent: HttpApp/1.0
    Content-Length: 212
    Cache-Control: no-cache
    Cookie: JSESSIONID=DtdJSTgFpg67nJ2wvxKncMtlvKFJvZn9Q5Ljj0y4t5nZGkDRbsvN!165491247; ORA_EPMWS_User=admin; ORA_EPMWS_AccessibilityMode=false; ORA_EPMWS_ThemeSelection=BpmTadpole
    Connection: Keep-Alive
    X-Forwarded-For: 10.101.6.194
    Proxy-Client-IP: 10.101.6.194
    X-WebLogic-KeepAliveSecs: 30
    X-WebLogic-Force-JVMID: 165491247
    ]", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
    Thread-203 "[STUCK] ExecuteThread: '28' for queue: 'weblogic.kernel.Default (self-tuning)'" <alive, in native, suspended, priority=1, DAEMON> {
        com.hyperion.planning.olap.HspEssbaseMainAPI.EssGetCalcList(HspEssbaseMainAPI.java:???)
        com.hyperion.planning.olap.HspEssConnection.essGetCalcList(HspEssConnection.java:306)

    In order to diagnose your problem you will need to download and install the below
    Try clicking the tap problematic apps while the trace is running
    Install the WPT (windows Performance Toolkit) 
    http://www.microsoft.com/en-us/download/details.aspx?id=30652
    Help with installation (if needed) is here
    When you have, open an elevated command prompt and type the following 
    WPRUI.exe (which is the windows performance recorder) and check off the boxes for the following:
    First level triage, CPU usage, Disk IO.  
    If your problem is not CPU or HD then check off the relevant box/s as well (for example networking or registry)  Please configure yours as per the below snip
    Click Start
    Let it run for 60 secs or more and save the file (it will show you where it is being saved and what the file is called)
    Zip the file and upload to us on Onedrive (or any file sharing service) and give us a link to it in your next post.
    Wanikiya and Dyami--Team Zigzag

  • I am extracting the data from ECC To bw .but Data Loading taking long tim

    Hi All,
                     i am extracting the data from ECC To BI Syatem..but Data Loading Taking Long time. from last   6 hoursinfopackage is running.still it is showing yellow.Manually i made the red.and delete again i applied repeat of the last delta.but same proble is coming .in the status job is showing bckground job is not finished at source system.we requested to basis.basis people killed that job.again we schedule the chain also again same problem is coming.how can i solve this issue.
    Thanks ,
    chandu

    Hi,
    There are different places to track your job. Once your job is triggered in BW, you can track your load job where exactly it is taking more time and why. Follow below steps:
    1) After InfoPackage is triggered, then take the request number and go to source system to check your extraction job status.
    You can get the job status by taking the request number from BW and go to transaction SM37 in ECC. Then give the request number with begining '' and ending ''.  Also give '*' to user name.
    Job name:  REQ_XXXXXX
    User Name: *
    Check the job status whether job is completed or cancelled or short dump. If the job is still running check in SM66 whether you can see any process. If not accordingly you got to check in ST22 or SM21 in ECC. If the job is complete, then the same in BW side now.
    2) Check the data arrived in PSA, if not check whether Transfer routines or start routines are having bad SQL or code. Similarly in update rules.
    3) Once it is through in Source system (ECC), Transfer rules , Update Rules, then the next task is updating the data might some time take more time which might be based on some parameters ( Number of parallel process to update database ). Check whether updating the database is taking more time and may be you got to check with the DBA guy also.
    At all the times you should see minimum of atleast once process running all the time in SM66 till the time your job gets complete. If not you will see a log in ST22.
    Let me know if you still have questions.
    Assigning points is the only way of saying thanks in SDN.
    Thanks,
    Kumar.

  • CRVS2010 Beta - ReportDocument.Load attempts to load printer

    Using Crystal Reports for Visual Studio 2010 beta 2 with the x64 runtime.
    When loading a report with ReportDocument.Load() the runtime attempts to load the printer settings for the last printer used in the document.  If this printer is a shared network printer which is not installed on the computer, a dialog comes up:
    Printers:
    To use the shared printer
    ServerName\PrinterName, you need to install the printer driver on your computer.
    [install driver (UAC symbol)] [cancel]
    Since the intention is to only export the report to excel for further processing; clicking cancel and not having the printer available is fine.
    However, the fact that Load() does not return until the dialog is dismissed means that this cannot be used in unattended environments.
    The runtime should not query the printer, prompting Windows to load the printer, unless a print operation is called.  At present it is not possible even to load the report and reset the printer information programmatically.
    Thanks for your consideration
    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 3, 2010 6:38 AM

    From my experience the statement "ReportDocument.Load() the runtime attempts to load the printer settings for the last printer used in the document" is incorrect. The .Load does not read the report definition so the report will not look for a printer - unless you do any report manipulation right after the .Load (db logon, .set formula, etc.)
    Using the InProc Ras, it is possible to programmatically enable the "No Print" option right after .Load and thus, forgo the user intervention.
    Ludek

  • Attempted to read or write protected memory error on reportdocument.load

    Reportdocument.load causes "System.AccessViolationException: Attempted to read or write protected memory" error.
    The error is not consistent. Sometimes a report will print. Sometimes a report will error.
    I am at a loss as to what to try.
    I have uninstall the app, reinstalled the app, uninstall and reinstalled .NET frameworks, Visual C++ runtime, etc.,
    reworked the code to try to capture the error. Nothing helps. Application crashes with Unhandled exception.
    Attempted to read or write to protected memory.
    Has anyone been able to resolve this issue?

    Hi Mary,
    What happens if you set your project to use 4.0 framework?
    Anything else in the Event Viewer to show an access violation?
    Have you tried updating the printer driver to one that is supported in the Framework? I find most legacy printers tend to use the old DEVMODE structure and not the Framework. Try using the printer off the Window CD rather than the Manufacturers driver.
    Is your app doing "Report Bursting"? In other words sending multiple reports one right after the other with no time between?
    Are you using any legacy UFL's? Try renaming u2lcom.dll if you are not using them. If you do you'll get an error in formula.
    Are you using try/catch in your code around each CR API? It may catch something more for you also.
    AND, can you try a C# project, some thing very simple also. I've of issues in VS VB that do not show up in other dev languages. Neither Microsoft or SAP can figure out what the cause is.
    Thank you
    Don
    Edited by: Don Williams on Feb 11, 2011 2:34 PM

  • TS3212 Ihave dnloaded itunes, purchased songs and can't get them to load on my new mini Ipod?

    My new Ipod mini won't load songs. They are in my library and loaded on my old ipod but I can't get them loaded on my new mini. Its plugged in and says Connected. I'm not subscribed to the cloud...is that it????

    Thanks Chris CA.
    In the Gen 4 they offer "Settings" then "Reset Settings"  Then it asks, "Do you want to reset your iPod?"  I click on "reset" but then nothing resets. :-(  This is what makes me think it might be locked or something....

  • Cannot get PDF files to load on the iPad Mini from iTunes!

    Cannot get PDF to load on the iPad Mini through iTunes (latest version).   I could easily do this on the iPod Touch.   So what is missing?

    I solved my problem.  It turns out the default in iTunes is NO Sync for books or podcasts.  Once I turned that on I had success.   That wording should be included in the explanation on how to transfer PDF files to the iPad.

Maybe you are looking for

  • Format changing when IDCS3 file exported to PDF

    I am using Acrobat 8 version 8.1.2, and InDesign version 5.0.2. I am noticing a very specific problem when exporting some files to PDF from InDesign. We often have a format where we have a numbered list of right-aligned number, followed by some text,

  • Home Hub Ethernet Connections

    Have had the BT home hub 1 for years with 3 PCs connected via Ethernet & USB connections (wireless is useless as house is 170 yrs old with 15 inch thick walls that have defeated all wireless attempts). Now that I have vision there are not enough conn

  • WWI report Symbols

    Hi Gurus I am in the process of creating new template for Incident Management. In incident management we have Root Cause hierarchy. In our system we dont have standard symbols for root cause hierarchy. Any idea what are the symbols we need to use for

  • How to use the Embedded PDF plugin

    Hi all, I have installed a plugin Embedded PDF. Does anyone know how to used this for printing an interactive report??

  • Adobe Air Lisence agreement keeps poping up but app wont launch??

    I hope someone can help me as this is my 2nd post...lol I keep getting the lisence agreement popping up everytime i try to launch a application/program that iam trying to use. the program never works, i just keep clicking the I agree and then nothing