Export and Print icons missing from report viewer

I'm currently embedding crystal within a wicket application in which I'm making use of the getHtmlContent() method to retrieve the report's HTML.  For whatever reason, I'm not able to get either the export or print icons (on the top left side of the viewer).  Is this because I'm using the getHtmlContent() method or do I have something misconfigured somewhere?  Setting the setHasExportButton(true) and setHasPrintButton(true) on the report viewer object has no effect. 
If I run the same report using the generated JSP outside of my application (within tomcat), I see the export/print buttons.  I notice the JSP makes use of the processHttpRequest() method.  Any help will be greatly appreciated.
Thanks!
Louis

Hi Louis
- The getHtmlContent() method handles the user's request to generate the HTML for the report and returns the HTML as a String.
Note: Either the getHtmlContent method or the processHttpRequest method can be used to handle the user's request to generate the HTML for the report, depending on how you write your JSP. If the viewer's content is displayed more than once, then the getHtmlContent method is more efficient, because the request is processed once and the resulting HTML string can be used multiple times. In this case, you must set the content type of the HTML, as recommended in the table. Additionally, using getHtmlContent sets setOwnPage to false and disables exporting and printing.
- The setOwnPage(true) and  processHttpRequest() method should be used if you want the export and print button to appear in the report viewed through Crystal Report Viewer.
Following is the snippet of code which shows you how to use these 2 methods.
//Get the IReportSource object from sesion and pass it to the viewer
     IReportSource reportSource = (IReportSource)session.getAttribute("reportSource");
Create the viewer and render the report -
     //create the CrystalReportViewer object
     CrystalReportViewer oCrystalReportViewer = new CrystalReportViewer();
     //set the reportsource property of the viewer
     oCrystalReportViewer.setReportSource(reportSource);
     //set viewer attributes
     oCrystalReportViewer.setOwnPage(true);
     oCrystalReportViewer.setOwnForm(true);
     //set the CrystalReportViewer print mode
     //oCrystalReportViewer.setPrintMode(CrPrintMode.ACTIVEX);
     oCrystalReportViewer.setPrintMode(CrPrintMode.PDF);
     //process the report
     oCrystalReportViewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
Hope this helps you .
Thanks
Soni

Similar Messages

  • Why are the movie and television icons missing from my Apple TV menu?

    Why are the movie and television icons missing from my Apple TV menu?

    likely because it does not have a working connection to the internet
    check the settings and maybe reenter the wifi pasword

  • Import and Backup button missing from "library" view, I am trying to import hmtl bookmarks

    I have just clean installed latest Ubuntu 11.04 which comes with firefox 4.
    I have old bookmarks from previous install I want to import.
    When I click on Bookmarks - Show all Bookmarks, the Import and Backup button does not show.
    How can I import my saved bookmarks?

    You may need to look a bit higher to the Ubuntu menu bar.
    You can also try to disable the Ubuntu Firefox Modifications extension.

  • CR Viewer tool bar images are missing; Export and Print are not working

    Hi There
    I used Crystal report 10.5(VS 2008 base crytal report -- CRRedist2008_x86.msi), i developed ASP.net application using VB.net  program(i used .net 3.5). One of the pages in the application is having crystal report viewer, which is calling a crystal report to populate the result. The report is working as expected on development machine (Win Vista). Hence, I moved the application onto Server (Windows Server Web; 32Bit OS and IIS). I installed the CRRedist2008_x86.msi, which added the "aspnet_client" under default website. As my site is a made as an application under default webiste. I tried...
    a) By copying the aspnet_client folder into the website folder
    b) By adding a virtual directory called "aspnet_client" under my website pointing it into the folder under "default website"
    None of the trials are working for me.
    When I click on Print or Export buttons (although their images are missing), I get the error sigh on bottom left (status bar) of the browser and the popping up the same giving me below error details
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; HPNTDF; InfoPath.3; MS-RTC LM 8; .NET4.0C)
    Timestamp: Tue, 2 Nov 2010 15:11:12 UTC
    Message: Object doesn't support this action
    Line: 41
    Char: 1
    Code: 0
    URI: http://65.123.xxx.x:37188/xyzweb/(S(uhgxkx45iwlrbancwzfunp55))/reportpage.aspx
    Any help in resolving this issue would be greatly appreciated.
    Thank You,
    Edited by: skbo007 on Nov 2, 2010 4:11 PM

    Hello All.
    I am excited to let you know that the issue is being resolved.
    Here is steps that lead me to resolution and solution..
    I installed Fiddler2 and looked into every the debugging details of the transaction while running the report.
    Learned that the crystal report is using the aspnet_client foler under "Default website" NOT under the crrent website.
    Hence I tried to access the image via http path from local machine
    http://myserver/aspnet_client/system_web/2_0_50727/CrystalReportWebFormViewer4/images/toolbar/export.gif.
    (Notice, "mysite" folder is been removed)
    I was expecting to see the gif on my browsers' body. It gave me an error.
    Investigated further more on the error and found that the "Managed Pipe Line" of the respective application pool is to be changed to "Classic" instead of "Integrated"
    changed it .. Boom...
    Tool bar is showing up with proper images and as well the "Export" and "Print" functions are working as expected..
    Hope this helps to those in the same situation.
    Again.. this is one of many many solutions on this issues.
    Thank You
    Edited by: skbo007 on Nov 3, 2010 9:42 PM

  • "Missing parameter values."  --  Export and Print only...

    I have a web application and I am using CrystalReportViewer.  I am passing several parameters to Crystal using: 
    report.SetParameterValue(field.Name, Session[field.Name]);
    I have session variables which will hold parameters needed to pass into the report.  The session variables are populated from controls on my webpage after an onclick event.  This even not only populates session, but also passes parameters to the report with the following code: 
    ReportDocument report = new ReportDocument();
    Session["MapPathName"] = "./Reporting/CaseStudy.rpt";
    report.FileName = Server.MapPath(Session["MapPathName"].ToString());
    ParameterFields fields = new CrystalDecisions.Shared.ParameterFields();
    fields = report.ParameterFields;
    foreach (ParameterField field in fields)
          report.SetParameterValue(field.Name, Session[field.Name]);
    CrystalReportViewer1.ReportSource = report;
    This works great for reporting and is very extensible.  However, when clicking on the "Print" or "Export" buttons on the toolbar I get "Missing parameter values."  I attempted to export manually in code using the .ExportToStream function but I still get the error, "Missing parameter values." 
    I received this error also in Refresh, Search, and Navigate functions.  This was corrected by calling a function that supplies the above code block to these functions.  However, I do not see any events for controlling the Print nor the Export events. 
    QUESTION: How can I print or export a report when passing parameters using CrystalReportViewer?  Thanks in advance!
    P.S. - Crystal Reports XI Release 2
    Edited by: KyleSavant on Jun 18, 2009 5:42 PM

    There are no Export or Print events accessible for the viewer
    Since it sounds like you are creating the reportdocument object in your click event, the settings on this object become out of scope on successive postbacks executed by other events.
    to get around this without major changes, you can place your "report" object in session in this event and retrieve it from session on successive postbacks.  This should solve your problems around navigation, printing and exporting.  What you will need to do is check if the session object exists (usually in page_load or page_initialze) and if so, retrieve it from session and bind it to the viewer's reportsource.  If the session object does not exist, then do nothing (ie you have not clicked your button yet that retrieves the parameter values from session and loads the report).  Also, in your click event you can check if the report session object exists and if so, remove it so that it can be re-created with your new parameter values (ie i'm assuming the only time you want to set parameter values is in this event).
    Dan

  • Crystal Reports export and print fails with SSL / https but works with http

    Windows 2008 Server, 32-bit (IIS7)
    ASP.NET 2.0
    Ajax 1.0
    Crystal Reports version 10.5.3700.0
    http:  printing works, export works
    https:  printing not working, only export to MS Excel and MS Word work.
    I am able to generate reports using both http and https, and the toolbar icons are all showing.  However, I am unable to print or export properly with SSL.
    Printing prompts me with a select printer window, and then a window 'Retrieving Page 1' follow by two messages from Crystal Print Control both stating:
    A communication error occured.  Printing will be stopped.
    Exporting generates various errors depending on which export method is being selected (however Excel and Word work over https).
    I've found the same problem on this site and other forums, but never a resolution to get exporting and printing to work with SSL.  Will someone please provide me assistance or possibly relay what settings they're using if they have Crystal Reports export or printing working over SSL in IIS7?  Everything works fine when I change the address from https to http.
    Please let me know if I can help by providing further information.  We've gone through a great deal of possible solutions with code and I'm currently looking in to IIS settings again.
    Thank you.

    Thanks Ludek. I got it by searching KB number.
    Unfortunately, it didn’t fix my problem even my IE (IE8 and IE 9) has correct setting.  I double check my version. PrintControl.CAB is version 10.2.0.1146. we use VS 2005 Crystal report and VB .NET. It works fine on HTTP. But when we use HTTPS (SSL Certificate from go daddy).
    1: Crystal report export
                Export to MS Excel, Word: pop us “File download”, then click “Save”. It says “Internet Explorer cannot download ReportView.aspx from my site. Internet Explorer was not able to open this internet site. the requested site is either unavailable or cannot be found. Please try it again later”
                Export to RPt, Rich text format: It says “Internet Explorer cannot download ReportView.aspx from my site. Internet Explorer was not able to open this internet site. the requested site is either unavailable or cannot be found. Please try it again later”
                Export to PDF : nothing happened.
    2: Print:
                Pop up dialog to select printer, click “Print” “. Shows windows “Crystal Report Viewer” and pop us error message box. Title is “Crystal Print Control”. Message is “An communication error occurred. Printing will be stopped”. Click “OK” and pop up error message box again.
    Please advise.
    Thank you very much!

  • Airplay Icon missing from iTunes 11.0.2.26 (PC) and Genius Sidebar

    After upgrading to iTunes 11.0.2.26 my Airplay icon is missing. I've tried the simple fix that reportedly works where you switch to mini player, see the Airplay icon and then it stays when you switch to normal mode.
    Firstly the icon does appear but it is grayed out and only pops up a volume control. It does not detect, display, or allow you to select output devices, Second, it is still missing from the normal size window.
    This has been tried with and without restarting iTunes as well as reinstalling iTunes. I'd go for a downgrade but then it fails to work with the new iPads at all. I discovered that with my first iPad mini where it required an iTunes upgrade.
    Genious Sidebar
    I figured Id just downgrade to 10.6.3 to get the genius sidebar back afterwards. WRONG, it will not synch or do anything without the newer versions of the iTunes software. Genius sidebar was the best thing about the software and they kept taking it away, brought it back for a few versions, then took it away again. It was and remains my favorite way to shop for new music. The remaining so called genius functions are just plain lame.
    Airplay Icon Missing from Itunes on PC
    I can hit my Airplay devices such as Apple TV and Zeppelin Air with iPads, iPods, and iPhones. Just not from the PC Console where is previously enjoyed it the most. So I know the devices are fine. They are all on the same physical wired and wireless network. Even when I put the Zeppelin on the wired LAN there is no Airplay icon in iTunes on the PC.

    Hi. just want to tell you i had the same problem Ipad--->tv working ok iphone---->tv also working ok pc home sharing not working and airplay icon in itunes 11.0.2.26 is missing. iam running windows 7 64bit
    NOW! i can tell you in my case it was nothing to do with your router or antyvirus ip connection.
    my pc is auto updating every sunday and icon has disappeared on monday i realized this fact and i have started uninstalling windows updates one by one after each uninstall i have restarted PC each time always run itunes and check if airplay icon is back. AND THER SHE WAS fiew windows updates uninstalled and icon is back in itunes
    Now i can not remember what Update it was KB28 ..... something i didnt wright it down at the time i hope this will help someone.

  • SSRS exporting to excel from Report Viewer is not respecting boolean critera

    Symptom:
    What's happening is that we are selecting a 
    set of criteria eg: start date,  drop down filter and a bit field.
     After running the report against this criteria it comes up in the report viewer with the correct results.
    However after we export the current results to Excel the results in Excel are different because it seems
    that exporting
    re-ran the report without the selected bit field when SSRS should have taken the current run and converted it. This isn't happening on all bit fields either 
    which is the oddest part. However all of the bit parameters are setup the same in the RDL.
    We're Loading the report into and rendering it in the Report Viewer control and then leveraging the Report Viewer's Render Routine to export on a button click.
    The result to Excel.
    <asp:imagebutton
    ImageUrl="/Images/excel.png"
    id="btnExportExcel"
    runat="server"
    ToolTip="Export to Formatted Excel"
    Height="20"
    Width="20"
    />
    ...logic to setup the out parameters in the Render routine.
    bytes = ReportViewer1.ServerReport.Render("EXCEL",
    Nothing, mimeType, encoding, extension, streamids, warnings)
    Response.Buffer =
    True
    Response.Clear()
    Response.ContentType = mimeType
    Response.AddHeader("content-disposition",
    "attachment; filename=" & ReportViewer1.ServerReport.ReportPath.Split("/")(2) &
    "." + extension)
    Response.BinaryWrite(bytes)
    Response.Flush()
    Response.End()
    I wanted to know if anyone has seen this odd behavior and if there's situation where the server would re-render the report when exporting to a particular format? I would also like to add that no errors
    came up either.

    Report Viewer 2008
    ProductVersion  
    FileVersion      FileName
    10.0.30319.1    
    10.0.30319.1     ...\Microsoft.ReportViewer.Common.dll
    10.0.30319.1    
    10.0.30319.1    ...\Microsoft.ReportViewer.WebForms.dll
    Report Server
    SQL Server 2008 R2 
    Report Server Version
    Microsoft SQL Server Reporting Services Version 10.50.2769.0 
    2008 RDL's
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition"
     xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">

  • How do you improve the speed of processing and printing of PDF from CAD in indesign?

    I work for an engineering consultancy company and for a long while I have suffered with using PDFs files generated from AutoCAD when placed within an InDesign report. There are three issues that arise:
    The files take a long time to process when preparing the InDesign report. (This is mainly in high quality preview mode)
    The files take a long time to export to PDF
    (The most annoying one) The files take a long time to process and print when sent from the PDF to the colour laser printer. So much so, a single page from InDesign that contains a PDF generated from CAD can take up to 15 mins to print.
    I have tried converting the PDFs to jpegs prior to insertion into the InDesign document, but the quality and colour is dramatically reduced thus them useless. Is there any pre processing on the PDFs generated from CAD that I can do to reduce the impact that it has within InDesign and in the post processing?
    We also get missing font warnings that arise from the inserted PDFs from CAD that may or may not be an issue. Your advice here would also be appreciated.
    I would be the first to admit that I am not the most advanced user of InDesign though I am sure that my workflow could be improved to alleviate the situation.
    Your assistance would be appreciated!

    Thanks for your quick response.
    I have tried both options you have recommended, but unfortunately the file size doesn't seem to be the issue. Most of our CAD files (except for when they contain raster backgrounds) are around 0.5-2Mb which isn't massive compared to some jpegs. The PDF optimization process does make a small difference to the file size but only in the region of perhaps 5% reduction.
    If it helps the most awkward file I am using at the moment has this audit result, pre-optimization. This is typical of the CAD files produced by AutoCAD. As you can see the content streams take up the highest percentage that doesn't reduce that much even when the optimizer has all options engaged.
    What do you think?

  • CR 2008 paramteres, export and print windows language localization

    Hi, i want to use in my application Crystal Reports. I installed a trail version of CR 2008. My application is written in Delphi 7. I connected my application with Crystal Reports through the official VCL downloaded from http://ftp1.businessobjects.com/outgoing/products/vcl/crystalvcl11.zip and edited it to work with CR 2008 (12.x.x.x).
    Everything works with this VCL. When i have parameters the Enter Values window where i enter the values for parameters and in the Viewer window the Export and Print Dialog are in English. I want to have them in Polish Language ( or operating system language). In CR i set in View -> Preferred Viewing Locale -> More ... Polish but the viewer window, export, print and parameters are still in English. I tried this also on computers without installed CR 2008 but installed CR Runtime and it is still English.
    Operating system in Windows XP SP3 Polish.
    Any ideas what i can do to have this windows localized in my language?
    Robert

    Hello Robert:
    I am not sure that you will be able to do much. The VCL has not been updated since version 10 of Crystal Reports and it may be that the functionality you require will just simply not be possible. (I'll get someone else who used to work with the VCL to have a look too.)
    In the meantime, you may want to have a look at the following:
    Go [here|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm], then check out Crystal Reports .NET SDK > Tutorials and Sample Code > Other Tutorials > Configuring Multilingual Client Support. (The above is for CR XI R2, it's the same for CR 2008 - I just don't have a link handy.) I am not sure if the above will help.
    Also, note that you do not have to use the VCL. You can use the CR assemblies for .NET with Delphi. See the following for more details:
    /people/trevor.dubinsky/blog/2009/10/09/introduction-to-delphi-prism-applications-development
    /people/trevor.dubinsky/blog/2009/10/19/delphi-prism-how-to-setup-the-environment-for-crystal-reports-2008-and-bobj-enterprise-r3-development
    /people/trevor.dubinsky/blog/2009/10/26/crystal-reports-and-enterprise-net-developer-resources
    Samples:
    [Net Delphi CR2008 Simple Previewer|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/90f71e6a-cc13-2d10-7c8c-e38ce6d278be]
    [Net-Delphi-CR2008-LogonInfo-subreport|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f02665e4-cc13-2d10-b180-e0a7b3770ae3]
    [Net-Delphi-BOE12_Simple_View_Report|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/702f1223-cc13-2d10-c383-967a1e8d11ac]
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • PDF Export And Printing Problem

    I am using VB 2005 and the Crystal Reports that is bundled with it. I have reports on my website in the Crystal Report Viewer. I have the tool bar showing the Export and Print buttons. When you try to print (or export to PDF) you get an error from Adobe Reader "Adobe Reader could not open 'AcrXXX.tmp' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)."
    I can see the file in my temp folder on my c-drive and the file (AcrXXX.tmp) does not contain a pdf instead it contains html for the report (including the report viewer). I tried deleting everything in my temp folder and I still get the error. My desktop is Adobe Reader 8.0 and IE 6 and Windows XP.
    The same code will create the PDF on all development and test web servers just not on my production server.
    I have no problem exporting a report to Word.

    Hello Wendy,
    if you are not too sure whether this errro is CR or VS related pls simply try to use one of our samples and see if you can export from htere or if you get the same error:
    Sample site for NET:
    https://boc.sdn.sap.com/dotnet/samples
    general docu:
    https://smpdl.sap-ag.de/~sapidp/012002523100005853792008E/walkthrough_supportfiles.zip
    specific samples:
    https://smpdl.sap-ag.de/~sapidp/012002523100006252712008E/csharp_web_smpl.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100006252812008E/net_web_smpl.exe

  • Testing Export and print of additional web items

    Hi,
    Please do let me know how to carry on testing for Export and print of additional web items.
    Thanks & Regards,
    Lavanya.

    Following are some of the things you should test -
    Export -
    1. Exporting to File: For different file types check the way data is getting extracted as compared to report results in URL. Here you need to check - a. if the correct values are getting exported (w/o any conversion of data types, or any format changes). b. Layout of the exported data (ex. row data is appearing in rows, etc.),
    2. Check files for any missing data.
    3. Check if exporting the data, with selected drill levels, filters, etc. is working fine (or is exporting everything irrespective of the data from current report reults).
    Print -
    Print your report using the default printer on your machine & check the following -
    1. Reports is getting printed as expected in terms of data & layout.
    2. The rows or columns are well within the page defined in your printer settings (ie nothing is running out of page).
    3. When printing, change in orientation works for both the options without any loss of data.
    All web items will not be printed, so you need to make a note of this.

  • When sub-reports are exported or printed, then the complete report gets exported/printed instead of only the content of the sub-report.

    I have got several (6-7) subreports in the m ain report. Several times client is interested in printing/exporting data of sub-report only for which when they try to export/print sub-report, entire report is getting export and print.
    We have upgraded application from crystal 8.5 to crystal 2013 RAS API now. Earlier with crystal 8.5, client was able to export/print only sub-report.
    It will be great if somebody can share his/her expertise with us.

    Hi,
    As per my knowledge, currently there are no APIs available to export only subreport.
    See the RAS SDK dev guide and API Reference.
    http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/xi4_rassdk_net_dg_en.zip
    http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/xi4_rassdk_net_api_en.zip
    Try the SAP Idea Place and log an enhancement request.
    - 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.

  • How to disable "Save" and "Print" icons?

    Hello,
    I need to publish a pdf file in our company's site.
    According to my boss requirement, the file should be "read only".
    I just can't to disable those "save" and "print" icons.
    How can I make the read-only file?
    Thank you in advance,
    Marina Levy

    You can set up the document's security to not allow printing and making changes to the document, but you cannot prevent someone from saving a copy if you make it available for them to view. With digital rights management software, such as Adobe's LiveCycle Rights Management, you cna have much more control over what people can do with a document.

  • Is there a way to export and print the browser data as a spread sheet?

    I'm in the process of logging approximately 1,500 shots for a documentary (the old fashioned way - long hand: shot #, TC in, descriptions... ) and I'm wondering if there's a way to export and print the data in the browser as a spread sheet.  It seems like a pretty simple thing, but I don't see it any where. Am I missing something?

    Yes, people I work with use it, assistants fill the fields out for me. As far as I know there is no "Print Browser" option. Some folks have assistants copy and paste the info into text, csv or xml files.    Since everthing has gone to meta tags, this approach is going the way of the electric spoon or feeding mayonnaise to Tuna.
    Peace & Covering Fire,
    B.S.

Maybe you are looking for

  • IPod Touch 5th Generation won't boot?

    I have an iPod Touch 5th Generation. Recently, I plugged it in to charge overnight, and upon awakening it was turned off. It booted fine then, but took longer than usual. The same thing happened even more recently, but now it will not boot. Instead,

  • Convert ResultSet - Xml with Xml Schema in java

    Hi I am using Web Services created in java and will be used from .Net client. Since its a cross platform, so I need to convert the Java ResultSet to XML stream (with schema) so that it could be accesed by .NET client. So I want to know how to convet

  • Save for Web: change default connection speed

    I've checked my Photoshop book, the online help, the knowledgebase and done a forum search. I may be using the wrong keywords. When I go to Save for Web and Devices and I look at the optimized, two-up view or four-up views, down in the optimization i

  • ICal dock icon...

    its the actual date when its not on. is this with the update or just me? (yes i know i posted this twice but i posted it in the wrong place the first time)

  • Exchange Rates in Idoc

    Hi Experts, I am new to Idoc...I want a see a prototype of Exchange Rate from SAP 4.7 to ECC 6.0. Please do the needful.. Regards Ram Ganji