Customize the selection dropdown of report export

The application is using Crystal Report Viewer of Crystal Report 2008 in ASP.net environment. Can I force the export to be just PDF: either just PDF in the dropdown or the export button just exporting to PDF? Thanks

HI;
No you can't change the behaviour of the export. What you could do is have your own button to handle the exporting, and then only export to PDF.
See our samples for some ideas on this.
http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReports.NETSDKSamples
Regards,
Jonathan
Follow us on Twitter u2013 http://twitter.com/SAPCRNetSup

Similar Messages

  • How to Modify the Selection Screen in Report Painter

    Hi All,
    I am working on Report painter and writer,
    can any body helpme how to change the selection screen i.e i want add some more  select options to the exisiting roport .
    how can i  add more select options to the exisiting one
    please let me know the Procedure and provide some relevent documents .
    Thanks and Best regards.
    uma

    Hello...
    In the program ...we can find the following chunk of code..
    selection-screen:begin of block B1 with frame title text-001.
    Parameters : ....
    select-options:.....
    selection-screen:end of block b1.
    if we need to add any more user inputs we can write the code inside the existing
    selection screen....end of block .
    or create a new block ..just the block name should be different...
    if we are using select options...we need to declare the table name using the key word for the field on which we are giving select options ....
    Tables : BSIK.
    Please see the following code:
    Imagine :- we have the current selection screen..
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_BUKRS LIKE BSIK-BUKRS DEFAULT SPACE.
    SELECT-OPTIONS: S_LIFNR FOR BSIK-LIFNR.
    SELECTION-SCREEN END OF BLOCK B1.
    we need to add 2 more fields on the selection screen ..this we can do as the following
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_BUKRS LIKE BSIK-BUKRS DEFAULT SPACE.
    SELECT-OPTIONS: S_LIFNR FOR BSIK-LIFNR,
                    S_HKONT FOR BSIK-HKONT.
    PARAMETER: P_DATE LIKE BSIK-BUDAT OBLIGATORY DEFAULT
               SY-DATUM.
    SELECTION-SCREEN END OF BLOCK B1.
    OR...create a new block...
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    SELECT-OPTIONS:   S_HKONT FOR BSIK-HKONT.
    PARAMETER: P_DATE LIKE RFPDO-ALLGSTID OBLIGATORY DEFAULT
               SY-DATUM.
    SELECTION-SCREEN END OF BLOCK B2.
    there are many options available in selection screens..like creating check box,radio button etc..
    for more info press F1 help on the Selection screen in the ABAP editor
    Revert back if not clear and reward if helpful
    Regards
    Byju

  • Calling the selection screen of report with data for the selection field

    I have the selection screen with 2 fileds.
    sales order and  payment terms.
    My requirement is to update the payment terms into the ztable for the given order.
    Sometimes the payment terms will be there ie already maintained ,in that case i need to show to the user the existing payment term ,so that he can modify and save that one.If the payment term is not existing then simply i can go inside the program and update the payment term.
    What I thought of doing is , writing a report program and then after the user inputs the selection screen ie order number , I Will check in the ztable and if the payment terms is found then i will use the key word leave list processing. But i dont know how to populate the payement term in the selection screen oncegaing from the program

    Hi shiva,
    when the user enters sales order number on screen, in parameter 1,
    you want to show payment term, on selection screen itself, in parameter 2.
    We can use the event
    AT SELECTION-SCREEN.
    Eg. PO Number <----
    > User
    Below is sample code for same.
    If you enter PO Number, the system will show the corresponding user in parameter2.
    Just copy paste.
    REPORT  YAM_TEMPA09.
    PARAMETERS : EBELN LIKE EKKO-EBELN.
    PARAMETERS : ERNAM LIKE EKKO-ERNAM.
    AT SELECTION-SCREEN.
    ERNAM = ''.
    SELECT SINGLE ERNAM
    FROM EKKO
    INTO ERNAM
    WHERE EBELN = EBELN.
    regards,
    amit m.

  • How to customize the selection screen of Get Objec

    hi all,
    I'm developing a program for sap hr.
    I use the 'Get objec' to creat the selection screen.
    and I wanna limit the date selection.
    The defaut display is the 'Period'  of radio-button group.
    and I want only the single field 'Date' for input insead of a period with starting and ending dates (manuelly we need click on a button to switch to 'Date' input).
    How can I switch automatically  to the 'date' when I initilize my program?
    Thanks a lot for your help
    Yimin

    Hi,
    This is possible through program attributes.
    goto attributes, click on 'HR Report category'
    now make sure that, 'Master Data (Infotype)' is changed accordingly your requirement.
    I think it is helpfull to you.
    Regards
    Sai

  • Customize the selected answer looking and customize radio btns.

    Hi Everybody,
    I am new to Adobe Captivate, I am using Captivate 6, I am trying to make a course. On quiz part, if I have two answers for one question, I want to have a selected state effect on the question that user select (like the orange one in the Img 1 below). I tried the Show and Hide function at action panel in Quiz Properties. It didn't seem work for me. And, it looks like that I can't customize the radio buttons that comes with the quiz slides either. So, I am wondering does anyone know how to do it?
    Another thing is: how can I get rid off the Submit Button, Review Area and Auestion 1 of 2 these three elements that come in when you create a new question slide? (the circled elements on Img 2 is what I want to get rid off). When I right click the element, there isn't any options to delete it, I also tried to press the delete key on keyboard, it didn't let me delete it either.
    Thanks for the answers.
    Img 1
    Img 2

    Hello,
    Perhaps some article I wrote about customizing default Question slides could help you to solve some of your questions. They were written fro CP5/5.5 but a lot is still valid. CP6 has more possibilities (like Dynamic quiz scope, branching awareness and remediation, pretest, partial scores and penalties) but the basics of question slides (like the buttons..) are still the same:
    http://lilybiri.posterous.com/question-question-slides-in-captivate
    http://lilybiri.posterous.com/question-question-slides-part-2
    Do not get rid of the Review area, you can shrink it but do not delete it: it also severs to display the feedback message on the score slide and the warning if a question has not been answered during review.
    The Progress indicator (Question x of y) can easily be turned off in the Quiz Preferences. Submit button is necessary if you keep the two-step process (look at my blog posts).
    If you want total control over question slides, you'll have to quit using the default ones (created to make life simpler) and create your own question slides using standard objects, variables and advanced actions. Since you are posting in the Advanced Captivate users forum, I suppose you are acquainted with that possibility as well.
    Lilybiri

  • How can I call a Page Process from the Select statement for Report Page

    I'm able to call a javascript using the below:
    img src="#IMAGE_PREFIX#add2.gif" border="0" alt="Icon 4" onClick="javascript:add_connect1('||CPORT.ID||')"
    But Now,
    I'd like to accomplish (2) New things:
    1. instead of using,....... onClick="javascript:add_connect1,
    I'd like to call a Page Process, onClick=
    2. I'd like to be able to call two different processes onClick.
    a. onClick="javascript:passBack('||ID||')"
    b. onClick= <Please see my question #1 above>
    Can someone please help me with the syntax for this,
    If indeed it can even be done?
    Thanks- Gary

    Greg.
    It seems that my situation is the one you describe in you second paragraph, where you mention:
    you could then add the ID column value as a parameter to the javascript functionBut,
    I do not know how to reference the variable in my javascript nor how to use it in my on-demand process.
    If you can hellp me past this last little bump, then I think I will be able to use these skills in Sooo many different areas of my design.
    Here's what I've got so far:
    A. In the select statement I identify the javascript as:
    onClick="javascript:connect_port('<font color=blue>''||ID||''</font>')";
    B. In my javascript I have this:
    <script language="JavaScript" type="text/javascript">
    function connect_port(ID)
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=CONNECT_PORT',0);
    gReturn = get.get();
    get = null;
    </script>
    C. In my on demand function I have this:
    BEGIN
    INSERT INTO CCONNECTIONS_B
    BLDG_ID,CLST_ID,PORT_ID,STRAND_ID
    ) VALUES
    :P2004_BLDG_ID,:P2004_CLST_ID,:P2004_PORT_ID,:P2004_STRAND_ID1
    END;
    You can see that I dont know how to use the value for 'ID' in either the javascript or the On-Process function.
    If you can help me out with this one, Then I can imitate it for the rest.
    -Gary
    Edited by: garyNboston on Apr 3, 2009 6:44 AM
    Edited by: garyNboston on Apr 3, 2009 6:44 AM
    Edited by: garyNboston on Apr 3, 2009 6:45 AM
    Edited by: garyNboston on Apr 3, 2009 6:47 AM

  • The process cannot access the file during Crystal Report export

    We are exporting crystal reports into PDF using  ExportToHttpResponse (code snippet below)
          // Getting the type of the report file which has been selected by the user. (which will be REPORT CLASS type)
    Type objType = Type.GetType("WebApplication1.Reports." + ReportName);
    ReportClass SEPREport = (ReportClass)Activator.CreateInstance(objType);
    // GetTypedDataSet()returns an instance of typed data set.
    SEPREport.SetDataSource(GetTypedDataSet());
    SEPREport.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, true, ReportName );
    Now we have created these REPORTS using Basic Crystal Report 10.5, which comes bundled with Visual Studio 2008 and .Net Framework 3.0.
    Now on our machines, we have never experienced any issues.
    BUT on the DEV server (web server) which has .net Framework 3.0 and in its GAC its has CRYSTAL DLLs version 11.5 (required to create an Object of ReportClass and its related functions) ; sometimes we get the following error while exporting crystal report to pdf:
    The process cannot access the file because it is being used by another process. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Runtime.InteropServices.COMException: The process cannot access the file because it is being used by another process.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [COMException (0x80004005): The process cannot access the file because it is being used by another process.
       CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) +0
       CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +525
       CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +681
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options) +105
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportOptions options, HttpResponse response, Boolean asAttachment, String attachmentName) +163
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportFormatType formatType, HttpResponse response, Boolean asAttachment, String attachmentName) +132
       MSSB.FATools.UI.PlannerReport.CreatePDFDocument() +732
       MSSB.FATools.UI.PlannerReport.btnCreatePDF_Click(Object sender, EventArgs e) +45
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +104
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5615

    This is a cross post:
    The process cannot access the file because it is being used by another proc
    Do not cross post. See the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]
    Setting this tread as answered and locking.
    - Ludek

  • How to customize the Selection Screen of  Logical DB (PNP)?

    Hi All,
    In LDB selection screen
    PERNR field is not given in ranges and also
    Personal area and subarea are given in single selection field.
    I need to customize this for my report.
    Plz guide me reg this.
    Thx in advance.
    Albert

    -Go to se38 "Give program name " and click "Attributes" ...
    - After that click HR report Category " a pop-up will come again git report category  Here you can create the filds and can attach report category with your program .
    You`ll find more help if you search "create report category on SDN or google ...
    <b>Here you go
    http://www.atomhr.com/know_preview/hr580_Cust_sel_screen_chp1_46.htm</b>
    Hope this’ll give you idea!!
    <b>Pl... award the points.</b>
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"
    PS.
    <b>Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
    Spread the wor(l)d!</b>

  • Determining the select-options of reports

    Gurus, is there a function module which will return a list of parameters and/or selct-options for a given program?
    I wish to write a generic program which will control the submission of other abaps and would like an easy way to determine what the parameters are of the abaps it's going to submit.

    hi ,
    look fm RS_VARIANT_CONTENTS
    or
    RS_ISOLATE_1_SELSCREEN
    or look in functin group SVAR
    A.
    Message was edited by: Andreas Mann

  • How to mofidy the selection text for a report

    Dears,
    Do you know how to modify a selection text in the selection screen of a standard report, such as changing "Storage Location" in the selection screen of report MB5B to "storage Loc"?
    one of a way to realize it is to modify the text of relevant data element.
    except modifying the data element directly, It seems that use SE63 could do it, but I forgot how to use it.
    Thanks all for your reply.
    Zhongkai

    Hi Liu,
    Check this link for translations thru SE63:
    http://help.sap.com/saphelp_sm310/helpdata/en/b4/54601d77f38e429ffad9e3e11c1b25/content.htm
    Hope this helps you.
    Regards,
    Chandra Sekhar

  • Displaying Variables values with Text also in the selection screen of repor

    hai
    I have one InfoObject ZPLANT .When i try to excute the report then im getting only the Values of ZPLANT(not Text of those values) .Like below
    ZPLANT :-
    101 -
    (im getting like this)
    101 London Plant ( i want like this ,when i try to excute the report).
    Please tell me how to do .
    rizwan

    Yes kamaljeet ,
    When we press F4 , then we will gwt some values .
    I want those values with description also ..
    Pls tell me how can i get those F4 values with text in the selection screen of report .
    i ll assing the points
    rizwan

  • Printing Selection Variant in Report Painter

    Hi, I am using ECC 5.  There is a requirement for printing the selection variant in Report Painter (GR55) Reports.  Presently there is a provision to print selection fields and values.
    Is any way, I can print a Selection Variant and Name in Report Painter?  I understood that the information is stored in Table VARIT.  This table contains Lang., Report Name, Variant and Short text.  I do not know how to get this info in Report screen.
    Can any one help?
    Advance Thanks
    Venkat

    Hi,Thanks for your reply.  Let me explain.
    When using Transaction Code GR55, enter Report Group, Execute.  This will open a Report Paramenter screen.  In this screen, if you select Goto --> Variant --> Get OR Get Variant icon, this will show the available selection variants.  Select any one of them and run report.
    In report it will pick-up the each selection paramater field and value NOT a variant.
    Is any way to get the variant also printed in report?
    Hope this will is clear.
    Thanks
    Venkat

  • How to get a check box on the selection screen

    Hi all
    can any body tell me how to get a check box on the selection screen

    parameter: pa_check   as checkbox.
    To define the input field of a parameter as a checkbox, you use the following syntax:
    PARAMETERS <p> ...... AS CHECKBOX ......
    Parameter <p> is created with type C and length 1. In this case, you may not use the additions TYPE and LIKE. Valid values for <p> are ' ' and 'X'. These values are assigned to the parameter when the user clicks the checkbox on the selection screen.
    If you use the TYPE addition to refer to a data type in the ABAP Dictionary of type CHAR and length 1 for which 'X' and ' ' are defined as valid values in the domain, the parameter automatically appears as a checkbox on the selection screen.
    REPORT DEMO.
    PARAMETERS: A AS CHECKBOX,
    B AS CHECKBOX DEFAULT 'X'.

  • Prob with Push Buttons in the selection screen

    Hi All,
    1) I have 6 push buttons in the selection screen(Normal Report), 3 in a first row(P11, P12, P13) and 3 in the second row(P21, P22, P23). If I press one push button(for ex P11) the other two Push buttons(P12 P13) should grey out(Inactive mode). If I press P22, P21 & P23 shoul grey out.
    2) I need color change for the Inactive push buttons.
    Thanks
    Kris

    Can you please post your selection screen definition? I don't understand what you want to achieve by greying out the other pushbuttons when one is pressed.
    Does that mean pushing one button will do nothing except greying out the buttons?
    Typically when you push a button, you want to continue to execute the required processing for that button not just grey out other pushbuttons and stay in the selection screen.
    Anyway, you can achieve that using the following logic. I am not sure how and if you can achieve the color change.
    TABLES: sscrfields.
    DATA: v_button_pushed(5).
    SELECTION-SCREEN PUSHBUTTON /1(10) p11 USER-COMMAND push1.
    SELECTION-SCREEN PUSHBUTTON 12(10) p12 USER-COMMAND push2.
    SELECTION-SCREEN PUSHBUTTON 23(10) p13 USER-COMMAND push3.
    SELECTION-SCREEN PUSHBUTTON /1(10) p21 USER-COMMAND push4.
    SELECTION-SCREEN PUSHBUTTON 12(10) p22 USER-COMMAND push5.
    SELECTION-SCREEN PUSHBUTTON 23(10) p23 USER-COMMAND push6.
    INITIALIZATION.
      p11 = 'Push11'.
      p12 = 'Push12'.
      p13 = 'Push13'.
      p21 = 'Push21'.
      p22 = 'Push22'.
      p23 = 'Push23'.
    AT SELECTION-SCREEN OUTPUT.
      CASE v_button_pushed.
        WHEN 'PUSH1'.
          LOOP AT SCREEN.
            CHECK screen-name <> 'P11'.
            screen-input = 0.
            MODIFY SCREEN.
          ENDLOOP.
        WHEN 'PUSH2'.
        WHEN 'PUSH3'.
        WHEN 'PUSH4'.
        WHEN 'PUSH5'.
        WHEN 'PUSH6'.
        WHEN OTHERS.
      ENDCASE.
    AT SELECTION-SCREEN.
      v_button_pushed = sscrfields-ucomm.

  • Purpose of selection view in report categories

    Hi Friends,
    Can anyone tell me the Purpose of selection view in report categories.
    Why we need to specify the selection view in report categories and what its impact in reports.
    Why do we need to create a custom selection views?
    Thanks in Advance.
    Regards,
    Prabhu

    This is according to the Business requirement
    Bye
    Reward

Maybe you are looking for

  • How to convert Crystal 8.5 Reports that use queries to Crystal XI reports

    We were using the following: Crystal Reports version 8.5 Crystal SQL Designer 8.0.0.0 CRW32 8.0.0.8 We have now migrated to Crystal XI. Most of our reports use queries created in the Crystal SQL Designer.  This is the message we receive when I open a

  • Search in binary content

    I want to search for word in a binary content. For example I have a type "News" which has the proprieties : title, description ( binary type - mime - text/html). I want to find all news containing in description a word given - example : "and"). I hav

  • FAGLB03 Non leading ledger

    Experts We are posting the journals in period 16 / 2009 with ledger ZL   - Non Leading ledger We are able to view the posted journal via transaction code FB03 However, when we go to transaction code FAGLB03 we can see the balance on period 16 but whe

  • I cal time zone support

    I use time zone support within ical, however, I don't travel to one of the time zones anymore. Now when I change the time zone the one I don't use still shows up in the drop down list. Is there a way to delete this time zone so the ones I do use are

  • SCEP runs unscheduled full scans daily on some PC's

    In Configuration Manager I've set daily quick scans, and once every thursday a full scan. This works perfectly for almost every client, except a few. They display the correct information in "Settings" (below), but instead the run full scans every day