Get feedback from report viewer

We want to get the feedback from java crystal report viewer whether report is printed or not.Simply want to know print button is pressed by the user of print dialog.
Earlier we got feedback from VB6 viewer from bellow code,
CrystalReport.PrintingStatus.Progress
Do we have a method to get this from java viewer.It is a very important feature for us,
Thanks.

Recently i found the method printInteractively (..) in ReportPagePrinter class in CrystalReportsRuntime.jar package does not return any thing.
public void printInteractively(ReportDocument paramReportDocument, String paramString, PrintObserver paramPrintObserver)
    throws PrinterException
    jdMethod_int(paramReportDocument, paramString, paramPrintObserver);
    int[] arrayOfInt1 = new int[1];
    int[] arrayOfInt2 = new int[1];
    ReportPage localReportPage = jdMethod_int(1, arrayOfInt1, arrayOfInt2);
    if (localReportPage == null)
      return;
    this.D = jdMethod_try(localReportPage);
    if (!jdMethod_int(this.v.defaultPage().getPaper(), this.D))
      PageFormat localPageFormat1 = jdMethod_byte(localReportPage);
      PageFormat localPageFormat2 = this.v.pageDialog(localPageFormat1);
      if (localPageFormat2 == localPageFormat1)
        return;
      this.D = localPageFormat2.getPaper();
    if (!this.v.printDialog())
      return;
    this.v.print();
Why this important feature does not have in java package.Any future release do you expecting to add that ?

Similar Messages

  • Can we get data from business views  in CR 2008/XI?

    Hi All,
    Can we get data from business views  in CR 2008/XI?
    If its possible, pls let us know how to get connect with Business View in both of these versions and what is the tool that we have to use to create Business Views.
    Thank you,
    Krishna Pingali

    Hi Krishna,
    Crystal Reports/BusinessObjects Enterprise ( BOE ) Business Views can only be created using the BV build which comes with BOE and installed using the Work Station installer for BOE. for both XI and 2008.
    You cannot mix these two versions on the same PC not can one talk to the other, the BV designer must match the same version as BOE. XI ( version 11.0 ) is no longer available but if you mean XI R2 ( version 11.5 ) then it still is.
    It's not completely clear which Business View you are referring to? BOE has a Business View Designer so not sure if this is just a naming problem or not? If you are referring to the BOE Business View Designer then the above is true. If your reference is about some other BV designer or data source then you need to clarify.
    Contact our Sales department for pricing and availability.
    Thank you
    Don

  • How to make smartform get data from report painter???

    hi all!
    please tell me how to get data from report painter?
    i has a report painter zabc ( create through t-code ke31).
    I want  get data from Zabc after run and show data by smartform.
    plz help me!
    thanks

    Hi ,
    Please check this link [SMARTFORM|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf]
    Regards,
    Smart

  • 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

  • CE 10 - Slow printing from Report Viewer in Win Server 2K3

    Post Author: JacobK
    CA Forum: General
    I'm not very familiar with Crystal reports, we are having slowness issues when printing from the web through report viewer in Win2K3.  Recently upgraded from Win 2000 to 2K3.  Same crystal version, CE 10.  On the 2000 system this report printed fine.  Now there is a delay in bringing up the report in viewer and then an extreme delay when printing.  This report prints normally when printing directly from Crystal.
    Any ideas?
    Thanks in advance.

    OK so I have updated VS 2010 to SP 1, and installed CR2010. Within my project I have updated the referenced .dlls
    CrystalDecision.CrystalReports.Engine
    CrystalDecision.ReportAppServer.ClientDoc
    CrystalDecision.ReportSource
    CrystalDecision.Shared
    CrystalDecision.Web
    I updated the web.config assembly entries to match the new version # (13.0.2000.0) and the app compiles.
    However, now when I try to run a report I receieve the following error...
    An error of type <System.Web.HttpException> occurred
    Error Details: The 'PageToTreeRatio' property cannot be set declaratively.
    I am sure I need to make some code changes but I cannot find this "PageToTreeRatio" attribute anywhere in my .asp code. Is this something you are familiar with? Is this parameter in the report itself?
    As I mentioned before the reports were built in CR10 Deveoper (not in Studio) is that the source of this problem? Will I have to rebuild all the reports in VS2010?
    Thank you for all the help so far, I am a lot closer than I was yesterday!!
    -C

  • Get Entity from a View

    How do I get the Entity from the view. For a particular row I would like to get the getEntityState().
    Cory

    Take a look at this code, it works:
    DCIteratorBinding ib = panelBinding.findIteratorBinding  ("DepartmentsView1Iterator");
            ViewObject vo2 = ib.getViewObject();
            ViewRowImpl myRow = (ViewRowImpl)vo2.getCurrentRow();
            // Get Entity Object.
            DepartmentsImpl miEntity = (DepartmentsImpl)myRow.getEntity(0);
           

  • Getting feedback from a procedure that doesn't do what I want it to do

    Hello all!
    I've made a procedure that transfers rows from one table to several others, and deletes the rows from the source table. The problem is that the procedure executes properly, the rows are deleted, but they aren't inserted in the new tables.
    How do I get feedback while the procedure executes? Is there an easier way than DBMS_OUTPUT?
    Thanks in advance!

    In Oracle 8.X you can use autonomous transactions.
    Write a simple procedure that inserts a message into a debug table. This is then called at various points of your program and will tell you exactly what is going on in realtime, unlike dbms_output which doesn't do anything until the procedure completes.

  • 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">

  • Getting Data from Maintenance view V001N into ABAP program

    Hello Experts,
    I have to fetch data from the maintenance view V001N in my ABAP program.  I have used select statement in my program but I am getting a syntax error  'V001N is not defined in the ABAP Dictionary as a table, projection view or database view. '.  V001N is a Maintenance view.
    Can anybody help me out how to get the data from that maintenance view into the internal table of my ABAP program.
    Regards.

    Sunil,
    check these threads
    https://forums.sdn.sap.com/click.jspa?searchID=18906946&messageID=6074746
    https://forums.sdn.sap.com/click.jspa?searchID=18906946&messageID=6088233
    so query on the tables which are used in the view
    Thanks
    Bala Duvvuri

  • My Mac Mini is getting feedback from External HDD

    I am running a external WD 2T Caviar through SATA docking station. I am getting serious HDD feedback throught my speakers. I am using a sheilded Monster Analog stereo cable and it cuts the noise down a little. I have noticed that when playing audio through HDMI to TV speakers there is no feedback. Ijust got this computer and came from a PC. So I am having to get another HDD to back up the info from old drive and the reformat it to apple freindly formating. If I got FW conecting HDD  Would FW800 still have the same feedback issues?

    Just an update. Tried it and no such luck. I am still getting the same amount of feed back even with the computer and the HDD on seperate outlets. One of the options I am also looking at is since there is no feedback the HDMI is possible just getting a home theater reciever and running video and audio through the reciever. Hopefully that would get rid of the feedback. Again I don't get any feedback through the tv speakers if I run sound through that. So in theroy my afformentioned HT soultion should fix the problem. If anyone sees a flaw in my logic please feel free to speak up!

  • How to get data from another view on the RFx to populate bidders web dynpro

    i am trying to populate bidders in the table on the bidder tab when a user click a button based on the line item data.  How do i have access to get the line item since it is in a separate component controller and view for the RFx? thanks you.

    Hi,
    You mean Data transfer between two components..
    To pass the value from one component to other component, you can use used component scenario.
    For example let use assume we have two comp ..
    Comp A,
    Comp B.
    now we need to pass the value from Comp A to Comp B.
    Then declare the Comp A as used component in Comp B.
    Now then you can create a node in the comp A component controller and check the interface check box there then the
    node and the attribute will be present in the interface controller also .
    and this interface controller context you can access in the component and map it to view there and display it.
    Webdynpro Application Integration..
    http://wiki.sdn.sap.com/wiki/display/WDABAP/WebdynproApplicationsIntegration
    cheers,
    Kris.

  • How to get data from maintaince view into internal table

    Hi,
    I want to get the all data from v_t179 (maintanence view) into intrenal table.
    if i write select stmt , it is giving error.
    I want all data into internal table.
    regards,
    Ajay

    I think this is what you want:
    TABLES: t179, t179t.
    DATA: v_t179_int TYPE TABLE OF v_t179.
    SELECT * FROM t179
      JOIN t179t ON
        t179~prodh = t179t~prodh
      INTO CORRESPONDING FIELDS OF TABLE v_t179_int.
    Rob

  • Handeling errors thrown from report viewer ?

    Hi,
    I am using Crystal reports 2008 (12.0.0.683) for developing windows applications in Visual Studio .Net 2005. I use Crystal viewer ActiveX control in our windows form application for showing the reports.
    In my report, in the header part i am using sub reports. When the sub report gets extended too long then on lauching that report it shows me an error message that "page header or footer too long to display".
    How can i catch this error in my .net code so that i can show my own custom message instead of this message? Also this error message does not come in the catch part of my try catch block in the .Net code ?
    Please Help.
    Thanks,
    Shyam
    Edited by: Shyam Sunder on Jan 2, 2009 9:24 AM

    Hi Kanchan,
    The error which i am getting is not while printin the report through printer, but while previewing the report in my windows form crystal viewer activeX control.
    The error it displays is common, it happens when you have a exceptionally large page header/footer. You can try by yourself by creating a report with very big page header more than 20 inches in lenght. when you launch this report in .net viewer then it will display the error message that "page header or footer too large to display". But what i want to know is how to handle this error in my .Net code and how to catch this error in my .Net try catch block. Because i have obseerved this error message gets displayed inside the crystal veiwer control and is not passed to the .Net code. is there any way so that i can suppress this erro and displaying my custom message instead ?
    In my report the page header gets extended beyond limit, because of the sub report i have used in the page header.
    Any help will be appriciated.
    Thanks,
    Shyam S

  • Report Assignment are getting dropped from report management

    Hi Gurs,
    For the Real Group substance, nine real substances has been assigned in report management. when Iam trying to create a report of new version for real group some of the report assignement are being dropped from real group. any idea why the reports are getting dropped.
    Thanks in Advance
    Thanveer Ahmed.

    Hello Thanveer,
    it seems to be that you are using SAP Enterprise Extension 2.0 (EH&S 2.00 version does not "exists" and has never been made available to SAP customers to my knowledge). This EH&S has been former known as EH&S 3.2. Actually EH&S does not get any version number any more.
    Coming back to your question: the oss note you found seems to be the only one. I did the "same" research like you. So I have really no idea (may be place new OSS) because we are using an older EH&S version and there it works.
    Coming back to your last remark:
    Can you help me with all Functional scenario's for specification assignment on report management.
    If you take a look in the actual help of sap you will find this page:
    http://help.sap.com/erp2005_ehp_04/helpdata/en/a7/288aa30a6c11d28a220000e829fbbd/frameset.htm
    (report Management (EHS-SAF-REP) => Report Managment Worklist => Specifiction Assignment
    Here you will find a subchapter: Assigning specifications to reports)
    In this chater this is explained:
    Specification assignment can be defined differently for each report version. When creating new versions (or when replacing one version with another), the new report u201Cinheritsu201D the specification assignments of the previously valid report.
    This reaction is what I would expact.
    In my opinion the scenario which SAP describes there is clear enough. Again here is the story:
    a.) you have a specification and you generate a report (first time). You release it (generation variant/Language combination) in version 1.0. Now in using cg50 you can enter on report header additionaly specifications regarding which the report is valid too.
    Lets assume this: you have generated the report on specification A and added B and the report is "released". Now if you use cg54 and you use specification in an query A and B you will find total two released reports. The report on the level B is "inherited" from A (this is shown by using a different icon). Now if you generate version 1.1. on specification A (same geneartion variant etc.) the link to the specification B must be inherited to the new report header.
    This functionality is in my opinion rarely used on SAP EH&S customer side. The reason is "simple".
    a.) there is no mass update of specifications which should be added to the report header and the queriy which can be done there is "very" simple
    b.) you need to take care about adding new specifications to the report header (becuase the version before does have a differnt number of specifications)
    c.) the process to delete the link is not easy in daily work
    In any case: please check the report distribution process. There are some pitfalls etc. inside so thet the report which is released on A can be used on B too in report distributon. Bit this is a different story.
    To summerize: the process is in most cases to complex for normal EH&S users. Therefore other options should be analyzed.
    With best regads
    C. Bergemann
    PS: you need to "save" the assignment in cg50; only an idea: may be you missed to do that
    Edited by: Christoph Bergemann on Feb 13, 2010 9:41 AM
    Edited by: Christoph Bergemann on Feb 13, 2010 10:00 AM
    Edited by: Christoph Bergemann on Feb 13, 2010 10:00 AM

  • Get information from weekly view when in quarterly view

    Hi Experts,
    We are using data view that displays the data in Quarters.
    In the same planning book we have a weekly view.
    Our issue is now that I need to calculate on an aux-keyfig. in the quarter view using data from  a specifik KF in the weekly view. The issue is that I ONLY want the data from week 1, present year...
    Normally you would get the aggregated data, but I need only the data from week one.
    How can this be done in the quarterly view?
    Looking forward to hearing from  you!
    Br Brian

    Hi Brian,
    If you are using a macro to this, then please try the user defined - period in the macro rather than future or past. here you can specify your own dates and it might solve your issue.
    Thanks,
    Chan

Maybe you are looking for

  • What is wrong with my iMovie 10.0.5? How to fix it?

    This is what I see when I open iMovie v. 10.0.5: I see no library. I see no movies that I have edited. I see nothing but this blank screen. Does anyone know what would cause this and how I can fix it? Thanks very much!

  • Blocking of Confirmed quantity while doing ATP

    Hi, While carrying out availability check in sales order( VA01) the quantifies are confirmed if availability check is set at schedule line and rest of the relevant setting of requirement planning. The blocked quantities after carrying our availabilit

  • Tree and auto collapse

    Hi I had an old Actionscript code that works with a Tree component. The idea is that when you open an Branch, it collapses before the already opened ones, so you have only branch at the same time. I try to reproduce it with a flex component but if I

  • How to install CS5 on second iMac when CS6 is out

    I have bought the full version of CS5 for my MacBook Pro online at the Adobe shop. Yesterday I received a new iMac 27 and I wanted to install CS5 from the Adobe download using my license key. But I can't find the link to CS5 only CS6. How do I procee

  • WRT1900AC and Apple Time Machine backups

    I just bought this router, am getting a 27" iMac running OSX Mavericks, and wanted to put storage on the router to use for Time Machine backups.  I have the latest firmware, but, the PC Magazine review of the router stated that it doesn't work with T