Type of report for pdf and Excel

I have the code to generate the report to pdf format.

I want to let users to choose the type of report 'pdf' or 'excel '.

I have need spend the selection of the user of the UI for < cfreport format = "PDF" or "Excel".

Can you please tell how I can pass the user lsReportType to my cfReport report Type select it?

Your information and help is much appreciated,

Kind regards

Iccsi

< cfstoredproc procedure = "spGetReportType" >

< name cfprocresult = resultset "rsReportType" = "1" >

< / cfstoredproc >

< cfreport format = "PDF" template = request "MyReport.cfr" = "#myQuery #" >

< / cfreport >

< td > < select width = "50" name = "lstReportType" id = "lstReportType" >

< cfoutput query = "rsReportType" >

< value = "" #rsReportType.ReportTypeID # the option ' < cfif (isDefined "(form." ReportTypeID') AND shape. ReportTypeID EQ rsReportType.ReportTypeID) > selected = "selected" < / cfif > > #rsReportType.ReportType # < / option >

< / cfoutput >

< / select > < table >

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

Tags: ColdFusion

Similar Questions

  • Output PDF and Excel cell spacing problems

    Hi all..
    I have a report and a model whose production should be both in PDF and Excel.

    Lets say I have two tables put one under the other. (Table 1 and table 2 below it..)

    Table 1 has 5 columns and table 2 to 30 columns.
    In PDF format because it is difficult and ugly to display 30 columns, I made 6 (very small font) fonts

    Output PDF seems fine. But, when I open the reort in excel... all dirty sound upward and ugly.
    Width of column 1 of the table is very uneven. lI noted that table 1, table 2 coulmns width are the same...
    For my requirement, they must have widths separated... Also... When I open the report in Excel, I always get in 6 font size which is ugly

    I want the table1 column width and width of column 2 of the table in as separate Excel...

    How to achieve them.

    In the RTF model
    Add this as the first statement

      
    

    in the rtf template, you can add a conditional section for the different output format.

    
    
    
    or
    
    
    
    

    Add the size of font font size programmatic, rather than by using word

  • How to find the path of reports to PDF and send them via JAVA?

    Hi expert,

    We have created many reports of OBIEE, how to find the way of reports to PDF and send them via JAVA?
    Catalog/shared /..., but it is a binary file that is not sent to the customers.

    Hey kobe,.

    You can try this:

    http://satyaobieesolutions.blogspot.com/2012/07/setting-up-iBOT-to-save-report-to.html

  • "The file is not found" error message when you try to view recent items list for word and excel files

    Title files: original vista on the recent items list does not open

    When I select a file from my recent items list, I get an error message indicating that the file is not found, but it lists the correct path to the file, and if you go to this path of the file, the file is clearly there.  This happens with word and excel files but not the adobe pdf files.

    Hi GillianMO,

    Remember to make changes before this problem?

    Method 1: Run the fixit available in the links below and check if that makes a difference-Worth to try
    Diagnose and repair Windows files and folders problems automatically
    Difficulty of broken desktop shortcuts and common system maintenance tasks

    Note: FixIt would attempt to recover bad sectors on the hard disk, in the course of this process there are chances of DATA loss from that particular area.

    Method 2: If a Protection of resources Windows (WRP) file is missing or is damaged, Windows may not behave as expected. Auditor of file system (CFS) scan to fix all of the corrupted system files. To do this, follow the steps mentioned in the link below:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    If the problem persists, I suggest you to send your request in the Forum Office for more specialized help.

    Office Forum

    http://answers.Microsoft.com/en-us/Office/Forum/Excel?page=1

  • The file extensions XMP and XMP for pdf and images

    I'm working on a mac software Aperture and it seems to do a very good job of handling and copy/import and export of metadata.

    I wonder two things:

    1. I know images have IPTC information elements and I wonder if there is a party any of image metadata which are the same as pdf and metadata if it may be possible to simply export the data of my images so that I can import it into my PDF. in many cases, the pdf file is created from my images (with the addition of text) so it would be very convenient to just take the metadata from my pictures and put it in the PDF files.

    2. is there a way to READ a xmp file I exported from a pdf file in Acrobat on my desk so I can see what's inside?

    Thank you

    There are three types of metadata in a PDF file:

    • Images can have their own metadata (copied from the original file when it was incorporated) - it is not visible in Acrobat, but can be eliminated with optimization PDF or disinfect.
    • The PDF file's properties (title, author, etc.) that are part of the PDF XMP schema, and you can add one of the desired (for example, using Adobe Bridge) XMP schemas.
    • The PDF file has other properties (language, print settings, etc.) that are part of the flow of content and not reflected in the XMP tree at all.

    There is nothing technical to stop integrate you anything in the XMP (including patterns IPTC Core and Extensions) stream, but they may not make sense in the context of a PDF file, especially if it contains more than one asset. For example the idea of a version of model ID is not valid unless the PDF file contains a single image.

    . The XMP files exported by Acrobat are just the XMP text files - you can open it in any text editor.

    To manage XMP metadata in PDF files, I strongly recommend the use of Adobe Bridge. Acrobat itself has very bad assumption for things like copy/paste and expansion patterns.

  • PDF and Excel reports

    Hello world

    BPM from Oracle 11g, we can export Excel list of the tasks of the Inbox or from any other point of view of the workspace of bpm? If this is not the case, how can we make export to excel feature in the bpm workspace.

    Thank you!.

    There is no OOTB capability to do this, but you can do this using the API HWF.

    Dan Atwood

  • Call in the report for PDF download query does nothing

    I am trying to download a PDF report based on 2 queries. Each query has a where clause clause with values taken from the page elements. I installed Publisher OBI 11.1.1.5 and used the term of Publisher 11.1.1.5 OBI plug-in to create the RTF file that I downloaded then the components Shared-> presentation of the State.

    I created a new button in the region to call the report query. However, whenever I click on the button to download the PDF file, nothing happens. I looked at the debug and the button seems to be running OK, except that nothing happens.

    The APEX of BOIP configuration works since I was able to have BOIP generate another report that do not use the predefined query. In other words, parts of reports including the attributes defined print "allow printing of the report = Yes" and 'layout of report = report default layout' work very well. Reports based on the query predefined and launched with a button in the region do nothing.

    Environment: APEX 4.1, DB 11.2.0.2, BOIP 11.1.1.5

    Any contributions to this PDF issue is greatly appreciated.

    Thank you
    Reid

    Hello Reid,

    Thanks for reporting back!

    It now works with a button linked to printing the report query URL. This method was not working before because when I deleted/recreated the presentation of the report, the layout of request report report had to "use generic Report Layout. When I changed the presentation of the report query to the name of the correct report layout, button link to the print URL worked as expected.

    He therefore finally brought its fruits check attributes...

    Still, he doesn't when I create a button with action = 'Download printable report Query'. I tried several times, but couldn't make it work. It seems that it is a bug, but I can't say for sure.

    It should work as long as you have configured the report query according to the needs and assured the session state is included.

    Go ahead rather than use the with action = "Download the printable report query", I'll use a button with Action is "Redirection of URL" where the URL is the URL for the report query printing.

    In this case, my guess would be the session state, because you will always she, when redirecting to the session, and the report query seems to agree.

    -Udo

    P.S.: If you don't mind, please check all useful or correct accordingly to ensure that other users of the forum search can identify those posts easily.
    Thank you!

  • HP EliteDesk 800 G2 Small Form: The front panel audio connector - this only made type to use for headphones and microphone

    Hello

    I am trying to determine what type of audio 3.5 mm plug to put into the connector on the front panel for the use of a headset to make video communications.

    could be - sleeve, ring and end cap (mono audio and microphone)

    or

    could be - sleeve, ring, ring and tip (stereo sound and microphone)

    Having read through the manuals and nothing is said on the type to use.

    Hello world

    Just plugged the connector 4 poles on my headset combination for my mobile phone (cellular) and the box of pop - up asked me to select headset or microphone - no selection for both.

    Looks like the right sleeve is for headphones only, and the left one is for headphones or micro - selectable by the user and not the two on a single sheet.

    Everything explained by the practice - but not the paperwork in the manuals.

    #5 for microphone or headset - menu popup is displayed after you insert a 3.5 mm plug to select that one but not both at the same time.  (So I can't use my headset to phone)

    Thank you

    Son

  • Different results for PDF and RTF NumPages when using for-each@section

    Hello world!

    I need to print the current page number and the number of pages for each (say) order.
    I use the Page and NumPages fields as well as the for-each@section:order group.

    As a PDF, I get what I expect
    Page 1/2
    page 2/2
    Page 1/3
    page 2/3
    page 3/3

    But in the RTF header I
    Page 1/5
    page 2/5
    Page 1/5
    ...

    and in the body
    Page 1/1
    page 2/1
    Page 1/1
    ...

    I would like to have the page numbering in RTF as I in PDF format.
    I use Word 2010 and BEEP for Word version 10.1.3.4.2 model generator.
    This is the model and the XML: http://dl.dropbox.com/u/709106/page_test.zip.

    Thank you in advance.

    Sebastian

    Published by: user5692810 on 5 March 2012 06:05

    Hi Sebastian,.

    There is a simple ;) solution:

    1. in a form field 'end for-each@section' create a dummy fo block with function "generate - id ().

    like this (but in a form field):

     
    

    2. on the page header and page footer uses the id of the current node generated by XSLT

    for example like this:

    Page:  NumPages: 
    

    3. on the body of the page

    Page:  NumPages: 
    

    the model and the XML after above changes is here:
    https://docs.Google.com/open?ID=0B_cJOGrr614bc1VES0I0dlNSNGFVWFFseHVQM3hYdw

    Andrzej

  • change the appearance of the default template for pdf to excel

    Hello

    I created a model of provision .rtf. When I run the program simultaneously, the default layout in pdf format. Is anyway to change that to Excel so that the user doesn't have to go into the options each time and select excel?

    Thank you.

    Yes, but you will probably need to apply a couple of patches. Lead article here: http://garethroberts.blogspot.com/2009/01/revisited-changing-default-layout.html

  • Type of API for Apple and Android

    Hello

    I used this API to recognize how the folio has been obtained and all works well at the platform from Apple, but in devices Android, I get an error message.

    Adobe DPS - reading SDK 2.30: adobeDPS-EntitlementType: JsDoc reference

    I'm trying 4.X Version Android App Native.

    Any ideas where is the error or this API is iOS only

    Screenshot_2014-08-01-04-18-30.png

    Where have you checed it? In the content viewer or app built with AppBuilder? It seems that you tried to check in the older version of the DPS viewer - read for Android API was introduced in v31.1.

  • I can't open hyperlinks in Outlook and Excel.

    Original title: I can't open all links (hyper)

    I can't open all links (hyper) for Outlook and Excel, I get this message (Dutch): Deze bewerking is geannuleerd vanwege systeembeperkingen. Filled with systeembeheerder neem contact op' but I am the administrator and there is nobody else working on this computer on the network?

    Hello

    1 did you change on your computer before this problem?

    2. this problem occurs only with Outlook and Excel?

    3. what version of Microsoft Office is running on the computer?

    4. are you using Internet Explorer? If Yes, what version of Internet Explorer you are running on your computer?

    Find out what version of Internet Explorer you are using

    http://Windows.Microsoft.com/en-us/Windows7/find-out-which-version-of-Internet-Explorer-youre-using

    You can follow the suggestions and check out them.

    Method 1

    Make sure that Internet Explorer is set as the default browser.

    Change the web browser by default

    http://Windows.Microsoft.com/en-CA/Windows7/change-your-default-Web-browser

    Method 2

    You can follow the procedure in the article.

    Hyperlinks don't work in Outlook

    http://support.Microsoft.com/kb/310049

    (There is place to Excel also)

    Note: Please note that reset the settings of Internet Explorer running resets all of the settings defined by the user, including those established by the installed extensions, toolbars and other add-ons for IE by default. This includes all the security, privacy and settings area. Also this will erase browsing history, delete all temporary Internet, cookies, form data files and especially all the passwords.

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following windows Help article.
    Back up the registry
    http://Windows.Microsoft.com/en-us/Windows7/back-up-the-registry

    If the problem exists, you can also publish in the Forums of Microsoft Office.

    http://answers.Microsoft.com/en-us/Office/Forum/officeversion_other

  • Report Total partial and Total formatting help


    Hello

    I need help with the format of Reporting for subtotal and total. The task that made me to try to find out if we can reproduce at APEX, a Cognos report. This report format is in such each subtotal will display the name of the district, and the name and the value must be "BOLD". In total, then will also be a name of the Organization as a 'total Institution '. So far, for the objective test, I have this demo using the Oracle OEHR data that follow and get the subtotal without the name and the total without the rollup group name and order of

    {

    Select distinct OEHR_CUSTOMERS_VIEW. COUNTRY_NAME as institution_sector,

    OEHR_CUSTOMERS_VIEW. CUST_FIRST_NAME as an Institution,

    sum (OEHR_CUSTOMERS_VIEW. CREDIT_LIMIT) as fall_2009,

    sum (OEHR_CUSTOMERS_VIEW. CREDIT_LIMIT) as fall_2010,

    sum (OEHR_CUSTOMERS_VIEW. CREDIT_LIMIT) as fall_2011,

    sum (OEHR_CUSTOMERS_VIEW. CREDIT_LIMIT) as fall_2012,

    sum (OEHR_CUSTOMERS_VIEW. CREDIT_LIMIT) as fall_2013

    of OEHR_CUSTOMERS_VIEW OEHR_CUSTOMERS_VIEW

    Group of rollup (COUNTRY_NAME, CUST_FIRST_NAME)

    order of COUNTRY_NAME, CUST_FIRST_NAME

    }

    This give me the results I want, but I want to print the name of instition_sector in subtotal, I won't show my institution_sector in nowhere in the report but my total part-time.

    SQL formatting report do not.

    Not tested the application, please try

    Select distinct NVL(OEHR_CUSTOMERS_VIEW. CUST_FIRST_NAME,NVL(OEHR_CUSTOMERS_VIEW. COUNTRY_NAME,'Total Institution') as an Institution.

    sum (OEHR_CUSTOMERS_VIEW. CREDIT_LIMIT) as fall_2009,

    sum (OEHR_CUSTOMERS_VIEW. CREDIT_LIMIT) as fall_2010,

    sum (OEHR_CUSTOMERS_VIEW. CREDIT_LIMIT) as fall_2011,

    sum (OEHR_CUSTOMERS_VIEW. CREDIT_LIMIT) as fall_2012,

    sum (OEHR_CUSTOMERS_VIEW. CREDIT_LIMIT) as fall_2013

    of OEHR_CUSTOMERS_VIEW OEHR_CUSTOMERS_VIEW

    Group of rollup (COUNTRY_NAME, CUST_FIRST_NAME)

    order of COUNTRY_NAME, CUST_FIRST_NAME;

  • Hello, I have just purchace pdf to word and excel converter and pay $ 24, but finally it's completely uselless for me because there no Greek language and convert the file completely incomprehensible... that I can speak for that?

    Hello, I have just purchace pdf to word and excel converter and pay $ 24, but finally it's completely uselless for me because there no Greek language and convert the file completely incomprehensible... that I can speak for that?

    Hi mariax7664987,

    Https://cloud.acrobat.com/ service export to Adobe PDF format is used to change the shape of PDF file format to other formats supported fire. His will not change the language of the PDF text.

    Kind regards
    Nicos

  • Downloads window blank and nothing download - only for PDF files?

    FF 25, Mac Mountain Lion.

    Last week, stopped download PDF files and the downloads window is empty. Tried Safe Mode and clear memory cache, as well as Disable selectively module DownloadHelper. Nothing has worked. Acrobat plugin is not used, I've always had PDF files in Acrobat itself opening.

    It seems to affect only PDF files.

    I do not have reset FF because it's so invasive and time-consuming. Any other solution before I resort to that (or switch to Chrome)?

    In order to change the default reader for PDF files (to not to open PDF files with the internal PDF reader to Firefox), do the following:

    1. Go to Tools > Options (or Firefox > Options).
    2. In the Options window, select the Applications tab.
    3. In the Search box, type PDF. You should find Portable Document Format (PDF).
    4. On the right referring, you should find a column of Action . To select your favorite PDF reader. In order to view PDFs in Firefox, choose Preview in Firefox.

    This solve your problems? The report please come back shortly.

Maybe you are looking for

  • Generate an equation from a graph XY

    Hello Does anyone know how to generate an equation from a graph XY. I had a set of data, generated a parcel interpolated the data set, and my model/curve is logarithmic. Although I would like to get the equation of the curve, the news, I'm really aft

  • How to transfer files from PC to PC via a serial port using labview

    I need to transfer files (.txt, .doc, .xls) from PC to PC via a serial port using LabVIEW. Is it possible to transfer files, if so how to transfer?

  • Security/System Center analysis report contradicts

    Problem 1 I use Vista. My Security Center is all green. I installed Norton, Malwarebytes, Threatfire. All running, no problem. When I gererate an analysis report system, I get messages that there is no antivirus product or malware installed. Tried to

  • HP psc 1410 could not set up the wireless network

    I have a hp psc 1410, a desk, a laptop and a modem router combo and I'm trying to do it to where I can print to the wireless laptop, I read stuff online but can't seem to make it work. Help, please

  • Access to the camera - work air player not on the Playbook

    Good day everyone. I use the following code to take a snapshot of the webcam and then save it with a button. It works when I run the app in the AIR drive, but on the Playbook is not access to the camera, nothing appears.