Set a timeout for crystal sessions while using the Windows.Forms.Viewer?

Hi,
I am looking for a way to set the timeout for the crystal report sessions when using the Windows.Forms.Viewer in a .NET application. I guess that the default value is 20 minutes (like in the entperprise installations) but we cannot afford to keep many sessions open for that long. Is there a registry entry which can be set? Or even a way to do this programmatically?
Thank you in advance,
Stratos

Hi David,
we are talking here about a standalone .NET application where the reports are installed locally (like the application itself). We are not retrieving the reports from a server. The whole thing was developed using the crystal report viewer model probably because it was easier to do so. Is there a method in this model to tell the crystal runtime to do the clean-up work either for a report (like the ReportDocument.Close() ) or for the entire runtime instance. Dispose() does not seem to help us. If you say that there is no other way than redesign then we have to consider this option also.
Cheers
Stratos
PS: What I was thinking of (as Plan B instead of using the ReportDocument object model) is to instantiate the crystal report viewer object in a separate process (.exe). Please note that we open a new crystal report viewer windows for each report, which is displayed. Closing the viewer window (ie. terminate the process) will at least then clean up and release the crystal DLLs and hopefully close the database connections. Or am I missing something here?
Edited by: Efstratios Karaivazoglou on Jul 29, 2008 10:05 PM

Similar Messages

  • On my MacBook Pro, while using the windows side, I have no audio. Any suggestions

    On my MacBook Pro while using the Windows hard drive, I have no audio. The icon shows that I should (no mute insignia).  Any thoughts what I might do to correct?
    Thnaks.
    Tom

    Whoa, I found the answer by clicking on one of the questions in the "More Like This" box to the right.  I do  wonder how to find that box before posting my dumb question.  The answer turned out to be checking the youtube volume control.  I turned that up and it solved the problem for Comast as well.

  • Some Pro's Opinions on the Best iPod for exercise and while using the MBP.

    Is it true that because of the moving parts that the classic should not be used for any type of exercise? When they first came out, I never thought about this or never got this from anybody else so I used my Classic for year without any trouble. I do not do aerobic exercise since the ear buds would not stay in my ear canal, but it seemed to work great. this was a long time ago, I think around 2001, but it got stolen so that ended that for me.
    I am now in the market for another one, getting some better Westone 3 ear plugs, but I am not sure what iPod to get. I am not into breaking iPods, now that I have this information that was not a problem many years ago, but I would like some feedback if anybody cares to share their experience. I would need a case and wondering if anybody has used a case that works well for exercise as far as sweat clipping it somewhere, etc.
    finally, has anybody come across the articles they have on here somewhere that applecare uses when we all cal in with a problem, they are the same articles that applecare (I heard this, but makes sense) uses as a starting point in trouble shooting problems. Anybody know how to get in to that archive?
    As far as the ear plugs, I know a headset would be better to use with the MBP, but since I am spending a fortune for the Westone 3 ear plugs, I am trying to see if they will sound good on the MBP.
    God Bless.

    iPods with hard drives such as the Classic (the older iPod you describe was not a Classic by the way. It's counterintuitive but the Classic is the most recent series of hard drive based iPods) will be more prone to failure if subjected to jarring. "More prone" doesn't mean that the will fail you ever exercise with them. My first gen iPod (the 5gig brick) was used for running when I owned it and is still being used for running by the friend I gave it to.
    I also used my 3rd gen Nano, 2nd gen shuffle and all three generations of Touches for exercise, including running. The are all flash based so less susceptible to problems from jarring or bouncing. The Nano and the 2nd and 3rd gen touch can be used with the Nike+ Sport kit which is nice if you walk or run. The Touch also has applications that can be useful when exercising. For example, I use an interval timer. The 2nd gen Shuffle is my iPod of choice when racing as it's easier to hide if they want to give me a hard time about it and because it's so light. Before the Touch supported the Nike+ Sport Kit, I used the Nano a lot.
    My best advice, especially if you're not running, is to buy whichever iPod suits most of your needs. If the Classic suits you because of it's greater capacity, for example, go for it.
    Best of luck.

  • How to set Command Timeout in Crystal report while calling from C# code

    I am using Crystal report XI R2.  I am calling SQL server 2005 stored procedure as source in the report. I want the report should timeout from the website if the stored procedure doesn't return resultset after 5 minute. Could you please assist how should I chnage the below code to achieve that.
    Code :
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using CrystalDecisions.CrystalReports.Design;
    using CrystalDecisions.Shared;
    using CrystalDecisions.Web;
    using CrystalDecisions.CrystalReports.Engine;
    namespace CrystalTest
        public partial class _Default : System.Web.UI.Page
            protected ReportDocument rd;
            protected CrystalReportViewer Crv;
            protected void Page_Load(object sender, EventArgs e)
                rd = new ReportDocument();
                rd.Load(Request.MapPath("FXRate.rpt"));
                SetDBLogonForReport(GetCrvConnectionInfo(), rd);
                ParameterFields crtParamFields;
                ParameterDiscreteValue crtParamDiscreteValue1;
                ParameterField crtParamField1;
                ParameterDiscreteValue crtParamDiscreteValue2;
                ParameterField crtParamField2;
                ParameterDiscreteValue crtParamDiscreteValue3;
                ParameterField crtParamField3;
                ParameterDiscreteValue crtParamDiscreteValue4;
                ParameterField crtParamField4;
                ParameterDiscreteValue crtParamDiscreteValue5;
                ParameterField crtParamField5;
                ParameterDiscreteValue crtParamDiscreteValue6;
                ParameterField crtParamField6;
                crtParamFields = new ParameterFields();
                crtParamDiscreteValue1 = new ParameterDiscreteValue();
                crtParamField1 = new ParameterField();
                crtParamDiscreteValue1.Value = "USD";
                crtParamField1.ParameterFieldName = "@BaseCurrCode";
                crtParamField1.CurrentValues.Add(crtParamDiscreteValue1);
                crtParamFields.Add(crtParamField1);
                crtParamDiscreteValue2 = new ParameterDiscreteValue();
                crtParamField2 = new ParameterField();
                crtParamDiscreteValue2.Value = "EUR";
                crtParamField2.ParameterFieldName = "@CounterCurrCode";
                crtParamField2.CurrentValues.Add(crtParamDiscreteValue2);
                crtParamFields.Add(crtParamField2);
                crtParamDiscreteValue3 = new ParameterDiscreteValue();
                crtParamField3 = new ParameterField();
                crtParamDiscreteValue3.Value = "2008-05-28 00:00:00";
                crtParamField3.ParameterFieldName = "@FromDate";
                crtParamField3.CurrentValues.Add(crtParamDiscreteValue3);
                crtParamFields.Add(crtParamField3);
                crtParamDiscreteValue4 = new ParameterDiscreteValue();
                crtParamField4 = new ParameterField();
                crtParamDiscreteValue4.Value = "2008-05-28 00:00:00";
                crtParamField4.ParameterFieldName = "@ToDate";
                crtParamField4.CurrentValues.Add(crtParamDiscreteValue4);
                crtParamFields.Add(crtParamField4);
                crtParamDiscreteValue5 = new ParameterDiscreteValue();
                crtParamField5 = new ParameterField();
                crtParamDiscreteValue5.Value = "ashok12";
                crtParamField5.ParameterFieldName = "@CurrentUser";
                crtParamField5.CurrentValues.Add(crtParamDiscreteValue5);
                crtParamFields.Add(crtParamField5);
                crtParamDiscreteValue6 = new ParameterDiscreteValue();
                crtParamField6 = new ParameterField();
                crtParamDiscreteValue6.Value = DateTime.Now.ToString("dd MMM yyyy hh:mm");
                crtParamField6.ParameterFieldName = "@ClientTime";
                crtParamField6.CurrentValues.Add(crtParamDiscreteValue6);
                crtParamFields.Add(crtParamField6);
                Crv.ParameterFieldInfo = crtParamFields;
                Crv.DisplayGroupTree = false;
                Crv.BestFitPage = true;
                Crv.ReportSource = rd;
            private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
                Tables tables = reportDocument.Database.Tables;
                foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
                    TableLogOnInfo tableLogonInfo = table.LogOnInfo;
                    tableLogonInfo.ConnectionInfo = connectionInfo;
                    table.ApplyLogOnInfo(tableLogonInfo);
            public static CrystalDecisions.Shared.ConnectionInfo GetCrvConnectionInfo()
                CrystalDecisions.Shared.ConnectionInfo con = new CrystalDecisions.Shared.ConnectionInfo();
                con.ServerName = System.Configuration.ConfigurationSettings.AppSettings["conServer"].ToString();
                con.DatabaseName = System.Configuration.ConfigurationSettings.AppSettings["conDatabase"].ToString();
                con.UserID = System.Configuration.ConfigurationSettings.AppSettings["sesUser"].ToString();
                con.Password = System.Configuration.ConfigurationSettings.AppSettings["sesPwd"].ToString();
                return con;
            private void Page_Unload(object sender, System.EventArgs e)
                if (rd != null)
                    rd.Close();
                    rd.Dispose();
                if (Crv != null)
                    Crv.HasCrystalLogo = false;
                    Crv.Dispose();

    Yes it is possible to use datasets. resources listed below. One hting to be aware of; Using datasets larger than about 5,000 records (depending on the report) is not advisable. Performance will potentially be an issue with datasets that are too large.
    Crystal Reports Guide To ADO.NET
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/401c4455-a31d-2b10-ae96-fa57af5aec20
    Reporting Off ADO.NET Datasets
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2091d0c3-da1d-2b10-22be-a3426b183f75
    VS2005_Walkthroughs
    http://www.businessobjects.com/global/pdf/dev_zone/VS2005_Walkthroughs.pdf
    VB samples:
    https://smpdl.sap-ag.de/~sapidp/012002523100006252822008E/net_win_smpl.exe
    In the above samples see VBNET_WIN_ADODOTNET
    C# samples
    https://smpdl.sap-ag.de/~sapidp/012002523100006252722008E/csharp_win_smpl.exe
    BTW., notes databse is here:
    https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_ossnotes&query=&adv=true
    Articles can be searched here;
    https://www.sdn.sap.com/irj/sdn/businessobjects-articles
    Ludek
    Edited by: Ludek Uher on Feb 17, 2009 1:22 PM

  • Restriction while using the Search form

    Hi there,
    there is something I would like to point out when searching the forums:
    Info
    At least 30 seconds have to pass between searches. Please wait a while and try searching again.
    This happens when searching immediately rather than waiting for 30 seconds.
    Right, this is a restriction telling me, that I've got to wait another 30 seconds before I can do another search. Personally, this actually happens quite often that I stumble in to this time penalty. Especially when I'm looking for information which sometimes results into zero results.
    That is quite annoying. I accept this restriction for non registered users of this forum, but is this necessary to have this for members?
    This was once pointed out in this thread about the introduction of the new version.
    Would an admin like to change this? Any objections?
    I guess that this site doesn't have such a high output on search queries as well. ;-)
    Simon

    cb474 wrote:
    karol wrote:
    Total number of registered users: 36,259
    I'm sure if everyone starts searching it *can* generate quite a load.
    Pierre wrote:The fluxbb search is quite inefficient. It could probably used to dos the server with just a few users.
    It seems like people are just speculating here.
    And for me what you speculate is contradicted by my actual experience, which is that much more heavily trafficked forums do not impose a thirty second wait period on registered users. Others above in this thread have observed the same thing. So, without actual information as opposed to pure speculation, I'm still very skeptical that the wait period is necessary.
    Considering Pierre is the maintainer, he is probably not speculating. And as you are a user on more heavily trafficked forums, I'm sure you know their server configuration like the back of your hand.
    We have one server running about 6 web applications, so we have no desire to improve searching on the forums at the expense of the rest of these apps, especially when Google/Bing/Yahoo will all serve your purpose just fine.

  • If I use an SD card for both Windows 7 and Mac, is there any way to see the documents from the Mac sight while on the windows side?

    If I use an SD Card on both the windows 7 and Mac OS (using bootcamp), is there any way to see the data seen on the Mac OS side while using the Windows OS?

    Windows Aero style uses a different background image than Mac:
    Windows Aero:
    #nav-bar {
    background-image: linear-gradient(rgba(253,253,253,0.45), rgba(255,255,255,0));
    Mac:
    #nav-bar {
    background: url(chrome://browser/skin/Toolbar-background-noise.png),
    linear-gradient(hsl(0,0%,93%), hsl(0,0%,83%));
    I can't test hands on, but you might be able to clear that OSX "fog" using a rule such as:
    @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
    #nav-bar, #PersonalToolbar {
    background-image: none !important;
    background-color: transparent !important;
    This could be applied using the Stylish extension or by creating/editing a userChrome.css file.

  • Set a timeout for "read from text file"

    I Need to read from a text file on a remote pc and use the read from text file function to do this. It wotks but sometimes this pc is down causing long wait times in my vi.
    Is there a way to set a timeout for the read from text file function, or is there an other solution?
    Thank you

    You could check that the path is valid first before you attempt to read the file.  hen put the file read in a True-False case structure based on the results of the check.  You can use the function "Check if File or Folder Exists"  It checks whether a file or folder exists on disk at a specified path. This VI works with standard files and folders as well as files in LLB files.   The function is found in the File I/O --> Advanced File Functions palette.
    Tom

  • Mail / pages / numbers quit unexpectedly while using the BJPDELocalizedString2 plugin  in Word for mac a error mesage comes up when trying to print "Error, no pages found/file name"

    Mail will not print, pages will not print . . . pages / mail quits unexpectedly while using the BJPDELocalizedString2 plugin.  Tryed in Word for Mac. . .Error message; no pages found / filename This all happened when I unstalled brother P-touch.

    Restart the computer in safe mode. Certain caches maintained by the system will be rebuilt.
    Safe mode is much slower to start up than normal. The next normal startup may also be somewhat slow.
    When the login screen appears, restart as usual (not in safe mode) and test. There's no need to log in while in safe mode.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t start in safe mode. In that case, ask for instructions.

  • Setting a timeout for HttpConnection?

    Hi,
    Is there any way to set a timeout for an HttpConnection instance? I've got something like:
    HttpConnection conn = (HttpConnection)Connector.open("www.mysite.com");
    but the timeout on my particular device waits 2 minutes! I'd like to make it something more like 20 seconds. Any way to do this?
    Thanks

    I am surprised that HttpConnection doesn't have a way to timeout already. I searched thru the docs and I cant find any.
    Anyway this is my solution. Use a Thread. Start the thread before calling Connector.open. In the run method of the thread, sleep for 20 secs, wake up and display something to the user. This is assuming that your Connector.open is not blocking. i.e its in a thread of its own. this is an example of a non-blocking httpconnection
      public void commandAction(Command c, Displayable s) {
            if (c.getLabel().equals("GET")) {
                final MIDlet middy = this;
                new Thread() {
                    public void run() {
                        try {
                            //make your http connection here.
                            HttpConnection conn = (HttpConnection)Connector.open("www.mysite.com");
                        } catch (Exception ie) {
                            ie.printStackTrace();
                }.start();
        }of course there are other ways to do that. just my suggestion

  • Setting Idle Time for a session..

    Hi,
    Can you please help in setting idle time for a session using jsp.
    Thanks,
    Srini.

    How to set the timeoutsecs for a session. We can set this parameter in weblogic.properties file. This is constant for all the users. But I want to give the sessionouttime depending on user. Please help me regarding this.

  • HT201328 I have been given permission for unlocking my iphone 3 GS from Orange. I want to set up the phone for my wife to use with a new number and carrier. Do I unlock under my itunes account first or set one up for her and then unlock the phone.

    I have been given permission for unlocking my iphone 3 GS from Orange. I want to set up the phone for my wife to use with a new number and carrier. Do I unlock under my itunes account first ( I now have a new iphone on this account) or set one up for her and then unlock the phone. I am worried about upsetting the new phone.

    I would complete unlocking as is and then
    restore as new once you know the iPhone is unlocked
    Be aware Orange will process the request at their speed
    one of the reasons they usually reside at bottom of User Sat surveys
    will likely take weeks
    This may also help
    http://support.apple.com/kb/HT5014

  • My iphoto quites unexpectedly everytime I open it and says closes while using the eOkaoFr.dylib plugin. Does anyone know how to fix this? iphoto won't stay open for more than 1 minute at a time.

    My iphoto quites unexpectedly everytime I open it and says closes while using the eOkaoFr.dylib plugin. Does anyone know how to fix this? iphoto won't stay open for more than 1 minute at a time. Help anyone?

    Is there a crash log? If so post the first 100 or so lines o fit
    Do you know what the ofending plugin is? and where it came from?
    LN

  • Setting Importance Level for a email message using javax.mail.* API

    Setting Importance Level for a email message using javax.mail.* API
    From what I understand we can set Flag on Email Message. How can we set Importance Leve: High/Low for an email message?
    Thanks
    Purvi

    Most of the message Flags work only for IMAP mailboxes. POP3 supports only the DELETED flag. It must be understood that Javamail is a framework which provides all the features available in a standard mailing system. But whether or not a particular feature works is a functionality of the particular implementation being used.
    Thus for example POP3 cannot differentiate read from unread messages in a mailbox though Javamail provides that feature.

  • Dear sir while using the Internet 3G on my phone after using for 15 min my phone back panel getting hot every time after closing the inernet it becomes normal cool plz suggest me what to do & for 3G use I'm getting battery back up for 3 to 4 hrs plz help

    Dear sir while using the Internet 3G  on my phone it getting hot at backside specially back panel below apple logo and after stopping the use of Net it becoming normal also for 3G I'm getting battery back up for 2 to 3 h
    rs only plz tell me what to do plz reply it is normal or any problem with my phone

    Please don't respond with useless comments.  I've already addressed the fact that my screen was broken a few months ago.  My phone may or may not be broken beyond repair either way, as I said before I can't afford a new phone.  It's a strange problem because from what I can tell no one else has posted the same problem anywhere I can find.  Don't be a dickhole.

  • The Wifi storage options are interesting but it seems they only allow to read files from the device on the iPad but not transfer files to the storage device via WiFi.   I'm looking for a possibility to use the iPad for photography while traveling, without

    the Wifi storage options are interesting but it seems they only allow to read files from the device on the iPad but not transfer files to the storage device via WiFi.
    I'm looking for a possibility to use the iPad for photography while traveling, without the access to a computer.
    Shooting photo's in RAW format crates pretty big files that will fill up the iPad's memory pretty fast if you shoot a lot during a (let's say) month long trip.
    my idea was to use load the photo's to the iPad so i could view them and sort out any bad ones. then copy them over to the storage device so i can continue using my CF cards for shooting. I have an image thank for copying the photo's directly to the HDD but it would be so sweet to be able to check them on the iPad before hand.
    any suggestions?

    Check out pogo plug device, it allows you to upload camera roll via wifi.

Maybe you are looking for

  • Please help me to find the problem in this Query

    hi This is my xml structure, <?xml version="1.0"> <rss version ="2.0"> <channel> <Lgs> <Lg>      <Fid>16447</Fid> <Fname>Sam</Fname> </Lg> </Lgs> <Lgs> <Lg>      <Fid>206</Fid> <Fname>David</Fname> </Lg> </Lgs> <Lgs> </channel> </rss> I need to limit

  • E-mail won't send most of the time

    Ever since my Touch upgraded to the v. 4 firmware I've had trouble with sending e-mail. I don't have as much problem receiving mail...sometimes I can only preview my messages and but most of the time I can open received messages. For a while I couldn

  • HT2729 The audio and video are not in sync.

    I have downloaded an HD video from itunes store to my computer. i have a very powerful pc computer OS: windows 7 professional, intel core i7 with 4GB of RAM. and only when i playback that specific film i downloaded from itunes; after 8 minuets +- the

  • Why my money lost when i download my sticker of line app to my new ipad because i pay its already in my iphone. Why?

    I pay money for sticker in line app already. But when i use my ipad to download its again My money lost and now i have  a bill no 146037781699 Why? I pay money already for that in-app purchase But when i download its again to my ipad my money lost. G

  • Port Replicator Help

    I have my laptop turned on when I put it in the port replicator.  How do I get it to not hibernate so I can use the PR?  Thanks!