How to open A Windows Form from Crystal Reports

Hello All
We are using crystal Repors 10 with Visual studio .Net 2005. Our requirement is to open the Windows Form when a user click on the respective Hyperlink. Simillarly popping up the MessageBox when clicking hyperlink.
How this is possible, I will be really thankful to anyone who solves my problem

Depending if this is a web or win app, you have different solutions.
Web or win, use hyperlinks and redirect to an aspx page (I think hyperlinks are supported in CR 10.2).
Win, use events as described in the sample app csharp_win_viewer_events.zip / vbnet_win_viewer_events.zip. I have never used the events to pop up a new form, but you should be able to do this.
BTW.; make sure you have sp 1:
https://smpdl.sap-ag.de/~sapidp/012002523100006007872008E/crvs05sp1.exe
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup

Similar Messages

  • How to open new window and generate oracle report from apex

    Hi,
    I had created an application that generates PDF files using Oracle Reports, following this Guide.
    http://www.oracle.com/technology/products/database/application_express/howtos/howto_integrate_oracle_reports.html
    And I followed 'Advanced Technique', so that users can't generate PDF file by changing URL and parameters. This is done for security reasons.
    But in this tutorial, when 'Go' button is pressed, the PDF file is displayed on the same window of apex application. If so, user might close the window by mistake. In order to avoid this, another window have to be opened.
    So, I put this code in the BRANCH - URL Target. (Note that this is not in Optional URL Redirect in the button property, but the branch which is called by the button.)
    javascript:popupURL('&REPORTS_URL.quotation&P2100_REP_JOB_ID.')
    But if the button is pressed, I get this error.
    ERR-1777: Page 2100 provided no page to branch to. Please report this error to your application administrator.
    Restart Application
    If I put the code 'javascritpt ....' in the Optional URL Redirect, another window opens successfully, but the Process to generate report job is not executed.
    Does anyone know how to open new window from the Branch in this case?

    G'day Shohei,
    Try putting your javascript into your plsql process using the htp.p(); procedure.
    For example, something along these lines should do it:
    BEGIN
    -- Your other process code goes here...
    htp.p('<script type="javascript/text">');
    htp.p('popupURL("&REPORTS_URL.quotation&P2100_REP_JOB_ID.")');
    htp.p('</script>');
    END;
    What happens is the javascript is browser based whereas your plsql process is server based and so if you put the javascript into your button item Optional URL Redirect it is executed prior to getting to the page plsql process and therefore it will never execute the process. When you have it in your branch which normally follows the processes, control has been handed to the server and the javascript cannot be executed and so your page throws the error "Page 2100 provided no page to branch to"... By "seeding" the plsql process with the embedded javascript in the htp.p() procedure you can achieve the desired result. You could also have it as a separate process also as long as it is sequenced correctly to follow your other process.
    HTH
    Cheers,
    Mike

  • How to print directly to Printer from Crystal Report Viewer ?

    Hi All,
    We are integrating our Java Web Application with Crystal report XI, currently using JRC and export to PDF for user to preview and print to local printer.
    Now there is new requirement :
    Some clients is using thin client terminal (no harddisk, only has OS +Browser in ROM), so I cannot install Acrobat Reader for them to preview&print the report.
    So I am looking at  Crystal Report Viewer, the question is : Can I print from Crystal Report Viewer directly to local printer without first converting it to PDF (because I can't have acrobat reader installed) ??
    Thank you very much,
    Krist
    Indonesia

    Hi,
    It can't be achieved through XI.
    JRCXI R2 SDK offers the ability to print the report server side
    using the PrintOutputController using printReport(PrintReportOptions printReportOptions) method.
    Here is the code(for XIR2):
    import="com.crystaldecisions.reports.sdk.*"
    import="com.crystaldecisions.sdk.occa.report.lib.*"
    import="com.crystaldecisions.sdk.occa.report.document.*"
    try {
    final String REPORT_NAME = "Inventory.rpt";
    ReportClientDocument reportClientDoc = new ReportClientDocument();
    reportClientDoc.open(REPORT_NAME, 0);
    //Create and set print options.
    PrintReportOptions printOptions = new PrintReportOptions();
    //Note: Printer with the 'printer name' below must already be configured.
    printOptions.setPrinterName("
    10.10.45.220
    BOBJ 2C");
    printOptions.setJobTitle("Sample Print Job from JRC.");
    printOptions.setPrinterDuplex(PrinterDuplex.horizontal);
    printOptions.setPaperSource(PaperSource.auto);
    printOptions.setPaperSize(PaperSize.paperLetter);
    printOptions.setNumberOfCopies(1);
    printOptions.setCollated(false);
    PrintReportOptions.PageRange printPageRange = new PrintReportOptions.PageRange(1,1);
    printOptions.addPrinterPageRange(printPageRange);
    //NOTE: If parameters or database login credentials are required, they need to be set before.
    //calling the printReport() method of the PrintOutputController.
    reportClientDoc.getPrintOutputController().printReport(printOptions);
    reportClientDoc.close();
    out.println("Successfully sent report to the printer.");
    catch(ReportSDKException ex) {     
         out.println(ex);
    Please revert in case you have any query.
    Thanks,
    Neeraj

  • How to enhance the Excel export from Crystal Reports

    Hello,
    I am new in Crystal Reports and I wonder if it is possible to enhance the Excel export from Crystal Reports with post-processing that would be applied to the Excel exported file.
    By example, is it possible to freeze the window panes, so rows and columns are frozen in place on the screen?
    Is there any possibility to obtain the file exported to excel to work with.
    Or maybe there is some ways to parametrize the Excel export from Crystal Reports?
    Any suggestions are welcomed.

    If you are using Crystal Reports 2008 you can use the Report Application SDK that is now available.
    It has a object called PrintOutputController that has an export method that allows you to get access to the exported file before you send it to the user.
    Check the Developer library and the samples for details.
    <a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/robhorne</a>

  • How to open .dbf Files (xBase) in Crystal Report V14?

    Hey,
    I try to open a .DBF File (XBASE) with SAP Crystal Report V14. As result an error message appears: "Datenbank-Connector-Fehler: " followed by a lot of chinese signs. What can I do? Opening the same File with Crystal Report V10 worked fine. --> File Attached
    Thanks for your help,
    Harry

    Hey,
    thanks for your fast response.
    I don't know which driver it's using. I just try to open it the same type as in the V10.
    If I open the .dbf file through the 'database expert' dialogue - "database file" this error appears:
    to translate it for you to englisch, there's written: Error during opening the database information. Details: No database connector is specified.
    Regards,
    Harry

  • How to connect to a Unix from Crystal Reports running on windows?

    <p>Any idea on how to connect from windows Crystal Reports X1 client to a Unix box
    file directoriesu2026<br>
    <br>
    Any suggestions would be much appreciatedu2026<br>
     </p>
    Edited by: DarkNight on Nov 13, 2009 10:42 AM

    Hi Darknight,
    What is it you want to find once you are connected? Since you posted this in the Database Connectivity forum I assume you want to connect to some DB or flat file on that server? If it's a DB then use the client to connect from windows. If it's a flat file then you should be able to use whatever connection utility you use to see the file system from windows. I don't know Unix so not sure but need more details.
    Thank you
    Don

  • How to open a JClient Form from another JClient Form in different project?

    Sir,
    In my application, there are two model projects Ma and Mb, and two view projects Va and Vb. There two forms Fa and Fb in Va and Vb respectively.
    Now I like to open form Fb within form Fa. How can I do that?
    Please give me some code so that I can fully understand. Thanks a lot.
    Regards
    Stephen

    Here is how I got it working
    1. open the projects and make sure the Dependencies are checked for the other project
    2. open the JClient client project that contains the calling form
    3. select the databinding.cpx file and you see that one datacontrol is used
    4. To add the other datacontrol (the other BC project) select an attribute from it in the data control palette and drop it to the calling JClient panel.
    5. Delete the create item because all that we care for is to get the the second data control registered in the project's cpx file
    6. Open the databinding.cpx file of the second (the called JClient project) and copy everything between the <containee> elements into the clipboard. Note that you can have one or more of them
    For my example, the databinding.cpx content of the second JClient project contained the following binding reference
    <Containee
    id="FormUIModel"
    ObjectType="BindingContainerReference"
    FullName="mypackage3.FormUIModel" >
    </Containee>
    7. Open the databinding.cpx file of the calling project in a text editor and paste the content of the clipboard to it. Save the file.
    8. Add the following code to a button that calls the JClient form in the other project (in my example the called form has a name of "Form" and is in a packe mypackage3 that I imported
    Form frm = new Form();
    frm.setBindingContext(panelBinding.getBindingContext());
    frm.setVisible(true);
    The reason you have to do all this is because the binding context is passed from one form to the other, which means that its databinding.cpx file need to contain all the binding information.
    You could make your life a lot simpler if you don't use two model projects. But this is your design decision and i can only tell you how to get it working.
    Frank

  • How to setup a JNDI connection from Crystal report 12 (2008) ?

    I've CR 12 (2008)
    I've a report actually bind to datasource via DSN to a sql server.
    Now we need to migrate this connection to JDBC.
    So i downloaded microsft sql driver for jdbc and copied as
    C:\Program Files (x86)\Business Objects\Common\4.0\java/lib/external/sqljdbc4.jar
    I edited CRConfig.xml. adding this full path and file name at <Classpath>
    The parameters i entered are:
    URL: jdbc:sqlserver://10.1.2.40:1433;DatabaseName=CPR;username=selyon;password=......
    class name: com.microsoft.sqlserver.jdbc.SQLServerDriver
    in the second page i entere my usernmae, my password and the db name,
    but when click on 'finish' CR tell me 'unable to fine JNDI driver'.
    What's the problem now

    Sorry, but I'm not on a home pc, I'm working on a virtualized pc with a long chain of permissions ... so I cannot simply download and run an utility...
    Instead... I think (I WAS thinking) someone from SAP can tell me this info ... Probably I'll buy a paid assistance ticket... But really it's a strange thing that a simply connection from a (so) paid software need a so difficult problem solving routine..
    I edited my environment variales: JAVA, PATH; CLASSPATH; JAVA_DIR, and a long list of others ... to ALL point to ALL of directory containing used jars...
    .. I asked my SysAdmin to edit CrConfig.xml and it's done ... classpath are rights, jdbc infos are also ok, ...
    .. but none ...

  • How to get actual error from Crystal Report

    We are using Crystal report in web service.
    We faced some problem due to crystal report unexpected error.
    Refer the below error message.
    Xception E NSF NSFZ1100 20100608 145511565 GPRAB0 : GPRZ10 GUEC0001 [1] AbstractService Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
    Xception E NSF NSFZ1100 20100608 145511972 GPRAB0 : GPRZ10 GUEC0001 [1] AbstractService at System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, Boolean showHelp)
    at System.Windows.Forms.MessageBox.Show(String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon)
    at CrystalDecisions.Windows.Forms.CrystalReportViewer.HandleExceptionEvent(Object eventSource, Exception e, Boolean suppressMessage)
    at CrystalDecisions.Windows.Forms.CrystalReportViewer.HandleExceptionEvent(Object eventSource, Exception e)
    at CrystalDecisions.Windows.Forms.ReportDocumentBase.GetLastPageNumber()
    at CrystalDecisions.Windows.Forms.ReportDocumentBase.GetLastPage()
    at CrystalDecisions.Windows.Forms.DocumentControl.ShowLastPage()
    at CrystalDecisions.Windows.Forms.PageView.ShowLastPage()
    at Biz.Nissan.Cats.CORE.REPORT.LibCrystalReport.TotalPageCount(ReportDocument Rpt)
    at Biz.Nissan.Cats.CORE.REPORT.LibCrystalReport.Print(BaseReport RptDefinition)
    at Biz.Nissan.Cats.CORE.REPORT.MCTLIST260Print.Print(IFData ifData)
    at Biz.Nissan.W3.CATS.BC.Service.DistributeService.ExecuteMpp()
    How we get the actual error from crystal report?
    Thanks in Advance

    Same as
    crystal report unexpected error in Web service (IIS)
    Closing this thread.
    Ludek

  • How to open a JSP page from a form ??? plz help

    hi ..
    i want to know how to open a jsp page from a oracle apps form using a button .
    the requirement is that whenever we click on the button created on the form, it opens a jsp page.
    plz help me ..its urgent !! :-(

    In portlet project, to navigate between pages, you should not use the URL property to link to a page. Instead, portlets use navigation via action handling. You use the Page Navigation editor to set up links to pages; that is, the navigation editor sets the action property.
    Here is an example to hyperlink ans button to open a new page:
    # From within the IDE, create a new portlet project. This action creates the project and one page, PortletPage1.jsp.
    # Create a second portlet page, called PortletPage2.jsp, for the project.
    # Drop a Hyperlink component onto the first portlet page, PortletPage1. (You can drop the Hyperlink on the page in the Design window or on the PortletPage1 node in the Outline window.) Change the Hyperlink's text property to Next Page.
    # Drop a Button component (found in the Basic section of the Palette) onto the second portlet page, PortletPage2.
    # Open the Page Navigation Editor. It displays the two pages (PortletPage1.jsp and PortletPage2.jsp) of the application.
    # Click the PortletPage1.jsp icon in the Navigation window to expand it, and then drag a connector from hyperlink1 to PortletPage2.jsp. Change the name of the connector from case1 to Page2.
    # Click the PortletPage2.jsp icon in the Navigation window to expand it, and then drag a connector from button1 to PortletPage1.jsp. Change the name of the connector from case1 to Page1.
    # Run and deploy the portlet. The browser displays PortletPage1 and you should see the Next Page hyperlink. When you click the Next Page hyperlink, the Apache Pluto Portal server displays PortletPage2. Click the Page2 button to return to PortletPage1.
    Sherry
    Creator Team

  • How to open a entity form in a new window using openEntityForm() method.

     How to open a entity form in a new window using openEntityForm() method.

    As far as I'm aware, there isn't a supported way to do this in the client-side API. You could use window.open instead
    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

  • How to open attachments in email from windows users

    How to open attachments in email from windows users.

    That would be totally dependent on what type of file has been sent. What is the windows user sending to you?

  • How do I connect from Crystal Report version XI to Oracle 10G express?

    I'm new to oracle 10G express and I'm developing an application that needs reports to preview some data from oracle tables.
    The oracle database is installed on the server and I installed the client on my machine. I need to use the crystal report 11 to report the output. Thus, I designed a crystal report that should simply read a table on oracle and though I need to be able to connect to the oracle 10G Express Edition database. I tried to create a connection from the crystal report using the Database Expert >> Create New Connection >> Oracle Server and I include the following parameters.:
    - Service: host:1521/XE
    - Username: username
    - Password: password
    Then when I tried to connect the crystal report crashes always.
    Is there any way to create a connection to the Oracle Database 10G express from Crystal Report 11?
    Please advise...

    Thank you bala,
    First, How I should start the Listener on the database server?
    Listener.ora content:
    SID_LIST_LISTENER =
    +(SID_LIST =+
    +(SID_DESC =+
    +(SID_NAME = PLSExtProc)+
    +(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)+
    +(PROGRAM = extproc)+
    +)+
    +(SID_DESC =+
    +(SID_NAME = CLRExtProc)+
    +(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)+
    +(PROGRAM = extproc)+
    +)+
    +)+
    LISTENER =
    +(DESCRIPTION_LIST =+
    +(DESCRIPTION =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = Daoud-PC)(PORT = 1521))+
    +)+
    +)+
    DEFAULT_SERVICE_LISTENER = (XE)
    How to configure the tnsnames.ora on the client side?
    tnsnames.ora content:
    XE =
    +(DESCRIPTION =+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = Daoud-PC)(PORT = 1521))+
    +(CONNECT_DATA =+
    +(SERVER = DEDICATED)+
    +(SERVICE_NAME = XE)+
    +)+
    +)+
    EXTPROC_CONNECTION_DATA =
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
    +)+
    +(CONNECT_DATA =+
    +(SID = PLSExtProc)+
    +(PRESENTATION = RO)+
    +)+
    +)+
    ORACLR_CONNECTION_DATA =
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))+
    +)+
    +(CONNECT_DATA =+
    +(SID = CLRExtProc)+
    +(PRESENTATION = RO)+
    +)+
    +)+
    Now I`m trying to initialize this on one machine (database & client) and so the crystal report will be on the same machine where the database exist; Additionally, this machine has OS Windows 7 Ultimate 64bit and include the Oracle 10g Express Database & Oracle 10g Express Client software.
    Please check the files content I included above and give me the way on how to establish a connection from the crystal report to the database where both are installed on the same machine.
    Thanks in advance...

  • How Do I create Windows Form file in VS and add the form to my VS project?

    C#, How Do I create Windows Form file in VS and add the form file to my VS project by using C# code?
    I like to create a Windows Form file into my VS Win Form project by using C#. I have the path and the file name.
    I need a Win Form with FileName.cs, FileName.Designer.cs, FileName.resx, and FileName (as you see it VS by adding a Win Form manually by using VS)
    Rune Brattas

    You cannot create a Form from code at run time. 
    For one thing, the user running your application will, almost certainly, not have  a copy of Visual Studio to hand with which to build anything.  (Not that you actually need 'Studio at all; Notepad and csc.exe are all you actually
    need), but that's another story).
    You can do this with an awful lot of pain, using the innards of the compiler from iside your own program, compiling the new Form's source code on the fly and then executing the resulting assembly within your application.  IMHO, that's a simply terrifying
    prospect especially as the code you will be compiling will be on someone else's machine and over which you will have absolutely no control.  If you're lucky, they'll spell something wrong and it won't compile.
    The "usual" way to do this sort of thing is to create additional, "plug-in" forms as library assemblies and have your program load and execute these at run-time. 
    Regards, Phill W.

  • How can i export excel 2003(Version 11) from Crystal Report 8.5

    how can i export report to excel 2003(Version 11) from Crystal Report 8.5

    We i can only see below formats
    Acrobat Format (PDF)
    Character-separated values
    Comma-separated values (CSV)
    Crystal Reports (RPT)
    Crystal Reports 7.0 (RPT)
    Data Interchange Format (DIF)
    Excel 5.0 (XLS)
    Excel 5.0 (XLS) (Extended)
    Excel 7.0 (XLS)
    Excel 7.0 (XLS) (Extended)
    Excel 8.0 (XLS)
    Excel 8.0 (XLS) (Extended)
    HTML 3.2
    HTML 4.0 (DHTML)
    Lotus 1-2-3 (WK1)
    Lotus 1-2-3 (WK3)
    Lotus 1-2-3 (WK5)
    ODBC - AddressBook
    OBDC - CRGUP
    OBDC - CROR8V36
    OBDC - CRSS
    OBDC - CRXMLV36
    ODBC - dBASE Files
    ODBC - Excel Files
    ODBC - MS Access Database
    ODBC - Visio Database Samples
    ODBC - Visual FoxPro Database
    ODBC - Visual FoxPro Tables
    OBDC - Xtreme Sample Database
    Paginated Text
    Record style (columns no spaces)
    Record style (columns with spaces)
    Report Definition
    Rich Text (Exact Format)
    Tab-separated text
    Tab-separated values
    Text
    Word for Windows document
    XML
    there is no format with "Microsoft Excel 97-2000 (XLS)"
    what should i do?

Maybe you are looking for

  • Record group in the CUSTOM.pll lib...

    Hi, According to the Developer's Guide (page 28-3) ... "You cannot use any SQL in the library. However, *you can use a record group to issue SELECT statements*, and .....". Is there any example, document showing this approach...???? Note: I use EBS 1

  • How to do batch printing of multi-page TIFF images

    I have TIFF images stored in the database as BLOB. The TIFF images can have one or multiple pages. I need to do batch printing of these images using Oracle Web Reports 6i in a 3-tier web environment. I was able to print single-page TIFF image by usin

  • Incomming messages -9 of 9 @ 0KB/s- every time I hit the get mail button

    This isn't the first time this has happened and it seems to come and go all by itself. In this case it's showing "receiving 9 of 9" but I've seen 2 of 2, 12 of 12, etc. I've tried repairing permissions, running virus software (NAV 11), and just about

  • Question about the X-Fi Elite

    Hi folks... I want to know how long the Connection cable from the back of the Creative X-Fi Elite Pro to the external Panel is. thanks

  • How obtain Error messages in iDocs ??

    I need to develop a simple alv report of iDocs activity. I am using tables edidc, edid4 and edids. But I cannot obtain the error message completely. In table EDIDS i have the fields: STATXT : message STAPA1,STAPA2,STAPA3,STAPA3: paramers for message