Crystal report i don't want message box authentification but automatically

Hello
Escuse me for my bad english
In businessobjects crystal report 11 when I use The Url
serveur/businessobjects/enterprise11/desktoplaunch/opendoc/openDocument.jsp?sDocName=Doc_Acquisition&apsuser=Myuser&apspassword=123
The first Time I have a messagebox authentification , user password and My document
crystal report is open .
The second time i have access directly to my document ( No message box)
I would like the first time i have access to my document directly (I don't want the
message box authentification).
It's possible ?
The script are on crystal reports opendocument.jsp documentxml.jsp
yourserveur/businessobjects/enterprise11/desktoplaunch/opendoc/)
have you an example ?
I dont want display logon.do the first time
have you an solution
Can you send me an example with a script that access directly to my document
Good luck
Thank you very much

Thanks Aasavari
Do you speak French ?
Thanks for example view_report  --> it's Ok
I have changed the programmation to have access directly
what do you think,
When i have changed the file jsp to have access directly ( no message box logon)
the old version jsp display ?
why ?     stop the services tomcat ? or stop the service crystal  cache server ?
I look forward to be hearing from you
sincerely
Michel
logonform.jsp
<%!
/**************************** class LogonForm ***************************
This logon form is used to gather the logon information needed
to login to Enterprise
private class LogonForm {
     HttpServletResponse response;
     HttpServletRequest request;
     int num_reports_needed = 1;
     String[] reportname;
     public static final int NONE = 0;
     public static final int REPORT_NAME = 1;
     public static final int REPORT_NAME_X2 = 2;
Constructor - Save the response and request objects
     LogonForm(HttpServletResponse response, HttpServletRequest request)
          //this.response = response;
          //this.request = request;
Constructor with options - Add some optional boxes to request other
                           input from the user such as reportnames.
     LogonForm(HttpServletResponse response, HttpServletRequest request, int extra_requests) {
          this.response = response;
          this.request = request;
          switch (extra_requests) {
               case NONE:
                    break;
               case REPORT_NAME:
                    num_reports_needed = 1;
                    reportname = new String[1];
                    break;
               case REPORT_NAME_X2:
                    num_reports_needed = 2;
                    reportname = new String[2];
                    break;
If we do not already have the logon information, print a logon form.
Return true if a logon form was printed, false if it wasn't.
     public boolean display_if_needed() throws java.io.IOException {
                    reportname[0] = "TEST1";   // my report
               return false;
%>
view_report.jsp
<%
Applies to Versions:     XI
Creation Date:     Febuary 28 2005
Description:
                         This sample to demonstrates how to view a Crystal Report on demand in
    *                         the zero-client DHTML viewer. 
Author:               CW.
%>
<%@ page import = "com.crystaldecisions.sdk.occa.infostore.*,
                   com.crystaldecisions.sdk.plugin.desktop.common.*,
                   com.crystaldecisions.sdk.framework.*,
                   com.crystaldecisions.sdk.occa.security.*,
                   com.crystaldecisions.sdk.exception.SDKException,
                   com.crystaldecisions.sdk.occa.managedreports.IReportSourceFactory,
                   java.util.Locale,
                   com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"
%>
<%@ include file = "logonform.jsp" %>
<%
     try {
         //If logon information is required, display the logonForm and exit.
          //Create a special logon form that requests 2 Report Names
          //(code for LogonForm class is included).
          LogonForm logonform = new LogonForm(response, request, LogonForm.REPORT_NAME);
          if (logonform.display_if_needed()) return;     
          //Log in.
// access directly
          IEnterpriseSession enterpriseSession = CrystalEnterprise.getSessionMgr().logon("Administrator","", "pa", "secEnterprise");
         //Grab the InfoStore from the httpsession
         IInfoStore infoStore = (IInfoStore)enterpriseSession.getService("", "InfoStore");
         //Query for the report object in the CMS.  See the Developer Reference guide for more information the query language. 
         IInfoObjects oInfoObjects = (IInfoObjects)infoStore.query("SELECT TOP 1 * " +
                                                                                 "FROM CI_INFOOBJECTS " +
                                                                            "WHERE SI_PROGID = 'CrystalEnterprise.Report' AND SI_INSTANCE=0 AND SI_NAME='" + logonform.reportname[0] + "'" );
         if (oInfoObjects.size() > 0) {
              //Retrieve the latest instance of the report
              IInfoObject oInfoObject = (IInfoObject) oInfoObjects.get(0);
              //Use the PS report factory to obtain a report source that will be processed on the Page Server.   
              IReportSourceFactory factoryPS = (IReportSourceFactory)enterpriseSession.getService("PSReportFactory");
              Object reportSource = factoryPS.openReportSource((oInfoObject), Locale.ENGLISH);
              session.setAttribute("reportSource", reportSource);
              //View the report in the standard DHTML viewer.        
              response.sendRedirect("CrystalReportViewer.jsp");
         else {
              out.println("Report " + logonform.reportname[0] + " not found.");     
    catch(SDKException sdkEx) {
          out.println(sdkEx);  
%>

Similar Messages

  • I updated to yosemite and now if someone is using imessage and sends a text message to my phone it doesn't show up on my phone but does on my computer.  I don't want messages on my computer!  How do I get this to go away and work like it used to?

    I updated to yosemite and now if someone is using imessage and sends a text message to my phone it doesn't show up on my phone but does on my computer.  I don't want messages on my computer!  How do I get this to go away and work like it used to?

    Follow the instructions under the heading "How to unlink a phone number" on this page.

  • My computer will not let me click the box in iTunes where it says "sync only checked music and videos." So i cant unsync songs that i don't want on my iPod but still want in my iTunes. HELP?!

    My computer will not let me click the box in iTunes where it says "sync only checked music and videos." So i cant unsync songs that i don't want on my iPod but still want in my iTunes. HELP?!

    These are your options:
    1. Restore the iPhoto library from the most recent backup that predates the issue.
              Advantages: Always works, if library damage is causing the problem and the backup is intact.
              Disadvantages: Impossible if you don't have a backup. All changes made since the backup are lost.
    2. Repair or rebuild the library. Be sure to back it up first.
              Advantages: May solve the problem with no loss of data.
              Disadvantages: May fail. May take a long time if the library is large.
    3. Scavenge the library with a third-party application called "iPhoto Library Manager," which you can find in a web search. From the application's menu bar (not the iPhoto menu bar), select Library ▹ Rebuild.
              Advantages: All images should be preserved.
              Disadvantages: All books, calendars, and slideshows will be lost.

  • I don't want the language bar switches automatically depending on the site until I change it manually.

    I am using firefox 4.0 in mac. Whenever I go to the korean site, the language bar switches automatically to korean from english, but if I am back to english based site, the language still keep korean. I don't want the language bar switches automatically depending on the site until I change it manually. It's very annoying. Thank you.

    I don't know why it says that I use firefox 4... When I check in my About window it says 18.
    I do ignore the message about the plugins. But I've started to get a little bit annoyed that I have to move up and press the little x every time I navigate to a site that needs something like flash. It eats up the size of about two text rows... it feels so unnecessary that it's there. If I want flash I will install it... The browser doesn't have to inform me about it every time.
    I really hoped for a better answer. Hopefully the firefox crew will add an option to not show that kind of messages in the future.

  • It keeps having me verify my billing won't let me download apps update apps nothing I don't want to purchase anything but it insist on me putting in credit card info please help

    It keeps having me verify my billing won't let me download apps update apps nothing I don't want to purchase anything but it insist on me putting in credit card info please help

    If you want to use your current ID you will either have to provide a credit card or redeem an iTunes gift card.  Otherwise you can create a new ID without a credit card to purchase free apps by following this exactly as written: http://support.apple.com/kb/ht2534.

  • I have iPhoto 08 and have been happy with it. Don't want to upgrade. But suddenly, when I click on an event, instead of all the photos, I just get one- enlarged- and cannot move to the next one. The photo just jumps up or down.  How to solve?

    I have posted "submit" twice and keep getting requests to submit again.  Now being asked to write a summary! Here we go.  I have iPhoto 08 and am happy with it.  Don't want to upgrade. But suddenly when I click on an event, instead of getting all the photos, I just get a large version of one photo and cannot move on to the others.  The right arrow will not move it and the photo just jumps around.

    Note the slider bottom right of the iPhoto Window. Drag it left.

  • I have CS6 and I don't want it to break, but I need CC. Need installation tips (mac)...

    I have a CS6 suite and I don't want it to break, but I need CC.
    I don't have time this week for major problems especially since CS6 suite is working great.
    What's the latest news on installations such as this where CS6 suite exists, are they successful with the latest installers, versions etc. 
    Are problem installations effecting the CS suites, or are the problems isolated and only causing problems with CC?
    Do I jump in, or run away?
    thanks in advance.
    j
    Mac 10.8.5

    Hi J,
    The answer is 'YES'. You can install CS6 and CC on the same machine without causing abreak in fucntionality of any CS6 apps.
    Please refer the KB : http://helpx.adobe.com/creative-cloud/help/install-cc-and-cs6-apps.html
    Regards,
    Rave

  • Crystal Reports XI  stopped working error message on a Windows Server 2008

    We recently installed Crystal Report XI  in a Windows Server 2008 environment. After completed the installation as the Administrator every time that we try to execute Crystal we receive the following error message:
    "Crystal Reports has stopped working"
    Problem signature:
    Problem Event Name: BEX
    Application Name: crw32.exe
    Application Version: 11.0.0.1282
    Application Timestamp: 422d5c77
    Fault Module Name: StackHash_1fc1
    Fault Module Version: 0.0.0.0
    Fault Module Timestamp: 00000000
    Exception Offset: 7ef2fbfc
    Exception Code: c0000005
    Exception Data: 00000008
    OS Version: 6.1.7600.2.0.0.272.7
    Locale ID: 1033
    Additional Information 1: 1fc1
    Additional Information 2: 1fc163a1c57ae45571bce37d539b233f
    Additional Information 3: 2f92
    Additional Information 4: 2f92817e9e63d4100e2aa48e72910a78
    Any recommendation on what is causing this error?
    Thanks,
    Luis

    Hi, did you get this working? I'm really struggling to get up and running on 2008 R2, the CMS service just refuses to connect to the database. It also looks like the database wasn't created properly during the install. I set it up on an MSDE database, and when I look at it with sql management studio the database is there but there aren't any tables or anything else
    Can anyone either confirm or deny that its possible to run Crystal XI on 2008 R2?
    The error I'm getting when trying to start the service is:
    The root server reported an error Initialization Failure. (Reason: Unable to connect to the database using the provided connection string. Reason: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified).
    I've confirmed that the ODBC connections work (both 32 bit and 64 bit) via the built in test, but Crystal for some reason isn't happy

  • HT1212 I have the IPOD is disabled for 16,000 minutes message and didn't have it backed up to a computer and have 122 books on tape on it so don't want to erase it but just want to get to the password screen again

    I have and Ipod touch 3G and it has a message in Red saying "Ipod is disabled for 16,333 minutes"
    I did not have it backed up to a computer and it has 122 books on tape installed on it so I don't want to erase the whole thing and start trying to download all the books on it again.
    I am just trying to get to the IPOD passcode screen.
    thank you!

    - Maybe from the restored iPod via How to perform iPad recovery for photos, videos
    Wondershare Dr.Fone for iOS: iPhone Data Recovery - Wondershare Official     
    http://www.amacsoft.com/ipod-data-recovery.html
    -iPod touch Deleted Photo Recovery Tips You Should Know

  • Crystal Reports Server XI Infoview Error Messages

    Just upgraded to Crystal Reports Server XI Release 2. I can create reports and save them using the enterprise method. The reports run fine in Crystal reports but when I try to view a report using Infoview I get the following messages:
    Unable to retrieve object.
    Library not registered.
    If I change viewers the first line will be different but the second line will be the same.
    All the servers are running and permissions look good. I've searched the web and this forum and could not find an answer.
    Thanks,
    mx_forever

    Jock,
      That is understandable as I just saw a typo in the dll name.  I think more importanly we should check on a few other items.
    1.  I am presuming the Infoview/CMC applications are running in IIS.  Is that true?  Do you jave the java version installed as well?  If so, attempt to open the report(s) there.
    2.  Is IIS is involved, Is there a valid virtual directory for crystalreportviewers115? 
    I have never seen anything with "Line 6" before.  It may be a reference to the web.config file that specifies the viewers etc. 
    Tony

  • Crystal Reports XI Release 2:  Error message when trying to install

    I am unable to install Crystal Reports XI Release 2 onto my computer.  After putting CD1 into my computer and clicking install, I get the following error message: 
    "Error applying transforms.  Verify that the specified transform paths are valid."
    A couple members of my companies' I.T. department tried to help, but the error message was foreign to them.  Tthey even built me a new hard drive, but unfortunately it gave me the same error message.
    I am able to install Crystal Reports XI without a problem, but for some reason, Crystal Reports Release 2 will not install.
    Any help you can provide in this matter would be greatly appreciated.

    1.Are you able to neglect the installation window completely.
    Like,can you just open your drive which accepts the cd and copy all the files from the win32 folder to another folder say "test".
    2. If not on this machine, could you please try this on some other machine.
    3.Otherwise you can download it from the following URL:
    http://resources.businessobjects.com/support/additional_downloads/servic
    e_packs/crystal_reports_en.asp#CRXIR2
    Please select the "Service Pack 2 - Full build - ZIP - 1.03 GB -released April 2007" hyperlink.
    Let me know if this helps
    Thanks

  • 1)Paying online. 2) Don't want messages left by Verizon control

    1) Just made payment online and last 10 minutes payment won't clear because red dots keep going in circle. I need the confirmation #. 2). When a message is left on answering machine , I have to dial Verizon services and give a pass code. I don't want this procedure!!! I just want to listen and erase as I did in the past. Thank you.

    Just a friendly reminder, this is a forum where users help other users. It looks like your issue may require a Verizon representative to review your account details. Please contact our customer service team via live chat or email at:
    http://www.verizon.com/contactus
    Choose “Live Chat.”
    If a chat agent is available to assist you, the chat link will become live after the page is fully loaded.

  • APPCRASH - "Crystal Reports has stopped working"- windows message

    Hi,
    I had installed Crystal reports 2008 using valid license keycode on Windows Server 2008 machine ( crystal software not registered it in Sap portal for additional support)  This was used for crystal reports development in .Net for few days, After 1 month or little more , the crystal reports stopped working and when launched from Start -> Programs -> Crystal Reports 2008 displayed a windows error message " Crystal Reports has stopped working ".
    Following is the details about Problem from windows message
    Problem Event name: APPCRASH
    Application name: crw32.exe
    Application version : 12.0.0.683
    Fault Module Name: x2rpclB5.dll
    Exception Code : c0000005
    OS Version : 6.0.6001.2.1.0.274.10
    I Uninstalled and reinstalled the application with valid license keycode and registered as well, but still the error remains same when the application is started.
    Kindly suggest on how to resolve this issue.

    Please note that this forum is dedicated to topics related to custom application development or deployment with Crystal Reports in .Net. This includes full versions of Crystal Reports as well as those versions of Crystal Reports bundled with Microsoft Visual Studio .Net.
    Reports design, Crystal Reports (exe) installation and other issues should be posted to the [Report Design forum|SAP Crystal Reports;
    Now, looking up the DLL,(x2rpclB5.dll) it appears to be a Xerox printer driver(?). You mention that this started to happen recently, so the question would be; was a Xerox printer driver installed? Also, see if either uninstalling the printer driver or installing any available updates fomr Xerox will resolve the issue.
    Ludek

  • Trouble with crystal report viewer - don't show swf file

    hi to evrybody,
    i'm developing an  application with Crystal Report and Xcelsius.
    My scenario is:
    Visual Studio 2008
    Crystal Report 12.1.0.892
    ( for the cliente CRRuntime_12_1_mlb.msi)
    I tried to develop only the kernel of the application a form vb that call another form with
    crystalReportViewer (12.0.2000.0)
    My trouble is that i can't see the flash embed in Crystal Report file.
    (In the Crystal Report preview all wors fine)
    Can someone help me with this ?
    Best regards
    Alessandro

    Unfortunately this functionality is not currently available within .NET windows forms applications.  It will work in ASP.NET applications.

  • Crystal Reports export and print fails with SSL / https but works with http

    Windows 2008 Server, 32-bit (IIS7)
    ASP.NET 2.0
    Ajax 1.0
    Crystal Reports version 10.5.3700.0
    http:  printing works, export works
    https:  printing not working, only export to MS Excel and MS Word work.
    I am able to generate reports using both http and https, and the toolbar icons are all showing.  However, I am unable to print or export properly with SSL.
    Printing prompts me with a select printer window, and then a window 'Retrieving Page 1' follow by two messages from Crystal Print Control both stating:
    A communication error occured.  Printing will be stopped.
    Exporting generates various errors depending on which export method is being selected (however Excel and Word work over https).
    I've found the same problem on this site and other forums, but never a resolution to get exporting and printing to work with SSL.  Will someone please provide me assistance or possibly relay what settings they're using if they have Crystal Reports export or printing working over SSL in IIS7?  Everything works fine when I change the address from https to http.
    Please let me know if I can help by providing further information.  We've gone through a great deal of possible solutions with code and I'm currently looking in to IIS settings again.
    Thank you.

    Thanks Ludek. I got it by searching KB number.
    Unfortunately, it didn’t fix my problem even my IE (IE8 and IE 9) has correct setting.  I double check my version. PrintControl.CAB is version 10.2.0.1146. we use VS 2005 Crystal report and VB .NET. It works fine on HTTP. But when we use HTTPS (SSL Certificate from go daddy).
    1: Crystal report export
                Export to MS Excel, Word: pop us “File download”, then click “Save”. It says “Internet Explorer cannot download ReportView.aspx from my site. Internet Explorer was not able to open this internet site. the requested site is either unavailable or cannot be found. Please try it again later”
                Export to RPt, Rich text format: It says “Internet Explorer cannot download ReportView.aspx from my site. Internet Explorer was not able to open this internet site. the requested site is either unavailable or cannot be found. Please try it again later”
                Export to PDF : nothing happened.
    2: Print:
                Pop up dialog to select printer, click “Print” “. Shows windows “Crystal Report Viewer” and pop us error message box. Title is “Crystal Print Control”. Message is “An communication error occurred. Printing will be stopped”. Click “OK” and pop up error message box again.
    Please advise.
    Thank you very much!

Maybe you are looking for

  • Home Share no longer working in Windows iTunes 10.5?

    OK, I'm not seeing this problem anywhere else, so perhaps it's just me.  I upgraded to 10.5 yesterday on both my Windows 7 machine and my MacBook Pro.  Ironically, I also added a new Apple TV device to the loop.  While attempting to access my library

  • Upload condition records in SD

    Hi, How to upload more condition records in SD kathir.

  • Transports missing from QA worklist

    Hi all - We recently performed a system copy on our CRM system to refresh the QA environment. Pending transports that were not yet in the production system were re-imported into the QA environment post-refresh. (Our STMS paths are configured to requi

  • Error in uwl message text

    hi all,    I have a problem with a message in Italian which appears when the task list is empty, the message translated into English would be "no items found" but in Italian  the message is incorrect, how can I fix it? Thanks Rocco

  • Where are successful sync's logged to?

    Certainly there are error logs in `about:sync-log`, but, if sync is working, will there be a success log? When I click on the two arrows going in a circle, it says "last sync <day> <time>". Where is the log of that sync? I see only error messages in