While Printing using Print Button on Crysal Report Loses focus.

Hi all,
I am using CR XI along with VS2003 for developing my application.
My application uses a Treeview to list all the available reports, once user select one of the report. I am using another dll, which contain all the rpt files as Embedded Resource, for showing the report in Crystal report viewer.
Once report get loaded, I am using Print Button from Crystal report viewer to print the report.
report get printed properly..
However a strange behavior occurring, Form with Crystal report viewer control placed loses focus and immediate below window coming into focus (some other opened window get activated and bring to front and hiding my application).
Any suggestion would be appreciated.
Thank you
Riju K K

Hi Brian,
Thanks for you are reply.
I think I am not creating a separate process,
From my application, I am creating an instance of form (which is in another DLL) which is hosting Crystal report viewer.
If click "Print" button on the Crystal report viewer, I am getting a Printer selection form.
If I cancel from there ,my Crystal report viewer form get focus back.
If select a printer and click "OK". my Crystal report viewer form lost focus and some of the other window opened (word, ie, etc) before get focus.
My assumption is Crystal Report viewer's "Print" button may be using a separate thread for Printing.
that may creating this focus issue.
what you think?

Similar Messages

  • How to hide the Print and Export button in analytics report or tasks pane

    Hi Experts,
    In BIEE 11g,
    How to hide the Print and Export button in analytics report or tasks pane ?
    For example:
    In console,I have created one userA which is belong to BIConsumer GROUP , when I make use of the highest user 'weblogic' to create one simple report, then the userA will login the analytivs to view this report (not dashboard), it will show the print and export as below.So customers do not want to give him the privilege for printing and exporting.
    In addtion, go to catalog->tasks(left corner), it will also show the print and export button. So how to hide or not access these button?
    Note: Maybe it can use the policy for consumer role for implementing this requirement, but I do not know how to modify the policy. Are you facing the problem? Thanks.

    Hi,
    1. Create seperate folder for Reports & Dashobard.
    2. For BI_Consumer (userA) set the catalog permission to view Dashboard Folder only and remove permission on the Report Folder (you can give traverse permission but don't give Open permision).
    3. By this user won't be able to open or run any reports in that folder and the only way he can see the reports is through Dashboard and on dashboard the export and print buttone can be removed very easily.
    Mark helpful if it helps.
    Regards,
    Kashi
    Edited by: K N Yadav on 24 May, 2013 1:51 AM

  • Printing using printer on Windows XP machine

    Hi there,
    Am having some problems setting up my macbook to print using the Epson DX9400f attached to my mum's pc (running Windows XP).
    I have the printer drivers installed on here, and when we plugged the printer into my macbook it worked fine.
    I've tried using SAMBA in the advanced pane, but whenever I try and print it either pauses the printer, or comes up with a CIFS host error message (couldn't find many solutions to this problem).
    I'm not sure if I'm getting the SAMBA address wrong - most of the advice seems to need the windows username and password, but mum's pc doesn't have a password (could that bbe a problem?).
    I know the IP address of the computer, but the printer doesn't have one as it's connected via USB to the pc.
    If I try adding the printer using the Windows button, the workgroup appears but nothing else (any solutions?), so that's not much help.
    I can file share with the pc no problems, but this printing is doing my head in and it would be useful to have as I have a masters to print off soon, and don't want to keep transferring things to her machine in order to print.
    Any suggestions?
    Apologies for the mass of information,
    Cheers.

    Hello Cate_B and welcome to Apple Discussions.
    The CIFS host error message is often a result of the Mac not being able to resolve the Windows computer name. This would be confirmed by the fact that when you selected Add Printer > Windows, your mums computer did not appear after selecting the workgroup. A solution could be to check what workgroup name is set in her Windows and ensure your Mac is set to the same workgroup name (set via the WINS section of the Advanced network settings.
    For an easier fix you could try the SAMBA method again, but this time I suggest you try the following syntax.
    smb://IP Address of Mums Computer/Sharename
    Some other things to check...
    1. Make sure the printer is shared by mums computer and ensure a guest can access it.
    2. Ensure the share name is short (about 8 characters) and contains no spaces.
    3. Check that your Epson driver will work when shared by a PC. Some Mac printer drivers will only work when connected directly to the Mac via USB (this is the case with a number of Canon drivers). In this case, you need to use an alternate driver based on CUPS, such as the Gutenprint driver set. These will work across a network and a cross-platform share.
    Hope this helps you...
    Pahu

  • Wireless network printer using print server

    I have a USB HP LaserJet 3015 printer connected to a print server, Level One FPS-3003 and then connected using RJ-45 LAN cable to my wired/wireless LAN switch router. It works correctly with all my Windows XP and Vista pcs on the LAN wirely or wirelessly.
    I recently bought MBA and configured it to connect the printer wirelessly. Before that, I connected the printer directly onto the MBA and it works like a charm. Once I complete the setup and I tried to print a page from Word Mac 2008. It failed. The print job showed that the Printer Paused and job status was stopped. I tried to click the button of Resume Printer and the printer became Printer Ready but the print job status remained Stopped. I clicked Resume button (Resume printing of selected jobs) and the printer changed to Printer Paused.
    It appears to me that the print server does not like Leopard. I look at the print server menu and the OS requirements are stated Windows 98 SE/ME/2000/XP/2003 and HP-UX, Unix, Linux and RFC-1179 LPD System. Is there any workaround to make it work with Leopard. Thanks!!

    Usually you'll find all the info you need listed under unix or linux (print server manual). Oh, but I see the manual is for Windows only.
    The easiest printer setup will be to plug the printer into USB port 1 and use IP Printing > HP Jetdirect protocol. No Queue name. Refer to manual page 50 - TCP/IP port 9100 equals HP Jetdirect protocol.
    For scanning, you can try the TWAIN-SANE drivers:
    http://www.ellert.se/twain-sane/

  • Using Back Button after Display Report

    Hi,
    Need an advice, i need to customize the standard BACK button after report had been displayed, trying to use AT USER-COMMAND, but still not avail..
    anyone can come with example will help me a lot.
    Thanks

    Hi badz lee,
    Just change the function code 'BACK' to 'ZBACK' in your custom GUI staus.
    Then write your own logic for the custmer needs.
    Hope this code helps.
    *& Report  ZVK_TEST
    REPORT  zvk_test.
    TABLES:ekko."for select option only
    SELECT-OPTIONS:s_ebeln FOR ekko-ebeln.
    DATA:lt_ekko TYPE TABLE OF ekko,
         lw_ekko TYPE ekko.
    START-OF-SELECTION.
      SET PF-STATUS 'STLI'."copy status STLI of program SAPMSSY0.
      SET TITLEBAR 'TITLE'.
      SELECT * INTO TABLE lt_ekko
        FROM ekko
        WHERE ebeln IN s_ebeln.
      LOOP AT lt_ekko INTO lw_ekko.
        WRITE:/ lw_ekko-ebeln,
                lw_ekko-bukrs,
                lw_ekko-bstyp,
                lw_ekko-bsart.
      ENDLOOP.
    END-OF-SELECTION.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'ZBACK'.
          PERFORM back_function."Your logic
        WHEN OTHERS.
      ENDCASE.
    *&      Form  BACK_FUNCTION
    FORM back_function .
      LEAVE PROGRAM.
    ENDFORM.                    " BACK_FUNCTION

  • Could a Color LaserJet Printer use / print to Photo Paper?

    Hello HP Support,      Well as you notice I have quite a few questions, since store representative say yes to everything and barely even know the answer. My Question here is I have alot i mean alot close to 1,000 sheets of HP Photo paper from a few year and decade back wasa good sale and just came across them recently hidden back in my HP Demo Day i presented. ** Anyways would like to know if i can use this HP Photo paper in my m276nw? Also do HP Color LaserJet printer normally handle and work with HP Media products so, if i buy another printer in which I'm searching around for another AIO would hope to do everything.  I have Premium, Matte, Glossy & Glossy Brochure Photo paper - HP Makes many types of Photo paper could i use these?  Since it does not state Laser or Inkjet on the box. Of course I'll reach out incase i have another question Thanks www.iOSGenius.com

    Opps -  So I find many Iron-on Transfer Media but states Inkjet will this work for Color LaserJet ? or is there a media for Laser products? Thanks Again, www.iOSGenius.com

  • How to add warning message while using 'print' function in Adobe LiveCycle Designer

    I am trying to make pdf document for my company which requires adding a warning message while anyone use 'print' function from the page...
    Does anyone know how to add warning message on LiveCycle Designer
    Also my supervisor mentioned something using 'nag' if that rings any bell

    No you shoudl never go into the XML source unless uinstricted to do so.
    You can open the script editor (under the window menu). It will appear above the drawing area but below the toolbars. You can resize it if there is not enough room. When you click on an object in the form you can choose an event to script against in the Show dropdown. In your case you will want to choose the prePrint event. A line will show up that indicates the object that is associated with the script as well as the event and other information. Add your script below this line. Once that is done you are finished and your form is ready for testing.
    Paul

  • EBS R12 Report Printing using PASTA

    Hi Friends,
    Can you help me with my printing set-up please. I am priting a standard reports but the
    printing is not centered. It has big margin on the left (like 3 inches ) and the right side columns
    overshooted.
    How do I adjust my printing to move for right to left by scale? or How do i choose paper size?
    Or how do I print macro like a font 6 instead of normal 12?
    Thanks a lot

    Duplicate Post (Check your other thread):
    EBS R12 Report Printing using PASTA
    Re: EBS R12 Report Printing using PASTA

  • How to print BARCODE in DATAMAX Printer using SAP Script?

    Hi,
    Can anybody guide me how to print BARCODE using DATAMAX Printer?
    I need to develop a SAP Script, through which i need to print the BARCODE.
    Pls. let me know the parameters for Script and how to print using print program.....
    Regards,
    Hemant

    make one form in sapscript with one main window: like this
    /E           ETIKETT
    /*           Format = '57x19', Printer = 'Bradyprinter Model 1344'
    /           ~f350
    /           ~n
    /           ~M0500
    /           ~O0220
    /           ~SG
    /           ~s
    /           ~c0000
    /           ~e
    /           ^D
    /           ~L
    /           D11
    /           H20
    /           PC
    /           pC
    /           SC
    /           A2
    /           1911A1200400005&knmt-kdmat&
    /           1911A0800300005&knmt-postx&
    /           1911A0800100005VS-Nr   :         &KNMT-MATNR&
    /           1911A0800000005Datum   :         &date&
    /           Q0001
    /           E
    in this script   &mseg-matnr&    and    &mseg-charg&    are 2D Barcodes
    /E           ETIKETT
    /*           Format = '57x19', Printer = 'Bradyprinter Model 1344'
    /           ~f350
    /           ~n
    /           ~M0500
    /           ~O0220
    /           ~SG
    /           ~s
    /           ~c0000
    /           ~e
    /           ^D
    /           ~L
    /           D11
    /           H20
    /           PC
    /           pC
    /           SC
    /           A2
    /           1Wc99000001400082000012012&mseg-matnr&
    /           ySPM
    /           1911A1000380055&mseg-matnr&
    /           1Wc99000001501702000012012&mseg-charg&
    /           1911A0800260055&mkpf-budat&
    /           1911A0800140055&mseg-mblnr&
    /           1911A0600020008&makt-maktx&
    /           Q0001
    /           E
    then you need your own printprogram and everything is fine. with open_form ;  start_form ; write_form;  end_form
    you can communicate direct with the Datamax Programming Language  from SAPScript to the Barcode printer.
    i also have the datamax programmers manual as pdf if you want i could send it to you. let me know by PM.
    also have look into HW 490295  the bartender Solution works fine for me to create the SO10 text's
    greetz
    tony
    Edited by: Tony Wienhold on Jul 17, 2009 4:37 PM

  • Printing using direct IP address of printer

    Printing using direct IP address of printer
    Is there a way in Adobe Livecycle where we can directly print using printer’s IP address by passing print server?
    If so what settings we have to do i.e.
    which entries to be added on TrustStore,
    which protocol to be use,
    which format we have to use in PrintURI?
    I have tried,
    Protocol: DirectIP
    PrinterURI: \\<Print server's name>\<Printer's IP address>
                     \\<Print server's IP address>\<Printer's IP address>
                     \\<Print server's name>\<Printer's IP address>:9100
                     \\<Print server's IP address>\<Printer's IP address>:9100
                     \\<Printer's IP address>:9100
                     \\<Printer's IP address>
    I have tried all these PrinterURI and I keep getting belwo error,
    Caused by: java.net.UnknownHostException
    Thanks

    Hello Casc-ade,
    Welcome to the HP Forums.
    I see that you are having some connectivity issues over a wireless connection.
    So I can better assist you, please respond with which Operating System you are running on your Mac as well as the Printer Model number.
    Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    How Do I Find My Model Number?
    Write me back when you have time and I will be happy to help.
    Cheers,  
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • Trouble Using Printer

    I have a Intel based Macbook, and i have a Lexmark x7350 printer. But when i try to use it i dont have a driver and lexmark doesnt have a driver for macs, and i tried to use other drivers but they dont work, but my computer pics up that it is a lexmark 7300 series, any help would be apreciated.

    Michael Bernstein1 wrote:
    I have downloaded the Gutenprint drivers and installed them. I added the printer using "Print & Fax" and clicked on Windows to locate the printer. I can print to the printer now. However, the print quality is still lacking. I have tried to adjust the print settings, but can't get it right. I want to print text docs, but also photos from the Mac through the network outlined above.
    In general, I recommend that you use a higher quality setting such as "High" rather than "Standard" for most Epson printers. For photos, I would suggest that you set "Color Precision" to "Best". Also be sure to set the "Image Type" to the proper setting for the job you are printing. There are options for Text, Text and Graphics, Photograph, etc. You may also find that setting the Composite Gamma to 0.8 will improve the output.
    Also, my "borderless" photos (4x6) still come out with a very thin border...
    Did you set the printer feature to print borderless? What about the setting to Expand to maximum print area rather than Shrink to fit the page?
    Any other tips?
    There are almost too many settings with the Gutenprint drivers. If you are often switching between text and photograph printing, you may want to create Presets for the different settings.
    Matt

  • Radio button in alv report

    Hi experts,
    I am using radio buttons in alv report by using screen painter but error occurs in alv that screen doesn't exist in module.
    plz help me.

    Hi Ankita,
    check this program.
    *& Report ZALVGRID_WITH_RADIOBUTTONS
    *& This program shows how to realize radiobuttons in ALV grid lists
    *& using event HOTSPOT_CLICK.
    *& Screen 100:
    *& - Flow logic
    *& PROCESS BEFORE OUTPUT.
    *& MODULE PBO.
    *& PROCESS AFTER INPUT.
    *& MODULE PAI.
    *& - Screen elements: none
    *& - ok-code field -> gd_okcode
    *& GUI Status MAIN100:
    *& - F3 = 'BACK', Shift+F3 = 'EXIT', F12 = 'CANC'
    PROGRAM zalvgrid_with_radiobuttons.
    TYPE-POOLS: abap, icon. " INCLUDE . for releases < 6.20
    TYPES: BEGIN OF ty_s_sflight.
    INCLUDE TYPE sflight.
    TYPES: button1 TYPE iconname.
    TYPES: button2 TYPE iconname.
    TYPES: button3 TYPE iconname.
    TYPES: button4 TYPE iconname.
    TYPES: END OF ty_s_sflight.
    DATA:
    gt_sflight TYPE STANDARD TABLE OF ty_s_sflight,
    gs_layout TYPE lvc_s_layo,
    gt_fcat TYPE lvc_t_fcat.
    DATA:
    gd_okcode TYPE ui_func,
    go_docking TYPE REF TO cl_gui_docking_container,
    go_grid TYPE REF TO cl_gui_alv_grid.
    CLASS lcl_eventhandler DEFINITION
    CLASS lcl_eventhandler DEFINITION.
    PUBLIC SECTION.
    CLASS-METHODS:
    handle_hotspot_click FOR EVENT hotspot_click OF cl_gui_alv_grid
    IMPORTING
    e_row_id
    e_column_id
    es_row_no
    sender.
    ENDCLASS. "lcl_eventhandler DEFINITION
    CLASS lcl_eventhandler IMPLEMENTATION
    CLASS lcl_eventhandler IMPLEMENTATION.
    METHOD handle_hotspot_click.
    define local data
    FIELD-SYMBOLS:
    IS ASSIGNED ).
    Set all radio buttons "unselected"
    IS ASSIGNED ).
    Set selected radio button "selected".
    = icon_wd_radio_button.
    ENDIF.
    Force PAI followed by refresh of table display in PBO
    CALL METHOD cl_gui_cfw=>set_new_ok_code
    EXPORTING
    new_code = 'REFRESH'
    IMPORTING
    RC =
    ENDMETHOD. "handle_hotspot_click
    ENDCLASS. "lcl_eventhandler IMPLEMENTATION
    MAIN *
    START-OF-SELECTION.
    PERFORM select_data.
    PERFORM init_controls.
    PERFORM build_fieldcatalog.
    PERFORM set_layout.
    CALL METHOD go_grid->set_table_for_first_display
    EXPORTING
    i_structure_name = 'SFLIGHT'
    is_layout = gs_layout
    CHANGING
    it_fieldcatalog = gt_fcat
    it_outtab = gt_sflight.
    Link docking container to dynpro
    CALL METHOD go_docking->link
    EXPORTING
    repid = syst-repid
    dynnr = '0100'
    CONTAINER =
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    lifetime_dynpro_dynpro_link = 3
    OTHERS = 4.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL SCREEN 100.
    END-OF-SELECTION.
    MODULE PBO OUTPUT *
    MODULE pbo OUTPUT.
    SET PF-STATUS 'MAIN100'.
    SET TITLEBAR 'MAIN100'.
    ENDMODULE. "PBO OUTPUT
    MODULE PAI INPUT *
    MODULE pai INPUT.
    Leave report
    CASE gd_okcode.
    WHEN 'BACK' OR
    'EXIT' OR
    'CANC'.
    SET SCREEN 0. LEAVE SCREEN.
    Refresh table display
    WHEN 'REFRESH'.
    PERFORM refresh_display.
    WHEN OTHERS.
    do nothing
    ENDCASE.
    CLEAR gd_okcode.
    ENDMODULE. "PAI INPUT
    *& Form BUILD_FIELDCATALOG
    text
    --> p1 text
    <-- p2 text
    FORM build_fieldcatalog .
    ALV List with Radio Buttons
    SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
    © 2007 SAP AG 7
    define local data
    DATA:
    ls_fcat TYPE lvc_s_fcat.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
    I_BUFFER_ACTIVE =
    i_structure_name = 'ICON'
    I_CLIENT_NEVER_DISPLAY = 'X'
    I_BYPASSING_BUFFER =
    I_INTERNAL_TABNAME =
    CHANGING
    ct_fieldcat = gt_fcat
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    DELETE gt_fcat WHERE ( fieldname <> 'NAME' ).
    NOTE: field ICON-NAME has data element ICONNAME.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
    I_BUFFER_ACTIVE =
    i_structure_name = 'SFLIGHT'
    I_CLIENT_NEVER_DISPLAY = 'X'
    I_BYPASSING_BUFFER =
    I_INTERNAL_TABNAME =
    CHANGING
    ct_fieldcat = gt_fcat
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE gt_fcat INTO ls_fcat
    WITH KEY fieldname = 'NAME'.
    IF ( syst-subrc = 0 ).
    DELETE gt_fcat INDEX syst-tabix.
    ENDIF.
    ls_fcat-fieldname = 'BUTTON4'.
    ls_fcat-coltext = ls_fcat-fieldname.
    ls_fcat-icon = 'X'.
    ls_fcat-hotspot = 'X'.
    INSERT ls_fcat INTO gt_fcat INDEX 5.
    ls_fcat-fieldname = 'BUTTON3'.
    ls_fcat-coltext = ls_fcat-fieldname.
    INSERT ls_fcat INTO gt_fcat INDEX 5.
    ls_fcat-fieldname = 'BUTTON2'.
    ls_fcat-coltext = ls_fcat-fieldname.
    INSERT ls_fcat INTO gt_fcat INDEX 5.
    ls_fcat-fieldname = 'BUTTON1'.
    ls_fcat-coltext = ls_fcat-fieldname.
    INSERT ls_fcat INTO gt_fcat INDEX 5.
    Renumbering of the columns
    LOOP AT gt_fcat INTO ls_fcat.
    ls_fcat-col_pos = syst-tabix.
    MODIFY gt_fcat FROM ls_fcat INDEX syst-tabix.
    ENDLOOP.
    ENDFORM. " BUILD_FIELDCATALOG
    *& Form SELECT_DATA
    text
    --> p1 text
    <-- p2 text
    FORM select_data .
    define local data
    DATA:
    ls_sflight TYPE ty_s_sflight.
    SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE gt_sflight.
    ls_sflight-button1 = icon_wd_radio_button. " selected radiobutton
    ls_sflight-button2 = icon_wd_radio_button_empty.
    ls_sflight-button3 = icon_wd_radio_button_empty.
    ls_sflight-button4 = icon_wd_radio_button_empty.
    Alternatively: create icons using function module 'ICON_CREATE'
    on SAP releases where these icons are not available.
    MODIFY gt_sflight FROM ls_sflight
    TRANSPORTING button1 button2 button3 button4
    WHERE ( carrid IS NOT INITIAL ).
    ENDFORM. " SELECT_DATA
    *& Form INIT_CONTROLS
    text
    --> p1 text
    <-- p2 text
    FORM init_controls .
    CHECK ( go_docking IS NOT BOUND ).
    ALV List with Radio Buttons
    SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
    © 2007 SAP AG 9
    Create docking container
    CREATE OBJECT go_docking
    EXPORTING
    parent = cl_gui_container=>screen0
    REPID =
    DYNNR =
    SIDE = DOCK_AT_LEFT
    EXTENSION = 50
    STYLE =
    LIFETIME = lifetime_default
    CAPTION =
    METRIC = 0
    ratio = 90
    NO_AUTODEF_PROGID_DYNNR =
    NAME =
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    OTHERS = 6.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Size of container = full screen size
    CALL METHOD go_docking->set_extension
    EXPORTING
    extension = 99999
    EXCEPTIONS
    cntl_error = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Create ALV grid instance
    CREATE OBJECT go_grid
    EXPORTING
    I_SHELLSTYLE = 0
    I_LIFETIME =
    i_parent = go_docking
    I_APPL_EVENTS = space
    I_PARENTDBG =
    I_APPLOGPARENT =
    I_GRAPHICSPARENT =
    I_NAME =
    I_FCAT_COMPLETE = SPACE
    EXCEPTIONS
    error_cntl_create = 1
    error_cntl_init = 2
    error_cntl_link = 3
    error_dp_create = 4
    OTHERS = 5.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Set event handler for event HOTSPOT_CLICK
    SET HANDLER:
    lcl_eventhandler=>handle_hotspot_click FOR go_grid.
    ENDFORM. " INIT_CONTROLS
    *& Form REFRESH_DISPLAY
    Refresh table display after switching the radiobuttons
    --> p1 text
    <-- p2 text
    FORM refresh_display .
    define local data
    DATA:
    ls_stable TYPE lvc_s_stbl.
    ls_stable-row = abap_true.
    ls_stable-col = abap_true.
    CALL METHOD go_grid->refresh_table_display
    EXPORTING
    is_stable = ls_stable
    I_SOFT_REFRESH =
    EXCEPTIONS
    finished = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " REFRESH_DISPLAY
    *& Form SET_LAYOUT
    Set layout for ALV list
    --> p1 text
    <-- p2 text
    FORM set_layout .
    CLEAR: gs_layout.
    gs_layout-cwidth_opt = abap_true. " optimize column width
    gs_layout-zebra = abap_true.
    ENDFORM. " SET_LAYOUT
    Regards,
    Prasanth
    Reward if helpful

  • Can't get printer to print

    My ancient HP810C HP printer does not print when I connect it to my new MacBook Pro.  The Deskjet window will come up and the error message is:
    Error: /System/Library/Printers/Libraries/PrintJobMgr/Contents/MacOS/PrintJobMgr failed.
    Any ideas on the problem?

    Is your ancient HP printer compatible with Snow Leopard? Have you checked for the latest drivers? Have you tried to set up the printer using Print & Fax? What have you tried?

  • Print Bureau printing app, wonderful!

    I purchased this app two weeks ago. I just want to post here that this is an amazing app. I sent a message to the app support yesterday at 5:30pm, the sent me an answer in 20 minutes. It was a simple question on syncing files between my Iphone and Ipad. I couldn't figure out the simple procedure. They gave me the correct answer within minutes.
    If you're think aboutthe $12.99, I say it's worth every penny.

    Unable to edit my previous post - too old I guess.
    I've been testing both Printopia (a "server" on the mac to which the iPad can connect for printing) and Print Bureau, which also has a mac-side "server" that you can download for free.
    From other iPad apps that have a print menu, I can find the Printopia server and print to any of my mac-attached printers (and to a local folder on the mac, if I want).
    I can only print using Print Bureau from within the PB app, not from other apps. This means other apps have to have the "open in..." menu choice, and then I can get the item to PB for printing. Not all my other apps can do this. I can print directly to my network printer (HP Color Laserjet) from within PB without going through the mac server.
    (PB does have other capabilities besides printing, read about them at the app store or google "Print Bureau iPad" to find the home page.)

  • Error in Printing Crystal Report Directly to Printer using SDK Code

    Hello ,
    I am trying to print a crystal report created in SAP Crystal Reports 2008 through SDk Code using one parameter
    as (Document Number).But While running the Code the Report is not getting printed and also the system is
    not able to fetch the correct data in the report using the supplied parameter .
    I am using Visual Studio 2005 Crystal Report dll s in my code :-
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Imports CrystalDecisions.CrystalReports
    Imports System
    Imports System.Data.SqlClient
    Imports System.IO
    For Clarification i am pasting my code below :-
                Dim oRpt As ReportDocument
                oRpt = New ReportDocument
                oRpt.Load(Path)
                With crConnectionInfo
                    .ServerName = Server
                    .DatabaseName = Database
                    .UserID = User
                    .Password = Password
                End With
                CrTables = oRpt.Database.Tables
                For Each CrTable In CrTables
                    crtableLogoninfo = CrTable.LogOnInfo
                    crtableLogoninfo.ConnectionInfo = crConnectionInfo
                    CrTable.ApplyLogOnInfo(crtableLogoninfo)
                Next
                oRpt.ParameterFields("Document Number").CurrentValues.AddValue(Parameter)
                If Printer <> "" Then
                    oRpt.PrintOptions.PrinterName = Printer
                End If
                oRpt.PrintToPrinter(Copies, False, 0, 1)
            Catch ex As Exception
                SBO_Application.MessageBox(ex.Message)
            End Try
    Please suggest me what i have to do in my code to print the report with correct data in report.
    Thanks & Regards,
    Amit

    k

Maybe you are looking for