Problems with the report export in PDF format

Hi All,
I am new to this forum.
I'm developing a web application that uses Java Reporting Component (JRC) to display crystal reports.
I have three problem:
1) I want, after entering the filters in a jsp, to print a report in PDF format (WORD) without opening it
with Adobe Reader (Microsoft Word). The class of API JRC used for export is ReportExportControl.
2) I want to print multiple reports one after the other to reduce the time (possibly joining two or more reports into a single PDF)
3) I want to insert, in the jsp page filters, the number of pages to print from the same report (without
opening it with Adobe Reader (Microsoft Word))
Can anyone help me? or can give a simple java code to do the same.
Thanks in advance.

Hi, this works for me in 4.6B:
  CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
        BIN_FILESIZE            =
           filename                = i_pfad
           filetype                = 'BIN'
   IMPORTING
        FILELENGTH              =
      TABLES
            data_tab                = i_att_cont
      EXCEPTIONS
           file_write_error        = 1
           no_batch                = 2
           gui_refuse_filetransfer = 3
           invalid_type            = 4
           OTHERS                  = 5.
  IF sy-subrc <> 0.
    MESSAGE i000(zv) WITH 'Problem mit PDF Darstellung'.
  ENDIF.
  CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
       EXPORTING
            spoolid = spoolnr.
  CALL FUNCTION 'WS_EXECUTE'
       EXPORTING
            document           = ' '
            commandline        = i_pfad
            program            = 'AcroRd32.exe'
       EXCEPTIONS
            frontend_error     = 1
            no_batch           = 2
            prog_not_found     = 3
            illegal_option     = 4
            gui_refuse_execute = 5
            OTHERS             = 6.
  IF sy-subrc <> 0.
    MESSAGE i000(zv) WITH 'Acrobat Reader nicht gefunden!'.
  ENDIF.

Similar Messages

  • Problems with a report generated as PDF

    I am having a problem with my report when it is generated as a PDF file from the reports server. A space is added soon after the letter w in all the words where there is letter w; for example, the word awake appears as aw ke, will appears as w ill, etc. Does anyone know how to fix this problem? I am using Reports 11g. Thanks.

    Hi
    In layout change the font (Redo font) thru menu option (Not Font) Format -> Font >Western.
    This may solve your problem...
    user8655468 wrote:
    I am having a problem with my report when it is generated as a PDF file from the reports server. A space is added soon after the letter w in all the words where there is letter w; for example, the word awake appears as aw ke, will appears as w ill, etc. Does anyone know how to fix this problem? I am using Reports 11g. Thanks.

  • Is there a problem with Indesign effects exporting to PDF?

    Hi All... Since updating to the latest version of Indesign, I can't seem to get my effects to work when I export into a PDF? Am I doing something wrong or is there a problem with the new version of Indesign? I have a job that I'm urgently trying to get out but can't get the drop shadow or bevel emboss to transfer to the PDF that needs to go to my client? Can anyone help me with this ASAP pleeeeease???

    RAZ! wrote:
    It looks OK in the Indesign overprint preview and I usually have my Acrobat set to view overprint as well so I turned it off & on just in case there was something happening there, but no luck!
    I am using a spot colour in the background behind the graphic but not on the graphic itself, but I don't think that should effect it as I'm sure I've done this many times (But I am starting to doubt myself now... lol)?
    It looks OK in the Indesign overprint preview
    I am using a spot colour in the background behind the graphic but not on the graphic itself…
    That is reason, why it looks like it looks. But what happens if you replace the spot to a process color?

  • How to download the report output  into PDF format

    Hi friedns
    from the report output when user clicks download button
    it has to download to PDF format
    how to do this
    thanks in advance
    venu

    hi venu,
    check this sample code
    Save Report Output to a PDF File
    This report takes another report as input, and captures the output of that report. The output is then converted to
    PDF and saved to a local file. This shows how to use some of the PDF function modules, as well as an easy way to
    create PDF files.
    Source Code Listing
    report zabap_2_pdf.
    *-- Enhancements: only allow to be run with variant. Then called
    *-- program will be transparent to users
    *-- TABLES
    tables:
    tsp01.
    *-- STRUCTURES
    data:
    mstr_print_parms like pri_params,
    mc_valid(1) type c,
    mi_bytecount type i,
    mi_length type i,
    mi_rqident like tsp01-rqident.
    *-- INTERNAL TABLES
    data:
    mtab_pdf like tline occurs 0 with header line,
    mc_filename like rlgrap-filename.
    *-- SELECTION SCREEN
    parameters:
    p_repid like sy-repid, " Report to execute
    p_linsz like sy-linsz default 132, " Line size
    p_paart like sy-paart default 'X_65_132'. " Paper Format
    start-of-selection.
    concatenate 'c:\'
    p_repid
    '.pdf'
    into mc_filename.
    *-- Setup the Print Parmaters
    call function 'GET_PRINT_PARAMETERS'
    exporting
    authority= space
    copies = '1'
    cover_page = space
    data_set = space
    department = space
    destination = space
    expiration = '1'
    immediately = space
    in_archive_parameters = space
    in_parameters = space
    layout = space
    mode = space
    new_list_id = 'X'
    no_dialog= 'X'
    user = sy-uname
    importing
    out_parameters = mstr_print_parms
    valid = mc_valid
    exceptions
    archive_info_not_found = 1
    invalid_print_params = 2
    invalid_archive_params = 3
    others = 4.
    *-- Make sure that a printer destination has been set up
    *-- If this is not done the PDF function module ABENDS
    if mstr_print_parms-pdest = space.
    mstr_print_parms-pdest = 'LOCL'.
    endif.
    *-- Explicitly set line width, and output format so that
    *-- the PDF conversion comes out OK
    mstr_print_parms-linsz = p_linsz.
    mstr_print_parms-paart = p_paart.
    submit (p_repid) to sap-spool without spool dynpro
    spool parameters mstr_print_parms
    via selection-screen
    and return.
    *-- Find out what the spool number is that was just created
    perform get_spool_number using sy-repid
    sy-uname
    changing mi_rqident.
    *-- Convert Spool to PDF
    call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
    exporting
    src_spoolid= mi_rqident
    no_dialog = space
    dst_device = mstr_print_parms-pdest
    importing
    pdf_bytecount = mi_bytecount
    tables
    pdf = mtab_pdf
    exceptions
    err_no_abap_spooljob = 1
    err_no_spooljob = 2
    err_no_permission = 3
    err_conv_not_possible = 4
    err_bad_destdevice = 5
    user_cancelled = 6
    err_spoolerror = 7
    err_temseerror = 8
    err_btcjob_open_failed = 9
    err_btcjob_submit_failed = 10
    err_btcjob_close_failed = 11
    others = 12.
    call function 'DOWNLOAD'
    exporting
    bin_filesize = mi_bytecount
    filename = mc_filename
    filetype = 'BIN'
    importing
    act_filename = mc_filename
    tables
    data_tab = mtab_pdf.
    FORM get_spool_number *
    Get the most recent spool created by user/report *
    --> F_REPID *
    --> F_UNAME *
    --> F_RQIDENT *
    form get_spool_number using f_repid
    f_uname
    changing f_rqident.
    data:
    lc_rq2name like tsp01-rq2name.
    concatenate f_repid+0(8)
    f_uname+0(3)
    into lc_rq2name separated by '_'.
    select * from tsp01 where rq2name = lc_rq2name
    order by rqcretime descending.
    f_rqident = tsp01-rqident.
    exit.
    endselect.
    if sy-subrc ne 0.
    clear f_rqident.
    endif.
    endform." get_spool_number
    Regards,
    Naveen

  • Issue with Crystal Report export to PDF

    Have a report in Crystal Report 2008. The report runs fine, but would like to export it to PDF/EXCEL, but nothing happens when I select the Export type(i.e. PDF,Excel, etc).
    Steps to replicate:
    1. Run Crystal Report
    2. Click on EXPORT button.
    3. Select the Export type (PDF).
    4. Click on EXPORT - Nothing happens nor does it return any error.
    Would someone be able to provide some tips on this issue
    Thanks

    The problem is that the 3rd party is using some CR SDK. We don't even know what SDK that is. They should be coming here and asking us to help them on your behalf. It is almost impossible for us to help, not knowing how they implemented the SDK, which SDk, etc..
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Problems with bleed and exporting to PDF.

    Hi,
    I am having a slight problem exporting a file to pdf in Indesign CS3.
    I have my documents set up with a 3mm bleed and I have made sure that the images and work extend passed the bleed marks as they should. The problem is that when I export to pdf, the pdf file appears to have cropped the work exactly on the bleed line leaving nothing extending passed the bleed. The 3mm bleed area is still there but nothing is extending into it which is kind of pointless. I don't know whether there is a setting I am missing or something like that but any help on this matter would be greatly appreciated.
    Cheers

    "It appears to crop it exactly on the bleed line."
    for the record, isn't that what it's supposed to do?
    Your bleed line is 3mm outside the trim. Anything you bleed will be contained in that 3mm band. If you hang any more than 3mm off the edge, only the 3mm in the bleed band will show on the PDF.
    k

  • Problems with the Facebook Exporter in iPhoto 08

    Has anybody successfully used the Facebook Exporter plugin for iPhoto? Every time I try to upload multiple photos, it has a bar saying "Exporting 1/{whatever number}", but then comes up with the following error:
    "Couldn't upload photo "{photo number}" because an unknown error occurred."
    ...and it gives me the option of:
    "Back to Facebook Exporter" or "Review Facebook Album"
    ...if I click on the latter, it goes to Facebook and shows that the first Photo has indeed uploaded successfully. So I've been going through doing it one at a time but that is pretty tedius!
    Any ideas what I'm doing wrong? It doesn't matter what the photo's are, it does it every time.
    Cheers.
    AD.

    Must have been a dodgy version of the exporter as having downloaded an update it works fine...

  • Problem with the order of inserted PDFs...

    I work with archiving records in chronological order and am having problems getting the files to insert correctly. When I go to insert files, everything is fine when only one file is being inserted. Also what works fine is if I'm trying to insert multiple files that are already in order (by using the Shift key to select them all at the same time) - i.e. file1, file2, file3 - and I know that I can select the last one first to invert the order - i.e. file3, file2, file1. The problem I'm having is if I'm trying to insert file3, file1, then file2 without having to do multiple insertions. Obviously this isn't a issue when dealing w/ 3 out of order, but not 10+. I have tried using the Control key to select them in order but the order is ALWAYS messed up when I hit OK.
    Thanks to anyone that can solve my problem.
    -Lance

    Don't think there is anything you can do about that, unless you write a script or something. The ordering is typically set by the way they appear, not the order you select them. Some people have more success dragging from Explorer into Acrobat, rather than using insert pages. However, you are still stuck with the order the of the files in the window, not the order you select them. To the best of my knowledge, there is no way to change this behavior. Using a script are such is the only way I can think that what you want might be done.

  • Problems with superscript when exporting to PDF

    If one writes in a table cell for example "100m3 tank" with 3 as a superscript, then exports the document to PDF, the
    "3 tank" disappears, likewise if one just writes "100m3", the 3 disappears. However, if you just write "m3", the three in superscript remains. Any fixes for this bug? How can I report it to Apple?

    I just came across this same problem -- similar but not exactly the same.
    Text in a table does not print properly when text is superscripted.
    This is a problem since we have a French invoice that has a fair bit of superscript. I tried to work around by decreasing the font size and increasing the baseline, but this did not work.
    I'm using Pages 5.1 and Mavericks.
    Anyone have any ideas????

  • Crystal Report Export to PDF with Group Tree Bookmarks

    Dear Forum
    I have created a Crystal Report aspx page with an export function of the report to pdf. So far all has been successful, except form one little annoying this. The report does export to a pdf file and it does create bookmarks based on the group tree, BUT when opening the pdf file the bookmarks hiest point which should be the file name is the really long temp file name with .rpt as an extension. I have looked every where to try to get it to write the filename to the bookmark hierarchy without success.
    I come you you all for any form of help to solve this issue.
    My code is below
    CrystalDecisions.Shared.ExportOptions export_options = new ExportOptions();
                export_options.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat;
                string ext = ".pdf";
                string reportName = "Filename";
                CrystalDecisions.Shared.PdfFormatOptions pdfOptions = new PdfFormatOptions();
                pdfOptions.CreateBookmarksFromGroupTree = true;
                export_options.ExportFormatOptions = pdfOptions;
                report.ExportToHttpResponse(export_options, Response, true, reportName);
                Response.Clear();
                Response.Buffer= true;
                Response.End();
    Below is an image of the output
    Any and all help is greatly appreciated

    Using the search box in the top right corner and entering the search string 'bookmark pdf crystal', the very 1st KBA is:
    1331152 - Report exported to PDF format with bookmarks displays the bookmarks as report name plus a GUID
    Please see if this resolves the issue for you.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Is anyone else seeing this with the report toolkit

    I am using LV 8.6 and using the LV report functions inside a VI. This VI is my main VI for the TS user interface. What is happening is, I built my main vi into an executable and then I am building a deployment in TS with the executeable included. I get a tremendous amount of errors when I do this saying that the vi's that are part of the report generation in LV are not able to be loaded because they have no front panel or block diagram. So I did some investigating and sure enough the toolkit was changed to Object Oriented for LV 8.6. This explains why i can get it to build on a machine with LV8.5 installed instead of 8.6.
    I was just wondering if anyone has had this problem with the toolkit and TS.
    I also had a meeting with Brian Buress (field engineer for NI) and Jeff Phillips (LabVIEW product manager) they saw this activity (they were here and I showed it to them) and they could not explain it.
    The problem has to lye in the fact that the report VI'S are now object oriented.
    Is anyone else have trouble with this toolkit.
    Joe.
    "NOTHING IS EVER EASY"

    Hi Joe,
    Yes, I also had a problem with the report toolkit.
    See here for the problem and workaround

  • Help me, I have a problem with font when export report to PDF?

    Hi everyone! Help me
    I have a problem with font when export report to PDF
    My report uses template .rtf with font Times New Roman (Unicode), language is VietNamese.
    when desige template no problem, error only happen when view report by PDF.
    Edited by: user10236405 on Oct 15, 2008 11:23 PM

    give it time to boot. the time depends on yr memory size n data. soon a process bar will appear indicating the boot process. if still this doesnt work. try formating the phone. but this ways u lose all data on the phone (unless u backed it). relax! the data on the memory card is safe.

  • Many problems with the 'Export to Text' (.txt) in CR Xi

    Hi,
    I have listed many problems with the 'Export to Text' (.txt) function of CR Xi.
    These problems are related to this export format only (meaning everything works fine in the Viewer or in the 'Export to PDF')...
    - Multi-columns layout do not export as Multi-column (export only a one column);
    - Numeric values with parenthesis for negative values or with a fix currency sign at the leftmost position are not exported correctly;
    - Fields having a Suppress formula which is "WhilePrintingRecords" do not appears when exported;
    - Fields with 'Suppress double value' checked are not always suppressed when exported to Text.
    - 'Keep Group Together' flag is not working.
    - 'Reset Page Number After' simply does not works when exported to text;
    - 'Keep object together' on TextBox/Section is not working.
    - Whenever a group is ending on the last line of a page, the the following page as the same Group header as the previous group with no records until the page is filled, then the PageBreak and PageHeader is missing but the records of the following group appears.
    I would like to know what is the status of the 'Export to Text' function (is it a deprecated function not supported anymore???).
    If still supported, when will these bugs be fixed???
    Thanks

    Hi Rene
    Export to Text is supported till date. Crystal Reports 2008 also supports this with Keep together working however when I tried with format with multiple columns, it didnot show up in the exported text file.
    Regards
    Sourashree

  • Problem with the hierarchial fields in a Purchase order xml report

    Hi,
    I am having a problem with the hierarchy problem. We are populating attribute 15 of a PO header. some times it can be null. FYI, we are using 11.5.10 instance where oracle supports direct PO template rather than having a rdf file.
    And now in the xml report, if attribute15 of po header is not null then it is fine.
    But if attribute15 is null, then the template is picking from the next available attribute15 that is from the po lines. As the line level group of "LINES" is between the "PO_DATA" (header group), hence the template is checking for next available attribute15.
    Can any one please suggest how to design the template where we can make the template to check only for that tag at the header level group rather than the line level group tag?
    Thank You in advance.
    Regards,
    Srinivas.

    Hi
    Incase you want to transfer attachements from SRM to R/3, then you try implementing the BADI in SRM side. The BADI which will help in this case is
    <b>BBP_CREATE_PO_BACK</b> BADI.
    <b>Please read the standard SAP documentation of this BADI using SE18 Transaction, before making any code changes.</b>
    <u>Few Important SAP OSS notes to refer in this case -></u>
    Note 989184 - Transferred shopping cart with internal attachments
    Note 550071 - FAQ: EBP - Shopping Cart
    Note 916347 - Transfer shopping cart with internal attachments
    Note 1001130 - FAQ - Attachment questions (Buyside)
    <u>Few useful links -></u>
    <b>http://help.sap.com/saphelp_srm50/helpdata/en/49/b32640632cea01e10000000a155106/frameset.htm
    Re: Attachments to backend
    Re: Document Attachments in Shopping Cart
    Re: Attachment in SRM
    Re: SRM Documents and Attachments
    Re: Limit in Attachments of an item in Shopping Cart
    Re: return delivery text from material document is not passed to SUS
    </b>
    Do let me know, incase you face any problems.
    Regards
    - Atul

  • I am having problems with the Preview application.  When I try to use it to open a pdf document it gets hung-up and I have to select force quit to close it.   Any ideas on how to resolve this problem?  Thanks for any help

    I am having problems with the Preview application.  When I try to use it to open a pdf document it gets hung-up and I have to select force quit to close it.   Any ideas on how to resolve this problem?  Thanks for any help

    Can you open the Preview program without loading a file, like by itself?
    If it doesn't load then I suspect a corrupt Preview preference file.
    Deleting the System Preference or other .plist file
    Can you open other files with Preview, like jpg's and images?
    How about other PDFs? or is it just that one you have downloaded?
    Run through this list of fixes
    Step by Step to fix your Mac

Maybe you are looking for

  • Show email information  with diferent language correctly

    hi I have an web site that create with pl/sql server page script. This web site inclue forms that user can search from information of library books. One of facility of this program is email page that can email some of informations of books that user

  • Firefox does not start on second desktop

    I am using the free Sysinternals product called [http://technet.microsoft.com/en-us/sysinternals/cc817881.aspx Desktops ] (desktops.exe) to allow for more than one desktop in Window 7. Not too long ago, I used to be able to start a Firefox instance o

  • Two Lightroom issues: Slow file update from CS3 and jitters

    After my recent update to latest version of Lightroom I am noticing two issues. When photos are selected in the film strip for editing the image jitters while it is rendering. After taking a photo into CS3 for editing, saving the file and returning t

  • Why are BT so incompetent?

    I've just moved into a new place, and signed up with BT for my broadband and phone. I thought I could migrate to BT infinity when that goes live in my area. I really wish I hadn't bothered because absolutely nothing has gone right. Firstly I had to w

  • InDesign CS4 Printing to Canon 8400 printer

    No problems printing large document sizes to ID CS3. When we open the same large document to print to ID CS4, we always choose print, goto the print window and select setup for choosing the size of paper we want, then click Printer button at the bott