CrystalReportViewer export/print report without CSS styles

Hello,
I've faced with one issue in CrystalReportViewer control and couldn't solve it by my own efforts. Before I wanted post it exactly to this forum I've found that some people already faced with that problem too...but nobody didn't receive any answer, so I have a big hope that I'll receive it here.
My problem is related to CrystalReportViewer control and especially to its styles. I have a test application which has just one aspx page which displays very simple test report (just 3 TextObjects, for test purposes) and each TextObject has its own style which stores in css file in my web site. So, CrystalReportViewer control displays report correct, but when I export/print this report to PDF or any other document all styles are lost.
Could someone help me with this issue or maybe just point me what thing I missed or just tuned incorrect.
Thanks in advance.
Best regards,
Sasha

It's a pity that this control hasn't possibility to export/print report with its styles, because I think it is a very useful thing.
Thank you very much Adam, for your short and clear answer.

Similar Messages

  • Print Report without Template

    Andy,
    Continue on to my question on thread: create a free form report, the problem with print the browser is the template will show up. I have Theme 15 and two level tabs. All my readings seem to tell me that I need to install BI publisher or XSL-FO to print out the form formally. If not, what do I do to print without the template showing?
    Thanks,
    Yivon

    Hi Yivon,
    If you go to Shared Components, Themes and click Edit Theme (in the Tasks list on the right), and select your theme, you will see a section called "Component Defaults". In there, is a setting for Printer Friendly Page. The template shown there is the one that will be used when you add the YES parameter to the end of the URL. Typically, this is just called "Printer Friendly".
    If you want, you can create your own Printer Friendly page, but the default one should normally be ok with a slight adjustment. If you go the that page template, you'll see that things such as tabs are not defined but what we do need is add a #NAVIGATION_BAR# setting somewhere (see below).
    Now for the Print and Back options.
    Very often, Print is a Navigation list item. Go to Shared Components, Navigation Bar Entries. Click Create. Give the new item an sequence number and a Text value of Print then click Next. Leave the Target Type as "Page in this application". Set the Page value to &APP_PAGE_ID. (which is the current page) and tick the Printer Friendly checkbox. Then click Next then Create. You can create the Back option in exactly the same way, except that you leave the checkbox unticked.
    Each item on the navigation bar can be conditionally displayed based on the value of a PRINTER_FRIENDLY application item that Apex maintains for you. The value of this will either be YES or NO. Just use the "Value of Item in Expression 1 = Expression 2" condition and put PRINTER_FRIENDLY in Expression 1 and either YES or NO in Expression 2. Neither setting should use quotes.
    Now you need to ensure that the navigation list is displayed on the Printer Friendly page template. This needs to be done somewhere near the top of the Body setting on the template. How this is done will depend on your theme. For example, using Theme 3, I have changed the start of the Body setting from:
    <table summary="" cellpadding="0" width="100%" cellspacing="0" border="0">
    <tr>
    <td valign="top">#LOGO##REGION_POSITION_06#</td>
    ... etc ...to:
    <table summary="" cellpadding="0" width="100%" cellspacing="0" border="0">
    <tr class="navrow"><td colspan="3" valign="top" align="right" class="t3NavBar">#NAVIGATION_BAR#</td></tr>
    <tr>
    <td valign="top">#LOGO##REGION_POSITION_06#</td>
    ... etc ...This adds a new row to the top of the body's TABLE tag. Note that I have given this row a class name of "navrow".
    Now, we can use a special feature of CSS styles. Any style can be created to be used only when the object being styled is displayed on screen or sent to the printer or both (which is the default, of course).
    In the Header setting, after the #HEAD# string, we can add in printer only styling for the "navrow" class:
    ... everything above #HEAD# ...
    #HEAD#
    <style type="text/css" media="print">
    .navrow {display:none}
    </style>
    </head>
    ... everything after </head>Now, when the page is being printed, everything on the navigation row is hidden.
    I have done this on this page: [http://apex.oracle.com/pls/otn/f?p=41075:1]
    Andy

  • Printing Report without ORARRP

    Hy all,
    Please Help me, I want create report aplication with printing direct from default printer but without use orarrp.
    cause,I have any problem when use orarrp and my boss want the report printing direct from printer without pop up printer properties block.
    I'm sorry if my english language is not goods.. :) :)
    can give me tutorial,script or example, please??
    Regards,
    Beny1986

    this Link post to me from days
    but i not test it until now
    print direct to hp printer

  • Printing Reports without connect  database

    May I do a reports without connect database ?

    In 2.5/6i you need a database connection to run a report.
    In 9i there are some pluggable datasources (text, XML, JDBC) with their own connections. Since the Text/XML pluggable datasources don't require a connection you can now create a report that runs without a connection but still reports on data.

  • Auto-print report without cutting off results

    My requirement:
    - print a report automatically at the end of each UUT's test
    My problem:
    - The report prints, but
    -- some of the contents are cut off (especially long strings in indented tables)
    -- the page breaks sometimes cut tables in bad places
    So far I have found no way to automatically print the report in landscape mode, which would help greatly. But even better would be the ability to:
    - disable indenting tables
    - print tables in their entirety on one page
    - reformat strings so they fit, and/or control the width of the tables
    Any ideas?

    Are you using the NI example for auto-printing? That example converts the report to a temp html file and sends it to the default printer. If you're using that you could change settings for the default printer to be in landscape mode which would resolve your fundamental issue without having to write a ton of code to change table properties of the report.
    CTA, CLA, MTFBWY

  • Exporting a Report to PDF

    Post Author: helfrich
    CA Forum: Crystal Reports
    I am re-writing a VB6 app to VB.NET 2005.  I have a viewer control that I use to display the reports in when I want to preview the report on the screen.  The VB6 app can also automatically export reports to PDF format silently (no user input or screen output).  I would like to do the same in VB.NET.  In the VB6 app, I simply set the viewer control's ExportOptions.PDFExportAllPages = True (I also set the DiskFileName FormatType, and DestinationType parameters).  I then display the form containing the viewer with the .Hide parameter.  This exports the report without displaying the report on the screen.  I have not been able to find any information that allows me to do the same thing in .NET with Crystal Reports XI.
    I have tried creating a ReportDocument object, but when I execute .Export(), I get a "Missing parameter values" error - absolutely no other information.
    For example:
    Dim crExportOptions As New ExportOptions
    Dim crDiskFileDestinationOptions As New DiskFileDestinationOptions()
    Dim crFormatTypeOptions As New PdfRtfWordFormatOptions()
    Dim crReport As New ReportDocument
    crDiskFileDestinationOptions.DiskFileName = "C:\Test.PDF"
    crExportOptions.ExportFormatOptions = crFormatTypeOptions
    crExportOptions.ExportDestinationType = ExportDestiniationType.DiskFile
    crExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
    crExportOptions.ExportDestinationOptions = crDiskFileDestinationOptions
    crReport.Load("C:\Test.rpt")
    crReport.Export(crExportOptions)
    This is where the error occurs.
    I also tried setting Viewer.Visible = False followed by Viewer.ExportReport().  The viewer does not display, but this prompts for the export filename.  The whole idea is for the export to be completely invisible to the user.
    I don't care which solution I use:
    1.  How can I get rid of the "Missing parameter values" error using the ReportDocument
    or
    2. Is there a way I can use .ExportReport(), but preset the export filename so there is not prompt?
    TIA for any help anyone can offer.

    Post Author: jennm
    CA Forum: Crystal Reports
    Here's a snippet of code from one of my recent projects that should offer some help.
            Dim crOrderPrintout As CrystalDecisions.CrystalReports.Engine.ReportDocument = New rptPublicOrder
      u2018clear the dataset, give it the appropriate parameters and fill the data adapter
            Me.dsReceiptDetails.Clear()
            Me.SqlSelectReceiptDetails.Parameters.Item("@ReceiptID").Value = sReceiptID
            Me.daReceiptDetails.Fill(Me.dsReceiptDetails)
            u2018set the data source and paper size for the report
            crOrderPrintout.SetDataSource(Me.dsReceiptDetails.Tables(0))
            crOrderPrintout.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperLetter
      u2018These are the printing options, Printer, File or Viewer
            Select Case My.Settings.PrintType
                Case "Printer"
                    crOrderPrintout.PrintToPrinter(1, False, 0, 0)
                Case "Viewer"
                    Dim frmReportViewer As New frmReportViewer
                    frmReportViewer.CrystalReportViewer1.ReportSource = crOrderPrintout
                    frmReportViewer.ShowDialog()
                Case "File"
                    crOrderPrintout.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "C:\test.pdf")
                Case Else
                    crOrderPrintout.PrintToPrinter(1, False, 0, 0)
            End Select
      u2018close the report
            crOrderPrintout.Close()
    The file option will print directly to a file without prompting the user.  As for the missing parameter values if I had to guess either it's the dataset missing a parameter or the report requires a value.  Example:
    crOrderPrintout.SetParameterValue("ParamName", sParamValue)
    HTH,
    -Jen

  • Exporting Crystal Report To Excel

    Hello,
    I have created a report in crystal for my company. It sorts by rep name, then customer, then products they purchased. When I export to excel, it comes over fine, but the customer name, address, etc. is in the same column as quantity, price, etc.
    I want to be able to sort this date in excel by customer, or product, etc. but cant since some of the data from the crystal report takes up the same columns as other data within excel, also the formating,"******: and other stuff that sperates the data in crystal report to make it easier to read when printed comes over to.
    How can I export this report without all the formating, page formats, etc. not coming over to excel and be able to have each unique field within its own column so i can sort easily in excel.
    thanks
    don

    Hi,
    Place the fields next to each other in report design. Set appropriate width. While exporting in Export window select following format from dropdown
    Microsoft Excel 97-2000 Data only (XLS)
    click OK
    then in Excel Format Options window select
    Excel Format 'Custom: Data is exported according to selected options' radio button. There are three radio buttons.
    In Column Width select 2nd radio button
    Column width based on objects in the : Details (there is dropdown for this)
    And at the end there 8 check boxes. Out of 8 you have to select 4
    check - Export object formatting
    check - Maintain relative object position
    check - Simplify page headers
    check - show group outlines
    Hope this helps.

  • Xmlpublisher & printing reports

    Howdy,
    Is there a way to print report without logging in to the xmlpublisher like you can do it in Oracle Reports?
    For example, application executes the following url:
    http://server:port/xmlpserver/catalog/test1/test1.xdo?_xpf=&_xpt=1&_xdo=user test1test1.xdo&param1=... etc... and it directs me to login form. But I need to somehow avoid logging in(also LDAP is not an option). Is this possible?
    Thanks in advance

    Hi Tim
    If the format is
    http://xdopf.us.oracle.com/xmlpserver/Guest/Executive/Salary%20Report/Salary%20Report.xdo
    there is no issue with the guest login.
    However when you change it to use parameters e.g
    http://bynxdev.uk.bynx.com:15101/xmlpserver/servlet/xdo?_xpf=&_xpt=0&_xf=pdf&_xdo=%2FGuest%2FBYNX_FLEET%2FQuotations%2FQUOTATION_DETAILS%2FQUOTATION_DETAILS.xdo&quotationModelId=420
    you have a problem with a message
    "Your session has expired, please click here to log in again."
    I am testing using 5.6.2 and also on BI Publisher 10.1.3.2
    Thanks

  • Internet Explorer7 Blocking Crystal Reports 2008 CrystalReportViewer Export

    Visual Studio 2008 (VS 2008)
    Crystal Reports 2008 (CR 2008)
    Production Server: Windows Server 2003
    Internet Browser: Internet Explorer 7 (IE7)
    Crystal Reports Version: 12.0.2000.0  on both development and production
    IE7 message: To help protect your security, Internet Explorer blocked this site from downloading files to your computer. Click here for options.
    I am in the process of updating my websites from Visual Studio 2005 and Crystal Reports.NET 2005 to Visual Studio 2008 and Crystal Reports 2008.
    In VS 2005, when creating a PDF or exporting from the CrystalReportsViewer, IE7 does not block the creation/download of the PDF, nor the download of an export.
    Whereas, with VS 2008 and CR 2008 using the CrystalReportViewer  in IE7 blocks the creation/download of the PDF, and the download of an export.
    The message returned in the yellow box at the top of IE7 display window:   To help protect your security, Internet Explorer blocked this site from downloading files to your computer. Click here for options.
    If I select down Download Fileu2026  from the options, I must restart the PDF or export. 
    If I show another report, I have the same problem, even if I have stated to download the fileu2026.
    1. What is different between the CrystalReportViewer versions?
    2. What is recommended to avert this problem without having users change their IE7 settings?
    I found this settings change at: http://support.dell.com/support/topics/global.aspx/support/dsn/en/document?journalid=63F807B28AEC39CEE040AE0AB6E15FC5&docid=182320
    Turn off the Information Bar for file downloads
    This procedure will allow Web sites to automatically prompt you when downloading files, bypassing the Information Bar.
    1. Open Internet Explorer.
    2. Click Tools on the menu bar.
    3. Click Internet Options...
    4. At the Internet Options window, click the Security tab.
    5. Click the Custom Level... button.
    6. Security Settings window Security Settings window, scroll down to Downloads in the Settings: list.
    7. Click to select Enable under Automatic prompting for file downloads.
    8. Click the OK button.
    9. At the Warning! message, click the Yes button to change the security settings for the zone.
    10. Click the OK button.
    You will now receive prompts directly from a Web site if it needs to download a file to your computer.

    Hi Don:
    Yes, this is an https:// site.
    This is using X500 accounts for security. Once logged in, the site is running on an anonymous local user account.
    On Internet Options | Security | Internet | Setting the security level as medium  on (the lowest I was able to go) in  IE7 does not allow the user to download without the message coming up. It even states on the side (- Prompts before downloading potentially unsafe content)
    Workaround has been:
    1. Set the site as a trusted site (Internet Options | Security | Trusted Sites | Sites | Add )
    2. On the Trusted Sites Zone | Security level of this zone | Custom levelu2026
    3. Downloads | Automatic prompting for file downloads u2013 change to Enable
    Thanks for your input.  I would like to resolve this issue. CrystalReportsViewer - Crystal Reports Exports/Printing methodology has been changed since Visual Studio 2005 .NET version. 
    Thank you for your input.
    Patti

  • Using Column Value in CSS Style for Column in Report

    I am trying to apply a CSS style (background color) to a column in a report based on another column.
    So for the Column attributes for a specific column, I would like to be able to add this to the 'CSS Style' Field under the group, "Column Formatting":
    background-color:#BKG_COLOR#;
    It doesn't seem to be taking my column value, which is #daf2ea
    In the CSS Style Field, if I change it to: background-color:#daf2ea - then it works.
    So it doesn't seem to take my column value of #BKG_COLOR" in the CSS Style field.
    Any ideas? Do I need to use the 'HTML Expression' field instead, and how would I do that?
    Thanks,
    John

    Hi,
    that's correct, custom report templates will do.
    I find them sometimes quite limited, though. And I always ask myself "how would I do it without APEX", because there's often a lean jQuery solution that affords less coding.
    If you employ a so called "marker class" that depends on your colour value, you could begin like in the previous answer and enter the follwing into HTML Expression:
    <span class="#BKG_CLASS#">#THE_COLUMN_I_WANT_TO_SHOW#</span>
    That means you would not query a plain color, but some name that can act as a CSS marker, like
    select THE_COLUMN_I_WANT_TO_SHOW
          , case when THE_COLUMN_I_WANT_TO_SHOW > 100 then 'hotColor' else 'coldColor' end as BKG_CLASS
      from my_tableIn the page's Function and Global Variable Declaration, you'd enter
    function colorMyReport () {
      apex.jQuery('.hotColor').closest('td').css('background-color','#FAA');
    }And under Execute when Page Loads, you enter:
    colorMyReport();There's only one challenge, of course, when the report is paged via AJAX, because the script would only run once (on the first page shown).
    But if this is a solution for you, I'd be pleased to show you how to overcome this. Just let me know.
    Hope there is no typo in my typing, because I have to catch my train now :-)
    Bye!

  • Apex 3.0: export a report as .csv file without any Enclosed By character?

    In Apex "Report Attributes page/Report Export" is possible to define the Enclosed By field.
    The default Enclosed By by characters are a double quotation marks (" ").
    Is there a way to export the report as .csv file without any Enclosed By character?
    Example line format:
    a) using default Enclosed By
    "value1";"value2";"value3"
    b) using ('') as Enclosed By
    'value1';'value2';'value3'
    c) using blank space as Enclosed By
    value1 ; value2 ; value
    d) without any Enclosed By character
    value1;value2;value3
    What can we do in Apex to export a report as .csv file with the line format example d)?
    Thanks for your help.

    Hi,
    There is no Out of the box feature in Apex to achieve this functionality. But what you can do is write a page process to generate the CSV that you want.
    For this what I will do is on the first page where you press the Button it will call a PL/SQL page process which actually generates the csv. You can keep the existing report only for display purposes. Find the below process which generate the csv that you require.
    begin
    -- Set the MIME type
    owa_util.mime_header( 'application/octet', FALSE );
    -- Set the name of the file
    htp.p('Content-Disposition: attachment; filename="filename.csv"');
    -- Close the HTTP Header
    owa_util.http_header_close;
    htp.prn('columnHeader1,ColumnHeader2,ColumnHeader3'||chr(13));
    -- Loop through all rows
    for x in (
    Select column1,column2,column3 from table;
    loop
    -- Print out a portion of a row,
    -- separated by commas and ended by a CR
    htp.prn(x."column1"||','||x."column2"||','||x."column3"||chr(13));
    end loop;
    -- Send an error code so that the
    -- rest of the HTML does not render
    htmldb_application.g_unrecoverable_error := true; --You can leave out this line if you still want to display the existing HTML report.
    end;
    This will show a download box, so you can download the csv file. The page process should be called before header and the condition should be the button press.

  • Print crystal report without preview

    Dear All,
    i want print crystal report without preview.
    when i click print button i want show printer list install in that computer.
    so user can choose which printer that use to print. I means like if we printing document from office, we can choose the printer.
    how that i can do that?
    please help.
    best regards,
    Surbakti

    Since this issue has little to do with sql server, I suggest you post your question to a forum for CR
    SAP CR community

  • Print report from client machine without showing in screen

    Hi guys!!
    I m using (forms10g+ 10gAS). I want to Print report from client machine without showing in the screen/monitor.
    Currently I m generating report in pdf format. From the pdf I m printing the document.
    But my requirements is to print directly to the printer without showing preview
    Thanks in advance
    Mokarem

    Maybe this will help:
    http://forums.oracle.com/forums/thread.jspa?messageID=1209371&#1209371
    Gary

  • Crystal report print directly without crystal viewer

    HI !
    In my addon i use Crystal Report. What would be the code i need to add if i want to print directly instead of having to go thru the crystal viewer.
    The crystal viewer gives me lots of problems with painting the screen when i move the form and it allways opens in the task bar. I cant seem to control the window sizes of the viewer either so unless it's easyer to fix those problem i need help to go and print direct without the viewer....
    Thanks for your time

    Hi John !
    I finnaly made it work... 
    here's what i used
    Dim objAppl As New CRAXDRT.Application
                Dim objReport As CRAXDRT.Report
                objReport = objAppl.OpenReport("C:Program FilesSAPSAP Business OneAddOnsDutiesresultat.rpt")
                objReport.PrintOut(True, 1)
    Thanks alot for your time.
    p.s.: I can i get the print window open on the screen instead of the task bar ??? it did that with the viewer too...
    Thanks again

  • Exporting Crystal Report data to the Excel Print Headers

    Hello everyone.  I am trying to do something with Excel headers that is a little more advanced than the usual.  I have multiple reports that are designed to export to Excel.  Normally I only export a report header.  However, I have a customer who wants a label to appear in each page header and footer in Excel. Here is the catch - they want the label to appear in the Excel print header and footer, not just on the main excel page.  The label contains an SBU marking, so there is a requirement that it gets printed on every page.
    If you are not familiar with the print header, it is a separate section of an Excel document that appears when you print the excel document.  For this operation, I don't think I can use the built-in Crystal Export options.  I have tried to Export to Microsoft Excel and I can send the page header and footer to the Excel data sheet, but not to the print header/footer. 
    Thanks for your help!
      - David

    Hi David,
    I haven't worked with Excel's headers and footers but you are correct that Crystal can't export to those sections.  I have though had to make modifications to an Excel file after exporting and I believe you will need to do something similar to what I did.
    After I exported the report to Excel, I had a program I wrote that opened the Excel file and modified it.  In my case I just had to encrypt it, zip it up and email it.  You may need to do something as well outside of Crystal and Excel.  Crystal doesn't export to an Excel template so automating it in Excel wouldn't work.
    Good luck,
    Brian

Maybe you are looking for

  • Error when trying to start BPEL PM server

    Hi , I encountered the following error when i try to boot the BPEL PM server. Can somebody help me with this problem. Error compiling D:\OraBPELPM_1\integration\orabpel\system\appserver\oc4j\j2ee\ho me\applications\orabpel_ear\ejb_ob_engine.jar: Synt

  • How to write Date/Time property of tdms file

    On the root page of the tdms file, there is a built-in property called "Date/Time" in the first row. I would like to use it to save the time stamp when the tdms file is created. But in the help file, I only find the following property constant. So, h

  • Coldfusion 8 / Java Error HELP

    Came in this morning and noticed that my flash forms were not displaying in flash. Shortly after all of our CF8 websites were unresponsive. I cannot access the CFA. This is the error I am receiving. I have tried to reinstall CF8 but I get a invocatio

  • Unable Unlock a User when controlled organization is not assigned as Top

    Hi, When a admin user with controlled organization and organization other than top tries to unlock a user it is throwing an error as "user has no resources assigned". I tried assigning admin role with controlled orgnaization as Top:Example and contro

  • Frustrated with installation of CS6

    I have successfully downloaded CS6- please tell me the next step to actually install the programs- I have unzipped the files and tried to install the Windows installer packages it gives me a message "Please install PDF Settings CS6 using Setup.exe";