Limit report from being exported to excel

We have a report that we do not want to be able to be exported to excel. Is there a way, just on one report to limit the types it is exported toDBA

Hi DBAMT,
As Pete mentioned, by default, we can only disable Excel Render Extension for the server.
However, a possible workaround to disable Excel Render Extension for a simply report is using JavaScript to remove the Excel option from the export formats list.
Please follow these steps to do so:
1.       Go to the physical folder of the Report Manager.
By default, the folder is:
C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportManager
2.       Please open the folder “Pages”
3.       Open the file “Report.aspx” with notepad.
4.       Embed the following JavaScript at the end of the file.
<script language = "Javascript">
//javascript: get parameter from URL
function getParameter(paraStr, url)
var result = "";
//get all parameters from the URL
var str = "&" + url.split("?")[1];
var paraName = paraStr + "=";
//check if the required parameter exist
if(str.indexOf("&"+paraName)!=-1)
//if "&" is at the end of the required parameter
if(str.substring(str.indexOf(paraName),str.length).indexOf("&")!=-1)
//get the end string
var TmpStr=str.substring(str.indexOf(paraName),str.length);
//get the value.
result=unescape(TmpStr.substr(TmpStr.indexOf(paraName) + paraName.length,TmpStr.indexOf("&")-TmpStr.indexOf(paraName) -
paraName.length));
else
result=unescape(str.substring(str.indexOf(paraName) + paraName.length,str.length));
else
result="Null";
return (result.replace("&",""));
var timer2;
var dueTime2=0
function RemoveCTLExportFormats(format)
dueTime2 += 50;
if(dueTime2 > 30000)
clearTimeout(timer2);
return;
var obj=document.getElementsByTagName("Select");
for(var i=0;i<obj.length;i++)
if (obj[i].title == "Export Formats")
var k = -1;
for(var j = 0; j < obj[i].length; j ++)
if(obj[i].options[j].value.toLowerCase() == format.toLowerCase())
k = j;
obj[i].options.remove(k);
clearTimeout(timer2);
return;
timer2=setTimeout("RemoveCTLExportFormats('" + format + "')",50);
function RemoveOption(report, format)
if(getParameter("ItemPath", location.href).toLowerCase() == report.toLowerCase())
timer2=setTimeout("RemoveCTLExportFormats('" + format + "')",50);
else
return;
RemoveOption("/ReportSamples/10000rows", "Excel");
</script>
To enable the function, please pass in the “report path”, and the format in the method RemoveOption.
Sample: RemoveOption("/ReportSamples/report1", "Excel");
Please feel free to ask if you have any more questions.
Thanks,
Jin Chen
Jin Chen - MSFT

Similar Messages

  • How to Audit the Report which is Export to Excel and PDF

    Hi All,
    Is there any way that we can audit the report which is exported to Excel or PDF and what data the user is exporting to his local computer.
    We can audit the scheduled report with output Excel or pdf but i am not sure about the audit for report export activity to excel and pdf.
    Thanks & Regards,
    Rahul Akurathi

    Hi,
    You said that you have a new request number when you changed the program in Dev. Release that request and ask your Basis guys to move that transport to Testing Client. The program will be automatically updated in the testing client with the changes you have done in Dev when the transport gets imported in testing.
    Reward if useful.
    Thanks
    Aneesh.

  • Crystal Report: Error while Export to Excel

    We are using combination of Crystal Report 10 With
    J2EE, Below source code is working fine While
    exporting to PDF, MSWord, RTF format.
    if(selectedFormat.equals("MSWORD"))
    exportOptions.setExportFormatType(ReportExportFormat.MSWord);
    if(iPageFrom>0 && iPageTo>0)
    RTFWordExportFormatOptions RTFExpOpts=new
    RTFWordExportFormatOptions();
    RTFExpOpts.setStartPageNumber(iPageFrom);
    RTFExpOpts.setEndPageNumber(iPageTo);
    exportOptions.setFormatOptions(RTFExpOpts);
    But am getting following error while exporting report
    to Excel
    com.crystaldecisions.report.web.viewer.ReportExportControl
    Invalid post back event : {0}
    We would like to know, Is SDK feasible for exporting
    to excel or not ?
    If yes! then Please suggest us for same.
    Thanks In advance :)

    I will make sure that I am on the latest patch ie SP4
    https://smpdl.sap-ag.de/~sapidp/012002523100008782452011E/cr2008sp4.exe
    You can find the rumtimes here:
    MSI:
    https://smpdl.sap-ag.de/~sapidp/012002523100008782532011E/cr2008sp4_redist.zip
    MSM:
    https://smpdl.sap-ag.de/~sapidp/012002523100008782522011E/cr2008sp4_mm.zip
    ClickOnce
    https://smpdl.sap-ag.de/~sapidp/012002523100008782442011E/cr2008sp4_clickonce.zip
    Recompile the app and then deploy.
    What is the .NET Framework used by the application?
    Method of deployment?
    OS where app is deployed, x86 or x64?
    Are you able to export the report from designer ie CR2008 Standalone?
    - Saurabh

  • Report columns not exported to excel if the column values are links(URLs)

    Hi Friends,
    I am facing this weird situation in my development environment at work using Apex 3.1.2.00.02.
    There is this report where I am using this huge query below to show the statistics of various file loads.
    SELECT f.load_date "Load Date",
           c.cust_name "Customer",
           a.file_id "File ID",
           f.rec_count "Total Records Processed",
           a.success "Successful Records",
           a.file_translation_errors "Customer Validation Errors",
           a.data_referential_errors "CS Validation Errors",
           a.no_activity_type_assigned "No Activity Type Assigned"
      FROM (SELECT   file_id,
                     NVL (MAX (success), 0) success,
                     NVL (MAX (file_translation_errors), 0) file_translation_errors,
                     NVL (MAX (data_referential_errors), 0) data_referential_errors,
                     NVL (MAX (no_activity_type_assigned), 0) no_activity_type_assigned
                FROM ((SELECT   file_id,
                                COUNT (*) success,
                                NULL file_translation_errors,
                                NULL data_referential_errors,
                                NULL no_activity_type_assigned
                           FROM ah_activity_external
                          WHERE status_id IN (43, 53)
                       GROUP BY file_id)
                      UNION
                      (SELECT   file_id,
                                NULL success,
                                COUNT (*) file_translation_errors,
                                NULL data_referential_errors,
                                NULL no_activity_type_assigned
                           FROM ah_cust_gis_arch
                          WHERE status_id IN (1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 22, 23)
                       GROUP BY file_id)
                      UNION
                      (SELECT   file_id,
                                NULL success,
                                NULL file_translation_errors,
                                COUNT (*) data_referential_errors,
                                NULL no_activity_type_assigned
                           FROM ah_cust_gis_arch
                          WHERE status_id IN (24, 15, 16, 17, 18)
                       GROUP BY file_id)
                      UNION
                      (SELECT   file_id,
                                NULL success,
                                NULL file_translation_errors,
                                NULL data_referential_errors,
                                COUNT (*) no_activity_type_assigned
                           FROM ah_activity_internal
                          WHERE status_id IN (26, 31)
                       GROUP BY file_id))
               WHERE file_id IN (
                        SELECT file_id
                          FROM ah_chain_file
                         WHERE chain_id = :p2_customer
                           AND load_date BETWEEN :p2_load_start_date AND :p2_load_end_date)
            GROUP BY file_id) a JOIN ah_chain_file f ON (    a.file_id = f.file_id
                                                         AND f.file_default = 'N')
           JOIN ah_chain c ON (f.chain_id = c.chain_id)In the above query I have made the following columns as links which would redirect to other pages showing the respective records.
    1) "Successful Records"
    2) "Customer Validation Errors"
    3) "CS Validation Errors"
    4) "No Activity Type Assigned"
    Also I have enabled CSV output under "Report Export"
    Now the issue is when I downloaded this entire report into spreadsheet, only the non-url columns are being exported.
    I have even made sure that "Include In Export" under Column Attributes is set to YES.
    I tried to reproduce this issue using Dept & Emp tables but it seems to be working there.
    I don't know if it is the query which is causing this issue or a genuine Apex bug.
    Hope someone might have faced some thing like this earlier.
    Appreciate your thoughts on this.
    Thanks,
    Raj.

    Raj,
    see if this helps you:
    http://apex.oracle.com/pls/otn/f?p=31517:22
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Handling page breaks in Crystal Reports XI when exporting to Excel

    We generate reports in Crystal Reports and programmatically export them to Excel for our end users, so the user receives both an .rpt and .xls version.  We are upgrading from Crystal 8.5 to Crystal XI and have found with some of our reports that the page breaks in Excel are different in Crystal XI than in 8.5.  The first page will fill to the end and then the next page will contain a few lines of data, the next will be full and the next will contains a few lines.  Viewing the Excel page breaks, there are soft breaks before the short pages and hard breaks before the long pages.  It's as if there is too much data defined for each page so it spills onto the next page before creating another hard page break.  In Crystal 8.5, the paging was continuous as expected.  Is there any way to fix this in Crystal XI?

    Please note, this forum is dedicated to topics related to legacy SDKs, including the Report Designer Component (RDC), OCX, VCL, and Crystal Reports Print Engine (CRPE).
    As the issue you are encountering is in the CR designer, please post your query to the Crystal Reports Design forum at:
    SAP Crystal Reports
    I'd also suggest adding more detail to your query; version of Crystal Reports used, is this an upgrade issue, new report issue, etc., etc.
    Thank you for your understanding,
    Ludek

  • Missing report header when exporting to Excel

    When exporting to Excel from an ASP.NET application (Visual Studio 2003), some reports do not include the report header section.  The reports headers are there when exporting to PDF.
    I cannot see any obvious difference between the reports that export the report header and those that do not.  I believe that I have the latest service pack.

    I am using Microsoft Development Environment 2003 Version 7.1.6030.  The About Box only says Crystal Reports for Visual Studio .NET.  It does not show a version number.
    I have not been able to find any information regarding ExportHeaderAndFooter or even ExportHeader.  They do not appear to be options in this version of Crystal.
    I have tried reducing the report header to a simple text object that works OK on another report but it will still not export on this one.  The report footer does export OK though.

  • None of the cross tabs are being exported to Excel

    Hi All,
    I am experiencing a strange problem of export failing when any of the cross tab is exported. It comes out with a message,
    "An error occurred while trying to export the Worksheet.
    (Export failed.) "
    This is occuring in Plus and Viewer.
    But All the tables are being exported without any problem.
    Any Idea ???
    Thanks

    Only iTunes purchases may copy over via File > Transfer Purchases - otherwise syncing is one way, from the computer to the device. To get the rest of your music/films etc onto the new computer you can copy the backup from your old computer onto the new one and then load them into iTunes

  • Column Header in 2 rows in report file but export to excel data only displays only bottom row of column header

    Post Author: blofrese
    CA Forum: Exporting
    I am using Crystal XI and need to output several columns worth of data. Do to so I attempted to have the data presented in 2 rows within the same section.
    Example:Page Header b contains:  7 columns  5 columns
    Details a contains:  7 columns  5 columns
    When exporting to excel data only I only see the bottom 5 column header info and all the detail data in the correct order. How do I get all the Headers to display on the export file?
    Thank you for your time.

    Post Author: jw1234
    CA Forum: Exporting
    I have the same problem. Have you find the solution yet??
    I'm trying to export as Excel data only and have 2 page header band. It only display the 2nd band with the bottom label. None of the 1st band shows up. 
    Page Header a contains:Report TitleDate Range
    Page Header b contains:Dept Name4 columns
    Please help. Thanks!

  • Crystal reports 13.5 : Export to excel formatting

    Hi. We are developing web application using VS 2010. We are using crystal reports 13. Initially we had VB6 application which used crystal reports 8.5. The format for excel report generated by crystal report 8.5 and crystal report 13.5 is different. We are using the export option in crystal report viewer for both reports. Is there any way in which we could make changes to crystal reports 13.5 to achieve similar excel formatting as crystal reports 8.5.

    Hi Pooja,
    Back in CR 8.5, it was the RDC COm SDK (CRAXDRT.dll) and with CR for VS 2010 it is .NET SDK which are two complete different SDKs and could not be compared.
    However, the .NET SDK should export the report same as it is exported through CR designer.
    Could you export the report in a newer designer possibly CR 2008 or CR 2011/2013 and compare the exported output with your .NET SDK export?
    You could get the trial free download for CR desiner here.
    http://www.sap.com/solution/sme/software/free-trials.html
    - Bhushan
    Senior Engineer
    SAP Active Global Support
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Getting started and moving ahead with Crystal Reports .NET applications.

  • Import data from table,export to excel----URGENT

    Dear all ,
    I have a requirement of importing data from database table and then export those data to excel. that means irrespective of column number and row number present in the table,i have to export that table's records to excel. In my from i have text field, by which user will enter table name, it will validate whether DB have that table....if that table present in DB , i have to export it's data to excel..............
    any kind of help and suggestion is welcome

    Welcome to the Oracle Forums. Please take a few minutes to review the following:
    <ul>
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>Announcement: Forums Etiquette / Reward Points
    </ul>
    Please provide us with your Forms version, Java version and Client OS version. This information is needed in order to offer you potential solutions. Performing this task in Forms 6i (Client/Server) is completly different than in Forms 9i/10g/11g.
    With respects to your "Urgent!" request. You have to understand that forum contributers are all volunteers - this is not our full-time job. If your issue is truely urgent, it is always best to open a Service Request (SR) with Oracle Support than to rely on the forum for an urgent reply! ;-)
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • VF05 Report(ALV GRID REPORT) to be exported into excel without  Header

    Hi
    I need to export the VF05 Billing due list report(ALV Grid Report) into excel with out having the Top of the page. I need to export only the bottom grid into excel sheet.
    Plz help me on this.  URGENT

    Dear Chandra sekhar
    Once VF05 is executed, select "List" on top left followed by "Save - File" and "Spreadsheet".
    By default, the data will be downloaded into a text file.  Open the file and select "Save as" and choose "Excel" and save.  Now you can make changes whatever you want.
    Thanks
    G. Lakshmipathi

  • Stopping Reports from Being Generated

    When I first tried Network Magic I set up the reporting function. Essentials which I finally purchased does not have the reporting function but my computer is still trying to send reports. How do I turn that function off.

    I am fairly new at this so let me try my best to answer these questions:
    Crystal Reports  XI
    Visual Studio? Not sure
    No service pack applied. How and where do i get it?
    I am using Windows XP
    I am not viewing the reports as it has to be generated before i am able to view and the systems does nothing after I click the generate button
    No  have not tried to view a single report; i don't know how.
    I have not used Crystal reports designer for anything else.
    Edited by: Sharon Aird on Dec 1, 2008 5:05 PM

  • Filters and Export to Excel (BI 7 report in portal)

    Hi all
    We are seeing some interesting behaviour with the data being exported to excel. 
    The steps to create the problem are -
    - run report
    - filter to limit the data,
    - "export to excel"
    When checking data in excel - the full set of data (that is, prior to the filter being applied) has been transfered.
    Could someone please confirm the following -
    1. is this expected behaviour ?
    2. are there any configuration items that need to be done to export only the filtered data as seen on the current report on the screen ?
    3. any other suggestions ?!
    I look forward to hearing from you.
    Kindest regards
    Karen

    with your product version there are little options you have.
    1. Upgrade to the latest SP and patch on XIR2 (SP6, fp6.4) and re-test
    2. Upgrade to current product release.
    3. figure out what has changed and how in the report and reverse those changes.

  • Hyperion Financial Report Export to Excel Issue

    Hello,
    We recently upgraded to 11.1.2.1 and I have had several users tell me that they are having an issue when trying to export a report from the workspace into Excel. It hangs up their computer and they have to close down the browser and start over. I had a user today try exporting to Word and Power Point but they still had the same problem.
    Unfortunately, there are not any error messages to share so hopefully someone else has seen this before and has a solution. I'm assuming it has to be an IE setting somewhere, but not sure where to start looking. Any assistance would be appreciated.
    Thank you,
    Jason

    Mehmet,
    Thank you for the quick response. It turns out this was something the users were doing. In 11.1.2.1 if a user does an export to Excel and when it asks do you want to save or open the file, if the user selects Open then a bunch of error messages popup and sometimes locks up the computer. We had instructed all of our users that they must first save the file, then open it and it should solve this issue for the time being. I had put a ticket into Oracle for this problem and they are still working on it. I will update again if/when they provide a more permanent solution.
    Thanks,
    Jason

  • Any ideas on how to merge 2 reports on page to export to Excel or PDF?

    This is for OBIEE 11g (we are currently running 11.1.1.6.8). We have a user requirement to put the prompt selections on each report that is exported to Excel or exported to PDF. This requirement has to do with auditors. We cannot use the Filter Criteria view because we have saved filters that contain other saved filters so not all of the filters are shown. What the users want is to just have the ability to Export to Excel or PDF for one report and add the prompt criteria so that it also shows in Excel or PDF. We know we can use presentation variables and create a narrative view to show all of the prompt criteria. But we don't want to have this in a view in the compound layout of every report on the page (we have many pages with many reports on them). What we would like to do is have the Export (to Excel or PDF) download the prompt criteria (like when you use the printable HTML and printable PDF functionality only we want this for one report). So think of merging the report that is being Exported to Excel or PDF with another report that is built to show the prompt criteria. Is anyone else doing this kind of functionality? Any ideas on how to do this with javascript?
    We created an SR on this to find out if Oracle had some ideas but they did not and said that this is already an enhancement request ( Bug 8242921: ALLOW PROMPTS TO BE DISPLAYED WHEN DOWNLOAD TO EXCEL)
    Any help would be appreciated. Marybeth

    Did u tried the first method? i.e directly exporting the analysis to excel?
    Thanks.

Maybe you are looking for