How restrict the export option in CrystalReport

There are many export format in crystal report when user click on export (save) button
1. Crystal Report
2. PDF
3. HTML 3.2 and HTML 4.0
4. Microsoft Excel (97-2003)
5. Microsoft Excel (97-2003) Data-only
6.Microsoft Word (97-2003)
...etc
I want keep only CrystalReport and PDF and remove the rest of the formats. Please help me in it?
Thanks,
DynaCrystal

Hi,
As discussed earlier, the only workaround possible is to export your reports using code. Thus, I am providing you the following sample code to export report to specific format (i.e. PDF in this case)
<%@ page import = "com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException" %>
<%@ page import="com.crystaldecisions.sdk.occa.infostore.IInfoStore"%>
<%@ page import="com.crystaldecisions.sdk.occa.infostore.IInfoObjects"%>
<%@ page import="com.crystaldecisions.sdk.occa.infostore.IInfoObject"%>
<%@ page import="com.crystaldecisions.sdk.framework.IEnterpriseSession"%>
<%@ page import="com.crystaldecisions.sdk.framework.CrystalEnterprise"%>
<%@ page import="com.crystaldecisions.sdk.framework.*"%>
<%@ page import="com.crystaldecisions.sdk.occa.report.application.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.managedreports.*" %>
<%@ page import = "com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat" %>
<%@ page import = "java.io.ByteArrayInputStream" %>
<%@ page import="java.util.Locale" %>
<html>
<head>
<title>Export Report</title>
</head>
<%
     // Set the logon information
    String boUser = "Administrator";
    String boPassword = "";
    String boCmsName = "localhost";
    String boAuthType = "secEnterprise";
    String reportName = "Customer";
    // Logon and obtain an Enterprise Session
    IEnterpriseSession boEnterpriseSession = null;
    boEnterpriseSession = CrystalEnterprise.getSessionMgr().logon( boUser, boPassword, boCmsName, boAuthType);
     // Get the Report Application Factory service from Crystal Enterprise
     IReportAppFactory rptAppFactory = (IReportAppFactory)boEnterpriseSession.getService("", "RASReportService");
        // Get the InfoStore service from Crystal Enterprise
     IInfoStore boInfoStore = (IInfoStore)boEnterpriseSession.getService("", "InfoStore");
        // Retrieve the report by name from Crystal Enterprise
     IInfoObjects boInfoObjects = boInfoStore.query("Select SI_ID From CI_INFOOBJECTS Where SI_NAME = '" + reportName + "'");
        // Open the report into a Report Document object
     ReportClientDocument rcd = rptAppFactory.openDocument((IInfoObject)boInfoObjects.get(0), 0, Locale.ENGLISH);
     // WORKING WITH THE PRINT OUTPUT CONTROLLER
     // Use the report documents PrintOutputController to export the report to a ByteArrayInputStream
     ByteArrayInputStream byteIS = (ByteArrayInputStream) rcd.getPrintOutputController().export(ReportExportFormat.PDF);
     // EXPORTING THE REPORT
     // Create a byte[] (same size as the exported ByteArrayInputStream)
     byte[] buf = new byte[2000 * 1024];
     int nRead = 0;
     // Set response headers to indicate pdf MIME type and inline file
     response.reset();
     response.setHeader("Content-disposition", "inline;filename=untitled.pdf");
     response.setContentType("application/pdf");
     // Send the Byte Array to the Client
     while ((nRead = byteIS.read(buf)) != -1) {
       response.getOutputStream().write(buf, 0, nRead);
     // Flush the output stream
     response.getOutputStream().flush();
     // Close the output stream
     response.getOutputStream().close();
%>
Regards,
Shreyans Surana

Similar Messages

  • How do I share a new project on imovie if the export option is greyed out and not an option?

    how do I share a new project on imovie if the export option is greyed out and not an option?

    nicoleking wrote:
    ... I heard that if you bring in your old iPhone, they will give you a new one with some kind of fee, but I don't know how that works.
    https://discussions.apple.com/message/22920500

  • Does anyone know how to hide the export option for excel 2007

    Does anyone know how to hide the export option for excel 2007?
    We are having an issue with negative numbers downloading as text field in excel 2007, works fine in excel 2003.
    We are on version 11.1.1.7.0 of OBIEE.
    Thanks for any response.

    Go to iTunes>Preferences>Devices and highlight the backup you want to delete and click on Delete Backup

  • Convert pdf to word doc-but don't have the export option.

    I want to convert a pdf (that I got from an email) into a Word doc so I can edit it the way I want to. However, for some reason now I don't have the 'Export' option in my File drop down list.
    Funny thing is, I've converted the document once already and have entirely forgotten how I did it obviously!
    I've made so many changes in my first conversion I want to start over.
    why don't I have the 'Export' option? Or ... when I do a 'save as' and chose 'word doc' it only does a copy - paste type save - where I can't make any changes. It's like it puts it into a text box or something.
    I have MSWord 2010.

    Hi Kelly,
    MsDennis1465 wrote:
    When I do the steps below, the Word doc that is saved is like a photo. I am unable to work with the document. Why does it do that? I have converted pdf’s before without that happening but I think I did it on a free 30-day trial of X Pro.
    This usually happens when you're dealing with a very poor quality scanned document that doesn't have enough data for the Acrobat OCR engine to actually process.
    As for Acrobat 6.0 Pro, I don't believe the Save as Word function was introduced until version 8.0, but it's been a few years and the memory of Acrobat 6 has faded a bit.
    -David

  • I'm trying to Export my completed video; however, the Export option is grayed out in the File Menu.

    I'm trying to Export my completed video; however, the Export option is grayed out in the File Menu.  What am I not doing?

    GregEW2
    Thanks for the follow up.
    From what you wrote, you have Premiere Elements 10. Is that on Windows 7 64 bit or other. For now I will assume Windows 7 64 bit. If version 10 is on Windows 7 or 8 64 bit it is a 64 bit application running in the 64 bit system which makes it possible for full use of the 64 bit resources. That is good news especially when you are trying to take a large project to completion.
    You set up the project preset in the new project dialog to match the properties of your source media. That setting directs the program to establish the right space in the Edit Mode Monitor for editing purposes. That project preset also directs the program as to what disc menu set (s, w, or hd) will be available to you in the disc menu section. The project preset also has more subtle effects on the project settings.
    What is you plan for exporting your Timeline, export to file saved to the computer hard drive or burn to disc DVD or Blu-ray? Keep in mind that the setting for the project preset do not prohibit variations in the export choice under most conditions. If you post a description of your source media and how you would like to export it, I will offer some very specific guidelines on that.
    If you do go the purchased book route, please try for one which is specific to your version 10. There has been a marked change in interface starting with version 11. Often principles remain the same from version to version, but features do not. And, I always write "It is very frustrating to be armed with principles when you cannot find a feature."
    I suggest that you start with the Premiere Elements 10 Help PDF and then decide what next.
    http://help.adobe.com/en_US/PremiereElements/10.0/Using/index.html
    Also check out
    http://tv.adobe.com/show/learn-premiere-elements-10/
    A lot of these links that say version 10, roll over to 11.
    Steve Grisetti, the moderator of this forum, writes books on Premiere Elements if you are interested in the purchased book route.
    Hope the information above is helpful. Above all do not hesitate to ask if you have questions on your Premiere Elements workflow or need clarification on anything written.
    Thanks.
    ATR
    Add On...
    I did not see SG's post before I submitted this reply to you.

  • I make videos using my go pro hd camera, but when i export it only half of my 3 min video shows up with the audio playing in the background, plus when i try to select the quality in the export options it won't let me select 720p or 1080p?????? help!!!

    i make videos using my go pro hd camera, but when i export it only half of my 3 min video shows up with the audio playing in the background, plus when i try to select the quality in the export options it won't let me select 720p or 1080p?????? help!!!

    What you could do now is break up your video into smaller parts and render them out, then assemble them again as a whole.
    I know this is not the best fix, but it might work.
    You can duplicate an edit in the main screen, then delete the last bits and export,
    do the same for the other half.
    Then import the two bits (or more if you need) in a new edit.
    Out of curiosity, can you post what format the video is in?
    Copy a video straight from the camera to your computer.
    Open it in Quicktime player, and with out playing type Apple + i
    or Control + i for PCs
    It should tell you lots of info about the video, and might help us to see what is wrong.
    This is what it looks like:

  • How disable the export feature in Discoverer

    Hi there,
    I appreciate if someone can help me in these two subjects, well
    1- For security purposes I wish to disable the export option from Oracle Discoverer V
    10g. Can someone please help?
    2- Can in get a full log file about all activities performed during session login?
    Thanks

    Hi,
    You can remove the link of the export.
    log in to the enterprise manager, go to Discoverer->Discoverer Viewer
    go to the customization tab, in the drop down list change to "Layout" and press the "GO".
    it the "action links" you will find a check box for the "Export" Remove it.
    You may nee to restart the application or clear cache.
    Good luck
    Tamir

  • Customize the Export option as ONLY in CSV format

    I designed the detail report which has 17585 rows and 52 columns, If I export the report in excel its taking long to download (7-10 Mins 148 MB Size with all formatting properties), where as in DATA CSV format its taking less than a min and the file size is 4.4 MB.
    Is there is any option where I can only customize the Export option as CSV format. Also my report contains Narrative view for the Heading, Can I add the Export link some where on the Narrative view that is in CSV format.
    Please help me out with this issue.
    Thanks

    Try to use url for the same report and add the these at the end of url, so that on click user can download only as .csv
    *&Format=txt&Extension=.csv*
    Irrespectiev of version you can use the below link for URL
    http://docs.oracle.com/cd/E21043_01/bi.1111/e16364/apiwebintegrate.htm#CACCHBHC
    Just in case check this too to disable links
    Re: Disable or Hide return link
    Appreciate if you mark as correct/helpful if helps
    Edited by: Srini VEERAVALLI on Dec 20, 2012 5:05 PM

  • How to restrict the Delete option in CRMD_ORDER transaction

    Hi
    We want to restrict the user from delete the CRM Order . Through BADI i can only check the user whether he is eligible for the function or not. But the Client wants it to be enable or Disable as per user logged in ,open an CRM Order in changed mode.So how to proceed.
    Please advice.
    Regards
    Deb

    Hi Deb,
    As suggested by Amrish you can create User role and assign the authorization to the transactions, Once you are done you can check the same with the help of transaction SU53. Run any transaction and immediatly after that run the transaction SU53 and this will give you what authorization obect was checked.
    <b>Reward points if it helps!!</b>
    Best regards,
    Vikash.

  • How do you minimize the export setting screen becuase mine is too big and I cant go on the export option

    how do you minimize the export setting screen becuase mine is too big and I cant go on the export option

    The export dialog is manipulated in the same way as any window.  If you don't have enough screen real estate to grab the edges of the dialog and change it's size, then you may need to work on a larger screen, or at least increase the display resolution of the screen you're on.

  • Restricting the user options in the sales information system

    Hi,
    We use user information system for sales managers. We use T-code MCSI and the we choose customized information system S904.
    Our goal is to restrict the options of each sales manager because we want that the sales manager only have access to his own information.
    We try with the Parameter_ID VKB (sales office) but in this case the field is previosly filled but the sales manager can change it.
    We use Authorization Data also but the sales manage still also can access to the sales of the others sales manegers.
    How can i solve it?
                 Best Regards
                     João Fernandes

    hi.
    Please find the answer below :
    "In addition to the type of update, you can also define the period unit to be used in the updating
    process.
    The period unit specifies the intervals in which the statistical data is to be cumulated. You can
    choose from the following periods:
      Day
      Week
      Month
      Posting period (you may also need to specify a fiscal year variant)
    You can determine the period unit of the update for every standard information structure.
    In the SAP standard system, the default period unit for updating all the information structures in
    the Sales Information System is month."
    Hope this will help you .
    Regards,
    Krishna O

  • Where can I find explanations for all the export options?

    [ Re-posting this from the iPhoto & iDVD branches ]
    When I export a slideshow in iPhoto 9, choose 'Custom export' and then hit the 'Options' button, a dialog pops up with Video & Sounds options that can further be explored. In the Video section, I can click on the 'Settings' button, amongst others, to reveal lots of things that can be tweaked (Compressor Type, Motion, Data Rate & Compressor).
    Where can I find help and explanations of what all these settings do, when to change them, why they should be changed, to what values and what effects these all have on the overall output?
    Apple has a user manual for FCE4 on their web-site and I recognise some of these iPhoto slideshow export settings from similar dialog boxes from within FCE4. Does a user manual for iPhoto 9 exist also? I can't find it on Apple's web-site.
    It has been suggested to me that these are all standard QT settings/options - hence the re-post to this forum.
    - CDM

    It's always been up to each user to find all of the "hidden gems" in any OS software. Most of us experiment, test, try, fail and try again with all the options. Along the way we learn what works, what doesn't. I've played, poked and prodded QuickTime Pro for the last ten years and even wrote a "book" about it. I have over 200 bookmarks to resources and links that help me sort things out.
    Onto some answers:
    1. on your list is actually a three part question. Since you probably can't burn a true "HD" DVD we'll leave that part out.
    You can easily "share" your iPhoto files with iDVD and burn in SD 16:9 format. You need to learn nothing about the compression options as iDVD will do all of the work. The Web based file formats (from the same source file) are an easy "trick" in QuickTime Pro.
    QuickTime Pro includes an export option "Export for Web" that will make up to 4 "versions" of your source file and even write the html code for you to copy/paste into your Web pages. It creates up to 4 versions (iPhone, iPod, Desktop and cell phone) with just one export and writes html page code that can "read" your connected visitors "speed" to serve up just the right file for the device.
    Your number 2 question is answered by your SD DVD media device. Can't make a sow's ear into a silk purse. But you could use QuickTime Pro export options to create a "true" HD file and display it on your HD TV. If your HD TV includes HDMI connections (and all should) you could either connect your camera directly to the TV (via cables) to display the "raw" video captures or use iTunes (free) application to export HD video to an appliance like Apple TV.
    My "book" (a downloadable PDF) does include an explanation about nearly all of the QuickTime available codecs but it's probably not needed for your particular workflow. The built-in preset exports are all you probably need to use.
    Compression type = file format (AVI, MP3, MOV, etc.).
    Motion = frame rate allows you to change the source frame rate to meet the restrictions of your delivery media (nearly always adjusted to reduce file size for Web delivery). E.G source is 30 fps and delivery is 15 fps (reduces file size).
    Key frames = "special" frames of the video that either "predict" or "optimize" for the delivery media format. The Export for Web feature of QuickTime Pro defaults should be all you need.
    Quality slider = is "optional" but usually defaults to "medium". In most cases this is best left at the default setting.
    Dimensions = file size dimensions. Well crafted, H.264 video codec QuickTime files will look very good when displayed at up to twice the file export dimension. This means you can display a Web based 640X480 file at "Full Screen" size (display resolution) without much degradation of video quality. Older codecs will not look as good when doubled in size.
    Preserve Aspect ratio = just what it says. Widescreen source = widescreen display.
    De-interlace source = http://en.wikipedia.org/wiki/Deinterlacing
    Hope this helps you sort things out.
    Data rate = the amount of compression (data limit)

  • How to enable export option in oracle apps

    I have a custom form, which needs to export the data. File->Export option is disabled in all the responsibilities. How to enable this option only for this form?
    appreciate your help

    The Export function is disabled when the responsibility is opened initially .
    When we enter into a specific form its automatically enabled .
    Login to a user who has Application Developer responsibility & to Application >Register & press f11 and Ctrl f11 .

  • How to supress Export Option dialog while exporting

    Hi All;
    I have upgraded my application from CR 10 to CR XI R2. I am using Crystal report for exporting. After upgrading while exporting to excel format it is popping up dialog for export options.Earlier it was not asking for that. Can anyone suggest how to suppress this dialog.My application is in c++. I am also setting IExportOptions in the code.

    Hi,
    I'm using the RDC interface to batch run reports and export to PDF or Excel. The Excel one always shows 'Excel Format Options' dialog. This is offcourse not what I want.
    How can I suppress this dialog?
    Crystal 10.
    Cheers,
    Marco

  • Where are the export options?

    I just updated to the latest InDesign CC version. (10.2.0.69)
    And when I try to export a file there are no options to choose the export format (PDF / JPG / EPS / IDML etc)?

    Nope, I always do that and it didn't help.
    But now I removed and installed the full InDesign program again from scratch – and it works...
    Just very annoying and time consuming. Must be some bug in the latest update, because it happened right after that.
    (Another strange thing I noticed was that you couldn't any longer import a picture into a frame, you had to import it into a new frame...)
    Thanks anyway!

Maybe you are looking for

  • My Facebook and skype freezes all the time

    I have to charge my iphone5 twice a day bad batterie life

  • How to enable a ipod  when you forgot the icloud you used to set it up ?

    I had my friend charge my ipod because my charger broke and when I got it back she said that her cusin disabled my ipod on "accident" . So I was like okay cool like whatever I thought it was going to be easy to enable it but when I connected it to it

  • Is this design attached possible in Flash?

    Please take a look at this preliminary design for a video production studio and tell me if this is possible in Flash. Notes in magenta are on the sketch. Any modification suggestions to make this possible are also welcome. If you are willing and able

  • External table and XML

    Hi. I have this XML-structure: <order> <orderhead> <orderno>123</orderno> <orderline> <name>name_of_what_i_order</name> </orderline> <orderline> <name>name_of_what_i_order</name> </orderline> </orderhead> </order> How can I get the <orderhead><ordern

  • DXE compiler error

    Hi all, I am using obiee 11.1.1.5. When I apply group by in advance tab in an answer,It is not allowing me to add a map in the answers, It throws below error. However table in the analysis works fine, even after adding group by in advance tab. View D