Updating content sent to Excel / PDF output

Hi
How do I change the data that is sent to Excel / PDF during the export command?
I have JavaScript, which runs once the page is loaded, which updates values in the display to show the correct values, but these corrected values are not included in the export.
Any ideas?
Cheers,
Andrew

Hi Lou,
Did you write the app?
If you did not write the app then please contact the makers of the software for support. If you did then...
How CR works is when you open a report the Report Engine will copy the report to the \temp folder and give it a unique name as you have seen.
To get the name of the report and in C# do this:
string MyRptName = rpt.FileName.ToString();
MyRptName = MyRptName.Substring(MyRptName.LastIndexOf(@"\") + 1, (rpt.FileName.Length - 3) - (MyRptName.LastIndexOf(@"\") + 1)) + "pdf";
Thank you
Don

Similar Messages

  • How to print bin/hex content of word, excel, pdf directly to printer?

    Hi all,
        My requirement is to print all the GOS attachments of a Quality Notification.
        I have output from FM SO_DOCUMENT_READ_API1 (reading GOS attachments). I would like to print the content directly, and the content could be of word, excel, pdf, jpg, notepad etc.,
       Is there any function module or any class/methods that can take in the content and print them according to the file type? If not, please suggest any alternative solution/ideas.
    Thanks
    Vinoth

    Hi,
    I have the same problem
    with the additionnal problem: do it in background
    So, What I have for the moment
    --> You have a tool : BC-XDC that allow you to convert any file into an OTF.
    --> there is also the tool : GhostScript to convert some format to specific format (using SM49) ..
    (I can't cut/past code ... don't know how to do)
    Hope that will help you
    Edited by: Frédéric Girod on Oct 30, 2009 10:33 AM
    Edited by: Frédéric Girod on Oct 30, 2009 10:34 AM

  • Excel file trucation in PDF output file

    Having problem with PDF output file as the imported EXCEL table gets truncated - approx. the left 1/2 upper left corner is the only part of the table that appears in the PDF file.  Master file displays correctly in PM. No apparent memory issue so any thoughts? Thanks.

    A bit more info please.
    Windows or Mac, and which versions?
    Which version of PM?
    How did you import the speadsheet into PM?
    How did you create the PDF?
    Cropping and displacement of meta-files when creating PDFs from PM is well known and there are work-arounds.
    The long term answer is move on to InDesign.
    Iechyd da! John
    13:31 08/09/2009 BST

  • Urgent: Custom font style not appearing in PDF output only

    Hi,
    For a customer, I received customer specific font styles(ttf font files) which I installed on my machine and then copied those files in Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts as well as in JRE/lib/fonts. Then I created a template in word and font there appears as custom font.
    Now I am getting that font style in all output formats(rtf,ppt,excel) except the PDF output. I am using Oracle BI Publisher desktop alone. Not sure what I missed because of which text font is not changing in PDF version only. I checked the PDF properties and there also custom font is not getting mapped.
    Thanks in advance.

    Here is the link that describes how to set up the font mapping for PDF output: Look for "Font Mappings (for PDF output)"
    BI Publisher Demo Library</title><meta name="Title" content="BI Publisher Demo Library">…http://www.oracle.com/technetwork/middleware/bi-publisher/learnmore/demo-library-toc-173301.html
    Thanks,
    Bipuser

  • Opening word, excel, pdf, jpeg files as attachments on iphones

    I've always been able to open word, excel, pdf & jpeg files as attachments on my iphone 5.  But recently, everytime I tried to open one of these, the file image turned up all grey, and in the case of jpeg files, it just kept on loading, loading & loading, but never finished loading ...  It seems like this happened after I updated to IOS 6.1.4 recently...  This is just a guess.  Could anyone help me with this?  Thank you.

    Srinivas,
    Thank you for your reply. It helped me get to a solution. In essence I needed to copy the Unix file to an internal table and then save it to the end user's PC file. Then I am able to open the document / attachment.
    I created a new function to:
    1) call method cl_gui_frontend_services=>directory_browse,  to ask the end user to pick a PC directory to copy the Unix file attachment to.
    2) Then  using the following code, copy the Unix file (as determined by application or user) to an internal table. Note that the line is not limited by a certain length.
      types: begin of t_tab,
              line type string,
             end of t_tab.
      data: k_wa_itab type t_tab,
            t_it_itab type standard table of t_tab.
    open dataset v_unixfilename for input in binary mode.
      if sy-subrc <> 0.
        raise unix_filename_read_error.
      endif.
      do.
        read dataset v_unixfilename into k_wa_itab-line.
        if sy-subrc <> 0.
          exit.
        endif.
        append k_wa_itab to t_it_itab.
      enddo.
      close dataset v_unixfilename.
    3) Using call method cl_gui_frontend_services=>gui_download, save the contents of the internal table to the PC directory from step 1 above.
    4) Open the Attachment from the end users PC via:
    call method cl_gui_frontend_services=>execute
    It seems like a long way to get this to work, but it is working. If there is a better way maybe someone else can fill in the blanks. Ideally a tool to read and open from a file from Unix without using the cl_gui_frontend_services would be ideal.

  • Oracle bi publisher PDF output changes chart scale

    I have created report which has charts - bar charts
    I able to run report in various formats including interactive, html, excel, powerpoint, pdf etc.
    Now the chart scale on all other format reports showing perfect e.g. 3.0 height on y axis. So its basically adjusting as the max height (value) for y axis. But for PDF output no matter weather it has less than 3.0 for all values in that page, but it shows height 4.0 (instead of 3.0 max as other output formats are showing). So its not adjusting dynamically as other output formats.
    How can I get PDF document display same as other output formats? Because if all values less than 0.5 height, still PDF output showing height as 4.0 , so graph is not visible or almost touching to the ground with straight line.
    Please help and appreciate your help.
    Thanks

    Has there been any update on this? I am running into the same problem, only it is only affecting one of my charts. The maximum keeps on dynamically setting to 4.0, though I have also seen it set its maximum to 5 and minimum to -5 given certain parameters.
    I have three other charts on the same report: one with a dynamic maximum that sets correctly, and two that have a static maximum. The problem is only when I view it as a PDF.

  • TOC links fail when using book function for interactive pdf output

    I have  a large print publication consisting of multiple files using the Indesign book function. I have created a Table of Contents in the first document (there are multiple files in this book), but when I save to interactive pdf to create a digital version the TOC links are lost. They only work within the first document.
    I have read numerous forums but cannot resolve this issue with the combination of:
    1. TOC creation
    2. Using Indesign Book Function
    3. Multiple documents in the one book
    4. Interactive Pdf output required
    I look forward to answers???

    Nybor123 wrote:
    I am on CC version 9.0 but am updating CC as I type this in the hope this may have some answers?
    If you are on CC, you should update your InDesign version to 9.2.1 as it is the latest version. Then you should open the TOC definitions, check it, activate the new add anchor on destiny function and save. Now you should actualize all TOCs.
    The TOC functionality has been improved and changed between 9.0 and 9.2. If you update your files accordingly you will suffer less pain.

  • Texmacs PDF Output

    Hi guys!
    I'm having a slight problem with Texmacs's (from the extra repo) PDF output.
    When I'm trying to export PDF, everything seems to be fine, Texmacs says nothing with debug enabled, but :
    - I get a 1.2 MB file, even for 3 lines of text, which seems a little big
    - Evince complains about some kind of missing "Xref table" before opening the file, which I understand to be a PDF content table
    - Neither GMail nor Acrobat Reader (which some folks at my college use) are able to open the file
    - I recently switched from Ubuntu, and the previous PDFs outputs from there are fine. I even tested with an old texmacs file. Ubuntu version : 34KB and fine; Arch version : 1.2MB and Xref missing.
    I tried Lyx, but it doesn't work as well for my purposes, so I'd like to stick to Texmacs.
    Does someone know a way to fix this?
    Thanks a million!
    Evince output :
    $ evince Fichier.pdf
    Error: May not be a PDF file (continuing anyway)
    Error: PDF file is damaged - attempting to reconstruct xref table...
    Error: Couldn't find trailer dictionary
    Error: Couldn't read xref table
    TexMacs version :
    $ texmacs -v
    TeXmacs version 1.0.7.7
    (c) 1999-2006 by Joris van der Hoeven

    I have the exact same problem in Ubuntu. I know this is an ArchLinux forum, but I figured idenfifying that the problem is not distro-dependent could be useful.
    As with the OP, the PDF files I've been creating with TeXmacs can't be displayed, neither by the Acrobat Reader nor by Google Docs (it marks them as corrupt). Evince *can* display as well, but with the same errors.
    Whatever Evince is doing, it manages to display the file correctly. So the workaround I've been using is to open the file in Evince, then open up the Print dialog and use the "Print to file" option. This produces a valid PDF file. I suppose one could use a terminal pdf converter to do this in batch if needed. But it's still a very annoying problem.
    May I add that this problem started relatively recently (~1 year ago), though I can't really pinpoint the exact date. It used to work just fine before (I've been using Ubuntu all along). I don't know if it was due to a TeXmacs update, or an update of some of its dependencies (gs or whatever is used to produce the PDF file?).
    Anyway, I'm not sure this is the correct place to post this (the TeXmacs dev mailing list seems a better option) but I thought confirming this "bug" here could be of some help.
    I'm running Ubuntu 10.04 LTS, Kernel is 2.6.32, TeXmacs is 1.0.7.3, gs is 8.71.
    Last edited by Meithan (2011-05-31 20:37:03)

  • Opening Excel(HTML) output in Excel

    I have an issue whereby my Excel(HTML) output from XMLP is opening in a web browser rather than Excel. I've been through some previous threads on the same issue and many of them mention setting up a 'new viewer' or somesuch as the solution.
    I'm not familiar with that terminology so I'm guessing it a piece of eBusiness Suite functionality. Unfortunately I'm using PeopleSoft and I can't see anything comparable.
    What I have found however is that if you manually alter the header of the output file it works perfectly. i.e. the header looks like this:
    <html>
    <!-- Generated by Oracle XML Publisher 5.6.2 -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>Title</title>
    If I change the 4th line to read:
    <meta http-equiv="Content-Type" content="application/vnd.ms-excel"; charset=UTF-8"/>
    It opens in Excel exactly as we'd want. The question is, how do I change this content type? Is there a server side configuration or is it something I can change via XSL?
    kind regards
    Duncan
    http://www.PeopleSoftTipster.com

    Hi Scott:
    I am facing this issue using XML Publisher in 11.5.10.2. I have been able to open rtf reports in PDF format but when choosing Excel, the output is opening in an html web browser.
    XML Publisher version is 5.6.3.
    I am using Oracle XML Publisher Template Builder for Word; version 5.6 Build 45.
    So, I have 2 questions at this point.
    1. I can try Duncans' "fix" and see if that corrects the issue (not really a question).
    2. Should I be upgrading to a version of BI Publisher template for word (10.13.2.1) ?
    Thanks and regards,
    Karen

  • PDF output does not refresh data in BI Publisher, XML and HTML do refresh

    I just upgraded to BI Publisher 10.1.3.4.0 and I noticed that the PDF format of the reports does not reflect recent changes in data, while XML data and HTML output do reflect changes in data immediately.
    I'm using BI Publisher to print APEX applications reports. When I change some data in APEX forms, I click again in the Print button and the data remains unchanged. I made some testing inside Oracle BI Publisher, and noticed that XML data and HTML output do reflect changes, but PDF output remains with the old data for some unknown amount of time. I cannot identify a method to force the PDF to refresh, just un-log and log in again several times until the data appears updated. This is serious because when users change data and print again, they expect the changes to be reflected in the new printable report, and may not notice that the data is the old version.
    OS is Oracle Enterprise Linux.
    Any help on this will be very welcome.
    Francisco

    Open the report in Edit Mode Click on the reports and in the properties section Uncheck the
    Enable Document Cache Property and your issue should be resolved.

  • How to generate PDF output from OracleXMLQuery

    I want to generate a PDF out put from XML by using JSP. For this i writen jsp and xsl. My jsp code works fine if i include html formated xsl and it displays as a text when i pass pdf formated xls.
    Here i am providing my jsp code.
    I don't want to use XSQL, please provide me information ASAP.
    <%@ page import = "java.sql.*,oracle.xml.sql.query.OracleXMLQuery" %>
    <% Connection conn = null;
    Statement stmt = null;
    ResultSet rset = null;
    String dbURL = "jdbc:oracle:thin:@localhost:1521:oracle9i";
    try{
         DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
         conn = DriverManager.getConnection(dbURL, "scott", "tiger");
         stmt = conn.createStatement ();
         rset = stmt.executeQuery ("SELECT * " +
                   "FROM scott.emp ORDER BY ename");
    OracleXMLQuery xq = new OracleXMLQuery(conn, rset); %>
    <% xq.setStyleSheet("emptablefo.xsl"); %>
    <%= xq.getXMLString() %>
    <% } catch (java.sql.SQLException e) {  %>
    SQL error: <%= e %>
    <% }
    finally {
    if (stmt != null) stmt.close();
    if (rset != null) rset.close();
    if (conn != null) conn.close();
    } %>
    Thanks,
    Ramana

    >
    if the report output format is xls this code is generating the pdf output
    >
    looks like pdf is default output in template definition in xml publisher resp
    so for r12 use FND_REQUEST.ADD_LAYOUT as example
    v_request_id   number;
    xml_layout boolean;
    xml_layout := FND_REQUEST.ADD_LAYOUT('XXCUSTOM','XXCONCNAME','en','00','EXCEL');
    v_request_id := fnd_request.submit_request(application => 'XXCUSTOM',
                                               program     => 'XXCONCNAME',
                                               description => NULL,
                                               start_time  => NULL,
                                               sub_request => FALSE,
                                               argument1   => p_date
                                               );also see http://andyblg.wordpress.com/2012/08/23/run-concurrent-program-twice-with-different-layout-r12/

  • How to generate a PDF output using batch file in 10G

    Hello,
    I am using .bat file to generate a report PDF output. I have done this many times in 6i but for 10G I am unable to do the same.
    Can someone please look at the syntax below and let me know where I am going wrong.
    I understand that reports are different for 6i and 10G specially .rep file but I am sure we should be able to generate a PDF file using 10G. Please let me know.
    Thanks
    IQ
    Contents of .bat file follow
    ECHO Opening parameter form. Please do not close this window.
    C:\
    FOR /F "tokens=1 " %%I IN ('time /t') DO (SET _TIME=%%I)
    FOR /F "tokens=2 " %%I IN ('date /t') DO (SET _DATE=%%I)
    SET EXP_DATE=%_DATE:~6,4%%_DATE:~0,2%%_DATE:~3,2%_%_TIME:~0,2%%_TIME:~3,2%
    SET FILENAME=SEND_EMAIL_%EXP_DATE%_%USERNAME%.PDF
    CD C:\Users\Documents
    RWCONVERTER REPORT=C:\Users\Documents\send_email.rep USERID=scott/tiger@ORCL1 ORIENTATION=LANDSCAPE DESFORMAT=PDF DESTYPE=FILE
    DESNAME=C:\Users\\%FILENAME% PRINTJOB =NO

    Rwconverter is not used to run reports:
    rwconverter (Reports Converter) enables you to convert one or more report definitions or PL/SQL libraries from one storage format to another.
    I think you mean rwrun:
    rwrun (Reports Runtime) runs a report by starting its own in-process server (not to be confused with the default in-process Reports Server), which runs in the same JVM as the rwrun process.
    This bat file has to run on the server. There is no Reports installation on the client anymore.
    If you want to run a report from a client, you can make a bat file that calls the report url
    See: http://download.oracle.com/docs/cd/E14571_01/bi.1111/b32121/pbr_cla002.htm#i634710

  • Automatcially Execute Report (with input parametrs) and Save to Excel/PDF

    I have an SSIS package that does this in SQL 2008 R2 by means of a Script Task that uses ReportExecution2005. I cannot get this to work in SQL2012. It the script builds without error but reports a compile error when I close the Script Task, with the dreaded
    red X in the Control Flow window.
    It has occurred to me that perhaps I can do the same thing using SSRS Web Service, supplying the necessary information in the URL. I know how to supply parameter values and tell it to render in Excel (or PDF) format but user action is still required to
    save the file. Is there a way to provide an output file name in the URL so that the file is automatically saved without even displaying the report?
    I an also looking at PowerShell/ReportExcution2005 as an option and will raised separate post on that subject.
    R Campbell

    Hi Dick Campbell,
    According to your description, you want to export report to Excel/PDF from the a web site and save it without displaying the report, if that is the case, we can use ReportExcution2005.asmx as the report rendering web service.
    SQL Server Reporting Services is essentially implemented as a set of Web services, commonly referred to as SOAP API. In order to use the endpoints from Visual Studio, please refer to the following steps:
    Add Web reference to the endpoints.
    Then we need to initialize the report by calling the LoadReport() method.
    If the report contains parameters, we need to declare and populate an array of ParameterValue objects. Once the parameters are set up, we can call the SetExecutionParameters() method and pass them in rsExec.SetExecutionParameters(executionParams, "en-us").
    Call the Render() method. This method renders the report and returns it as a byte array that we can save into a file.
    The following code is for your reference:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using WebApplication3.ReportExecution2005;
    using System.IO;
    namespace WebApplication3
    public partial class _Default : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
    ReportExecutionService rsExec = new ReportExecutionService();
    rsExec.Credentials = System.Net.CredentialCache.DefaultCredentials;
    rsExec.Url = "http://servername/ReportServer/reportexecution2005.asmx";
    string historyID = null;
    string reportPath = "/multi-value parameter/sub";
    rsExec.LoadReport(reportPath, historyID);
    ReportExecution2005.ParameterValue[] executionParams;
    executionParams = new ReportExecution2005.ParameterValue[1];
    executionParams[0] = new ReportExecution2005.ParameterValue();
    executionParams[0].Name = "group";
    executionParams[0].Value = "Europe";
    new ReportExecution2005.ParameterValue();
    rsExec.SetExecutionParameters(executionParams, "en-us");
    string deviceInfo = null;
    string extension;
    string encoding;
    string mimeType;
    ReportExecution2005.Warning[] warnings = null;
    string[] streamIDs = null;
    string format = "Excel";
    Byte[] results = rsExec.Render(format, deviceInfo, out extension, out mimeType, out encoding, out warnings, out streamIDs);
    FileStream stream = File.OpenWrite("c:\\Users\\Reports\\report.xlsx");
    stream.Write(results, 0, results.Length);
    stream.Close();
    For more information, please refer to the following document:
    http://www.experts-exchange.com/Programming/Microsoft_Development/Q_27581973.html
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • The PDF output is not always displayed!

    Hello
    I'm tryin' to build some PDF outputs and I have the next problem: I have 20 reports to make it on PDF form (viewed with the Acrobat plugin from IE 5.5 or higher) and when I try to see what was builded the PDF it's not always displayed ( mean it's not readed by the plugin). I generate the PDF output from a servlet (which also set the servlet output context as 'application/pdf') and, if the output it's generated too fast (meanning the report information was too small), the Acrobat plugin doesn't catch him ! I think that I have to slow down the servlet response to allow the plugin complete loading, but I don't khow how to do this (and, ofcourse, if it's possible).
    Please, I need a solution. !
    Thanx!

    Hi,
    setting content type as application/pdf is quite enough for the plugin to catch
    I generate the PDF output from a servlet
    (which also set the servlet output context as
    'application/pdf') and, if the output it's generated
    too fast (meanning the report information was too
    small), the Acrobat plugin doesn't catch him !but i think IE has a problem catching this, cause i also once ran thro this kind of problem
    I think that I have to slow down the servlet response to allow
    the plugin complete loading, but I don't khow how to
    do this (and, ofcourse, if it's possible). Yes it is possible.... if ur sevrvlet ehich is displaying pdf is http://host/PdfServert
    just make in such a way that the extention is pdf..
    http://host/PdfServert?xy=z.pdf or register the servlet with .pdf ext
    http://host/PdfServert.pdf...
    belive it really worked perfect for me..
    regards,
    Arun.N

  • Error in generating PDF output

    Whenever, I generate a PDF output, RH goes through the process but displays an error message stating that the file_name.pdf is not found. It did the same thing when I tried generating a PDF of a sample project as well. Any pointers on how to resolve this issue?

    I am just trying to see where there could be a problem. When you generate a PDF from RoboHelp a temporary Word file is automatically created in the background from which the PDF is created. What I was trying to get you to check was whether the problem is with the PDF creation or somewhere else. If you go through the same process to create a PDF but deselect the PDF creation option BUT select the Word creation option, a Word file will be created. If that works, it will have exactly the same fonts, styles as the PDF would if you can create it.
    I am also a bit unsure what you mean. It sounds like you are generating a Word file, then changing the fonts and styles in Word. Why not just make sure that your fonts, styles in RoboHelp are correct and then just map these to your Word template when creating the Word file. Peter Grainge has some excellent tips on this on his site. It is well worth a read.
    http://www.grainge.org/pages/authoring/printing/printing.htm
      The RoboColum(n)
      @robocolumn
      Colum McAndrew

Maybe you are looking for

  • "Call dialog in WD abap"

    Hi Experts, I am facing a problem in opening an attachment in WD abap. Actually i need to open an attachment from my WD abap screen , as like standard does . Standard is using  call dialog 'SO_DOCUMENT_VIEW_MANAGER'   and passing some values in it, a

  • Computer vs. Ipod Problems

    How do I know if my computer is the problem and not the Ipod? I'm begining to think it is the computer, after the Ipod was recognized on one computer and not the other. Of course, the computer that wouldn't recognize the ipod, has all my music. The c

  • IPod Screen Cracked

    I bought a 30 GB video iPod, I have not abused it in any way. I now have a small crack down the middle of the screen. There are also several lines that have also appeared. I need a way of contacting apple maybe online through a customer support chat

  • Soldiers in question about macbook air

    ok my friend bought a macbook air. Well we found out that we only have dail up at our new "home". Do they make and usb adpater for the dial up or is it a no go? Thank u

  • Excise Report - Statuary Reports

    Hi All, I have installed 2007 B Demo Version, but i am not getting where is the excise report (Country Specific - India). Even I serched on google and its showing the avaulability of excise reports in 2007 B. Can anybody tell me the location of Statu