Report Type for pdf and Excel

I have following code to generate the report for pdf format.
I would like to let users to choose report type 'pdf' or 'excel'
I need pass the user select from user interface to <cfreport format= "PDF" or "Excel".
Can you please advise how I can pass the user select Report Type from lsReportType to my cfReport?
Your help and information is great appreciated,
Regards,
Iccsi
<cfstoredproc procedure="spGetReportType">
   <cfprocresult name="rsReportType" resultset="1">
</cfstoredproc>
<cfreport format = "PDF" template= "MyReport.cfr" query="#myQuery#">
   </cfreport>
<td><select width="50" name="lstReportType" id="lstReportType">
      <cfoutput query="rsReportType">
         <option value="#rsReportType.ReportTypeID#" <cfif (isDefined("form.ReportTypeID") AND form.ReportTypeID EQ rsReportType.ReportTypeID)>selected="selected"</cfif>>#rsReportType.ReportType#</option>
       </cfoutput>
     </select></td>

Change format="PDF" to format="#VariableName#" where VariableName contains the text "PDF" or "Excel".

Similar Messages

  • Issues while saving the Webi Report locally in pdf and Excel Format

    Hi,
    I am getting issues with the images on a Webi Report when I try to save the reports locally on my machine in either a pdf format or in an Excel Format.
    I think the issue is that when I am trying to save the report it saves the address of the image binded in the report but it doesn't save the image/download the image and when the report is opened locally it couldn't refer to the image location.
    I am using BOXIR2 with SP2.8.
    I am not sure what should be the right solution for this. Any insight or resolution will definitely be helpful.

    Hi;
    I would investigate on the load balancer and/or Apache front end servers, are you sure you don't have a keep alive setting enabled somewhere on one of these servers? in the Tomcat connector maybe?
    Regards;
    Lionel
    OUPS BAD THREAD
    Edited by: Lionel Jeanson on Oct 21, 2008 3:30 PM

  • Publishing the report output to PDF and Excel

    Hi,
    Is there any way to get the Report title, Report run date, Page numbers when we export the report output to Excel or PDF.

    Hi
    I am assuming you are working in 2004s
    <u><b>Exporting to PDF</b></u>
    For page numbering, add the following parameter to the export command, which defaults the footer to the page numbering
    <bi:FOOTER_RIGHT value="PAGEOFPAGES" />
    Report Run Date ... we have included this in a text element in our report, and made sure that element is part of the export command. The text element we have used is configured as a Generic Text Element and uses the LAST_REFRESHED property
    Report Title ... this is done in the same way, but uses the QUERY_DESCRIPTION property.
    <u><b>Exporting to Excel</b></u>
    As mentioned already, there is no sense in including page numbers when exporting to Excel, as everything is shown on 1 sheet.
    Report Title and Report Run Date are included in the export the same way as above.
    Hope this helps.
    Cheers,
    Andrew

  • Multiple Mail attachment (PDF and Excel) in a single mail

    Please help me to send the PDF and Excel attachment in the single mail. I am using the FM for PDF is 'SO_NEW_DOCUMENT_ATT_SEND_API1' and for Excel 'SO_DOCUMENT_SEND_API1'. Currently the program sends 2 different attachments for PDF and Excel.
    Thanks in Advance.

    Hi,
    If you want to send multiple attachments in a single mail then i would suggest to use
    CL_BCS for achieving it.
    Look at standard program BCS_EXAMPLE_6 for more clarity.
    There you find this statement of code
    document1 = cl_document_bcs=>create_document
    After creating one document using this you can use the same statement again and create another document.
    document2 = cl_document_bcs=>create_document
    Both documents should have different name.
    Then use
    send_request->set_document( document1 ).
    send_request->set_document( document2 ).
    This will attach both the documents to a single email.
    Hope this helps.
    Regards,
    -Sandeep

  • Template builder for adobe pdf and excel

    Hi All
    I couldnt find plugins and template builders for adobe pdf and excel.
    some pointers pls..
    thanks
    cm

    Rainer,
    I want to use this PDF Templates in EBS, is it possible?.. and also I have 10 sample output pdfs and one RDF for my AR Invoice Report.
    For this scenario do i require PDF Writer Software?.. I am new to develop reports in pdf templates.
    please adivce me
    with regards
    Ram

  • PC Windows, Office 2010, Acrobat X Standard - how to configure Acrobat that PDF documents are generated in PDF version 1.4 by default for word and excel (already tried to change the pre-adjustment for word and excel)

    PC Windows 7 Pro
    Office 2010
    Acrobat X Standard
    Ich habe bereits in den Voreinstellungen von Acrobat X Standard für Word und Excel die Einstellungen dahingehend geändert, dass PDF Dateien mit der PDF Version 1.4 generiert werden - jedoch funktioniert dies nicht.

    Edit:
    The description above was erroneously written in german - sorry for that - please find the english description below:
    PC Windows 7 Pro
    Office 2010
    Acrobat X Standard
    I alrady tried to change the pre-adjustment in Acrobat X Standard for Word and Excel, that PDF files should be generated in PDF Version 1.4 out of these applications - but it did not work.

  • Data missing in scheduled report via email as pdf and excel

    Hi,
    I scheduled a webi report to email as pdf and excel, I am getting the mail but on pdf and excel only I can see the report header, values are missing
    Regards
    Aflal

    how come?
    do you have any parameters in this report?
    can you tell exactly the steps u r following doing
    thanks
    Amr

  • Where does workspace store the pdf and excel file ?

    Hi,
    I'm working on a Web Analysis project and I have created a dynamic web menu based on the workspace repository to improve the poor capacities of WA in terms of menu. I use the javascript API to control the WA applet from the menu.
    Now my problem is that my customer created a folder in workspace (which is translated into a sub menu of my dynamic menu), and that folder contains pdf and excel files. The function openFile which I use to open report in the applet doesn't work on pdf and excel files. So I've been looking for the files on the server, to know where they are stored, so that I could just modify the java class that generates the menu.
    I couldn't find those files on the server. Where are they ? Are they stored in the database as an xml string like the report s ? If yes then I might have a problem.
    Has anyone already done this ?
    Thanks for your help.
    Cyril

    Tomcat stores it in the work dir under $TOMCAT_HOME.
    There'll be directories like localhost%2f<urcontext>..
    As for as JSP changes being recognized, try refreshing ur browser....

  • PDF and Excel output cell spacing issues

    Hi all..
    I have a report and template whose output should be both in PDF and Excel.
    Lets say I have two tables in out put one below other. (Table1 and table 2 below it..)
    Table 1 has 5 columns and table 2 has 30 columns.
    In PDF since it is difficult and ugly to show 30 columns, I made font as 6( very small font)
    PDF output looks fine. But, when I open the reort in excel..its all messed up and ugly.
    Table 1 column widths are very much uneven. lI noticed that table1, table 2 coulmns width are same...
    For my Requirement, they must have seperate widths.. Also..when I open the report in Excel, I still get in font size 6 which is ugly
    I want table1 column width and table 2 column width in Excel as seperate..
    How do I achieve this.

    Vetsrini wrote:
    you can do that too..
    two set of tables, one for each output. and use the Microsoft word font properties.
    else
    add something like this
    <fo:block font-size="14pt" font-family="verdana" color="red">
    Your test or your field
    </fo:block>Srini, this worked!
    My font differences in Pdf and Excel has been eliminated now.
    But however I have one more problem as I stated in my first post.
    When I exported into Excel, My column width of first table is dependant on the other making my report look uneven.
    I am providing the screen shots.
    Look how Rate column of first table is very huge as it took the colmun width of table2 (Decription column)
    http://i.imgur.com/Rj8CC.jpg
    I need something like this: http://i.imgur.com/nklEN.jpg
    Is this achievable?

  • Could 'export button' show only pdf, and excel only?

    Hai,
    I am using report viewer, it has export button in that header.
    Could 'export button' show only pdf, and excel only?
    So the report just only export pdf only or excel only.
    Technology:
    Asp.net Vs2010
    SSRS2012
    Windows 7

    I found the solution:
    http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/74dad27b-ef7e-4b9b-8922-666b317b3094
    This is the additional code, to hide all type of export.
                DisableUnwantedExportFormat((ReportViewer)sender, "XML");
                DisableUnwantedExportFormat((ReportViewer)sender, "CSV");
                DisableUnwantedExportFormat((ReportViewer)sender, "IMAGE");
                DisableUnwantedExportFormat((ReportViewer)sender, "PDF");
                DisableUnwantedExportFormat((ReportViewer)sender, "MHTML");
                DisableUnwantedExportFormat((ReportViewer)sender, "EXCELOPENXML");
                DisableUnwantedExportFormat((ReportViewer)sender, "WORDOPENXML");

  • Movement Types for Receipt and Consumption

    Dear all,
    I am an ABAPER.
    My requirement is to develop a Material balancing report.
    In which i have to display
          Opening Stock
          Value
          Receipt
          Value
          Consumption
          Value
          Closing stock
          Closing value
    for a material.
    Here I need to know the table and fields for the above mentioned output fields.
    Particularly i need to know what are the
    movement types for Receipt and
    movement types for Consumption
    Can anyone let me know?
    Regards,
    Prem

    hi,
    few reports are:
    MC45 INVCO: Analysis of Usage Values
    MC46 INVCO: Analysis of Slow-Moving Items
    MC47 INVCO: Analysis of Reqmt Values
    MC48 INVCO: Anal. of Current Stock Values
    MC49 INVCO: Mean Stock Values
    MC50 INVCO: Analysis of Dead Stock
    MB51......
    TAbles:
    MVER - Material consumption.....
    MARC Plant Data for Material
    MARD Storage Location Data for Material
    MSLB Special Stocks with Vendor
    MSPR Project Stock
    MKOL Special Stocks from Vendor
    MSKU Special Stocks with Customer
    you can see al the mvt types in T156 table...
    Hope it helps...
    Regards
    Priyanka.P

  • MB5L Report Discrepacy for Material and Stock Account Currency

    I have found in the MB Report Discrepancy for Material and Stock Account Currency. Why is this happening? Why is there a variance between total price in materials and stock account? Anyone please help me. I'm abaper but now been pushed to do logistic. I need help for this issue.

    Hi,
    Here's some information from help. Variances can occur for the following reasons:
    You have entered postings to the stock account manually.
    The stock account includes not only stock postings, but also other postings. In this case, you should check the account determination in the Customizing for Valuation and Account Assignment. Make sure that the stock accounts are used solely for the transaction key BSX (stock postings).
    Check Account Determination - OMWB
    The account assignment for the stock accounts (transaction key BSX) was changed during productive operation; the respective stocks, however, were not deducted from the old account (movement type 562) and posted to the new one (movement type 561).
    Cheers !

  • Save as pdf and excel file

    Hi All,
    Can anyone tell me how to save data available in a node(model or value) as pdf and excel files?
    Thanks in advance.....
    Bhushan Reddy.

    Bhushan,
    check these links for saving as excel
    Excel Export - Funky Column Headers
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/webDynproJava-ExportingTableDataUsingOn-DemandStreams-SAPNW+7.0
    Exporting table data to MS-Excel Sheet(enhanced Web Dynpro Binary Cache)
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/webDynproJava-ExportingTableDataUsingOn-DemandStreams-SAPNW+7.0
    Handling FileUpload and FileDownload in NetWeaver Developer Studio(NWDS) 2004S
    New Web Dynpro Java Tutorials - Uploading and Downloading Files in SAP NetWeaver 7.0
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
    Thanks
    Bala Duvvuri

  • Taking zip, pdf and excel file Offline

    Hi All,
    The App has fixed number of zip, pdf and excels (10, 15, 5) files which periodically gets updated, using the updated feature the app updates all the files currently.
    Is there a way where the App can replace all the updated files offline from the server "offline synnchronization" .
    srinath

    Yes, but it's very complicated and requires a set of custom-made scripts.
    The easiest way of doing it is by converting the Excel file to a plain-text
    file (like a CSV file) and then attach that file to the PDF and use it as
    the data source for the script that populates the fields.
    On Mon, Oct 20, 2014 at 4:46 PM, amcwilliamslge <[email protected]>

  • I download itext  for convert jsp to PDF. How to set content type for PDF.

    I download itext for convert jsp to PDF. How to set content type for PDF. I try
    <%@ page contentType = "application/pdf;charset=TIS-620" %>
    , but the page does not PDF.
    Thank.

    PDF files are usually binary files, JSPs are not well-suited for binary content.
    (If you download the result of your JSP you'll see that it is not a valid PDF file; it will have probably a lot of whitespace and linefeeds, that will choke your PDF reader.). The first few characters must be
    "%PDF-" without whitespace.
    You can try using PDF files encoded as text - check if you can use text-encoded PDFs in iText.
    Try using a Servlet instead.

Maybe you are looking for

  • Can we create service po from sales order

    HI can we create sales order from service po. if yes then how can we do so.

  • Using a list to rs

    PHP/MySQl Dear All, how do I achieve the following. The field, "general.emails", contains a list such as "1, 3, 5". The rs only produces the first email name. SELECT email.emlID, email.fname, email.title, general.emails FROM email INNER JOIN general

  • OCR not showing up even with Export PDF downloaded.

    So, I have the standard version of adobe reader and I have purchased Export PDF however, still it does not auto OCR when I triple click on the text box. I went to tools and the option is not even there. What do I do? I am completely lost. Is OCR only

  • The first listed mirror for Australia hasn't been updated since august

    I've had Arch for about a month and was wondering why my system never seeemed to upgrade anything. Now I know:D ftp://mirror.pacific.net.au/linux/archlinux/ is listed in the official mirror list in both the wiki, and in /etc/pacman.d/mirrors that is

  • Sub account problems with outlook express

    I have a slight problem in that I use outlook express as my email software and have no problems receiving my emails but I have a sub account for my partner and I cannot receive her emails so if anybody can help I would be very greatfull. I have only