Export a report as JPEG format
Hi,
From the Reporting Services 2005 Documentation, it mentions that a report can be rendered as a JPEG format. Here is a quote from the aritcle:
"The Image rendering extension renders a report to a bitmap or metafile. By default, the Image rendering extension produces a TIFF file of the report, which can be viewed in multiple pages. When the client receives the image, it can be displayed in an image viewer and printed.
The Image rendering extension can generate files in any of the formats supported by GDI+: BMP, EMF, GIF, JPEG, PNG, and TIFF. For TIFF format, the file name of the primary stream is ReportName.tif. For all other formats, which render as a single page per file, the file name is ReportName_Page.ext where .ext is the file extension for the chosen format."
But I only see TIFF to be the only available image format in the Render format drop down list.
Could somebody please tell me how to export a report in JPEG format?
Thank you in advance.
The image format is controlled via the deviceinfo setting on the renderer. There is no way to set this from the UI. It can only be done programatically or by direct url access.
However, you can specify default deviceinfo settings in the config file. So you could add another instance of the image renderer with a default to jpg. Add the following code to rsreportserver.config under Configuration/Extensions/Render:
<Extension Name="JPG" Type="Microsoft.ReportingServices.Rendering.ImageRenderer.ImageReport,Microsoft.ReportingServices.ImageRendering">
<OverrideNames>
<Name Language="en-us">JPG</Name>
</OverrideNames>
<Configuration>
<DeviceInfo>
<OutputFormat>JPEG</OutputFormat>
</DeviceInfo>
</Configuration>
</Extension>
Similar Messages
-
Export the Report in Excel format
Hi,
How to export the Report in Excel format directly from the SAP to my Desktop.
Plz. give me the process???
Thanksuse this,
INCLUDE OLE2INCL.
INCLUDE EXCEL__C.
AND
H_EXCEL TYPE OLE2_OBJECT, " Excel object
H_MAPL TYPE OLE2_OBJECT, " list of workbooks
H_MAP TYPE OLE2_OBJECT, " workbook
H_ZL TYPE OLE2_OBJECT, " cell
H_F TYPE OLE2_OBJECT, " font
H TYPE I.
AND
PERFORM SUB_GET_DATA.
'get data here
PERFORM SUB_POP_DATA.
'populate data here
AND
PERFORM SUB_DISP_EXCEL.
*& Form SUB_DISP_EXCEL
FORM SUB_DISP_EXCEL.
START EXCEL
CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
SET PROPERTY OF H_EXCEL 'Visible' = 1. " for printing o/p line by line in excel sheet
get list of workbooks, initially empty
CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
add a new workbook
CALL METHOD OF H_MAPL 'Add' = H_MAP.
output column headings to active Excel sheet
PERFORM FILL_CELL USING 1 1 1 10 'Mat Doc Number'(001) 'R'.
PERFORM FILL_CELL USING 1 2 1 4 'Item'(002) 'R'.
PERFORM FILL_CELL USING 1 3 1 10 'Mat Doc Date'(003) 'R'.
PERFORM FILL_CELL USING 1 4 1 10 'Vendor'(004) 'R'.
PERFORM FILL_CELL USING 1 5 1 20 'Mat Doc Item amount'(005) 'R'.
PERFORM FILL_CELL USING 1 6 1 15 'Material price'(006) 'R'.
PERFORM FILL_CELL USING 1 7 1 4 'Currency'(007) 'R'.
PERFORM FILL_CELL USING 1 8 1 18 'Material'(008) 'R'.
PERFORM FILL_CELL USING 1 9 1 30 'Material Desc'(009) 'R'.
PERFORM FILL_CELL USING 1 10 1 19 'Qty in Unit of Entry'(010) 'R'.
PERFORM FILL_CELL USING 1 11 1 19 'Qty Received'(011) 'R'.
PERFORM FILL_CELL USING 1 12 1 4 'Unit of Entry'(012) 'R'.
PERFORM FILL_CELL USING 1 13 1 20 'Mat Group'(013) 'R'.
PERFORM FILL_CELL USING 1 14 1 16 'Vendor Invoice'(016) 'C'.
LOOP AT T_OUT INTO W_OUT.
copy flights to active EXCEL sheet
H = SY-TABIX + 1.
PERFORM FILL_CELL USING H 1 0 10 W_OUT-MBLNR 'R'.
PERFORM FILL_CELL USING H 2 0 4 W_OUT-ZEILE 'R'.
PERFORM FILL_CELL USING H 3 0 10 W_OUT-BLDAT 'R'.
PERFORM FILL_CELL USING H 4 0 10 W_OUT-LIFNR 'R'.
PERFORM FILL_CELL USING H 5 0 20 W_OUT-DMBTR 'R'.
PERFORM FILL_CELL USING H 6 0 15 W_OUT-NETPR 'R'.
PERFORM FILL_CELL USING H 7 0 4 W_OUT-WAERS1 'R'.
PERFORM FILL_CELL USING H 8 0 18 W_OUT-MATNR 'R'.
PERFORM FILL_CELL USING H 9 0 30 W_OUT-MAKTX 'R'.
PERFORM FILL_CELL USING H 10 0 19 W_OUT-ERFMG 'R'.
PERFORM FILL_CELL USING H 11 0 19 W_OUT-WEMNG 'R'.
PERFORM FILL_CELL USING H 12 0 4 W_OUT-ERFME 'R'.
PERFORM FILL_CELL USING H 13 0 20 W_OUT-WGBEZ 'R'.
PERFORM FILL_CELL USING H 14 0 16 W_OUT-XBLNR 'C'.
CLEAR W_OUT.
ENDLOOP.
CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
CALL METHOD OF H_EXCEL 'Worksheets' = H_MAPL." EXPORTIN G #1 = 2.
SET PROPERTY OF H_EXCEL 'Visible' = 1.
PERFORM ERR_HDL USING 'Unable to create workbook'.
add a new workbook
CALL METHOD OF H_MAPL 'Add' = H_MAP EXPORTING #1 = 2. "----------can remove-------THIS IS FOR STAY AT LIST
PERFORM ERR_HDL USING 'Unable to create new workbook'..
FREE OBJECT H_EXCEL.
PERFORM ERR_HDL USING 'Unable to free workbook'.
ENDFORM. " SUB_DISP_EXCEL
FORM FILL_CELL *
sets cell at coordinates i,j to value val boldtype bold *
FORM FILL_CELL USING I J BOLD COL VAL I_HORIZON_ALIGN.
CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
PERFORM ERR_HDL USING 'set cell object error'.
SET PROPERTY OF H_ZL 'Value' = VAL .
PERFORM ERR_HDL USING 'set value object error'.
GET PROPERTY OF H_ZL 'Font' = H_F.
PERFORM ERR_HDL USING 'set font object error'.
SET PROPERTY OF H_F 'Bold' = BOLD .
PERFORM ERR_HDL USING 'set bold object error'..
SET PROPERTY OF H_ZL 'ColumnWidth' = COL.
PERFORM ERR_HDL USING 'set columnwidth object error'.
IF NOT I_HORIZON_ALIGN IS INITIAL.
IF I_HORIZON_ALIGN = 'L'.
SET PROPERTY OF H_ZL 'HorizontalAlignment' = XLLEFT.
ELSEIF I_HORIZON_ALIGN = 'R'.
SET PROPERTY OF H_ZL 'HorizontalAlignment' = XLRIGHT.
ELSEIF I_HORIZON_ALIGN = 'C'.
SET PROPERTY OF H_ZL 'HorizontalAlignment' = XLCENTER.
ENDIF.
ENDIF.
PERFORM ERR_HDL USING 'set Alignment object error'.
ENDFORM. "FILL_CELL
*& Form ERR_HDL
outputs OLE error if any *
--> p1 text
<-- p2 text
FORM ERR_HDL USING VAL.
IF SY-SUBRC <> 0.
WRITE: / VAL.
STOP.
ENDIF.
ENDFORM. " ERR_HDL -
How to export the report in HTML format for desktop application
Hi,
i have wrote the JRC desktop application to export the report and i am able to export it in PDF and other formats as mentioned in "ReportExportFormat" API.
i would like to know is there any API there which can export the report in HTML format.
i know it would be possible with web based application of JRC, but how can i do it in desktop application?There's no mechanism for static HTML pages that displays the report.
You can use the CrystalReportViewer DHTML viewer, but that's 'interactive'.
Sincerely,
Ted Ueda -
Issue while exporting the report to other formats
When the rpt file created in the BO server is used to view the report through the report viewer, there are export options available to choose from. If this export option is tried as MSExcel or Word document, the alignment, page headers and all are not coming in the same way like in the one generated through the PDF.
Hi aparmar,
Which version of the Crystal Report and Business Objects you are using?
Which SDK's you are using in your application to export the report to RTF format?
Also if you are using JRC in your application, you can follow the given link:
Font size in exported report
I hope the above link might be helpful.
Please revert if you need any other information.
Regards,
Anchal -
Issues in exporting SSRS report to PDF format in Report Server - Blank spaces are deleted
Hi Gurus,
I have a problem in exporting SSRS report to PDF format. It deletes all the blank spaces when I use bullet in a Text box and try to export to PDF formt in Report Server . For example
• Project submitted to the TRC
Result in PDF format:
• ProjectsubmittedtotheTRC
I also noted that when I try to export to PDF in Visual Stuio 2005 (Business Intelligence development studio), it does not delete any blank spaces and shows the correct aligned Data in PDF format.
Please help me as it is frustrating a lot
I would highly appreciate for your quick responseWas there ever a solution found for this as i have the same issue.
When bullet point is entered in a field all the spaces are removed when exported to PDF
i tried exporting to excel and it does not remove spaces, however this is no use to me as it needs to be in PDF
Using IE 7 (Don't think the browser has anything to do with it as this happened via a subscription)
Didn't know SSRS had specific Service Packs, i though they came as patches to SQL Server (SQL Server is on Service Pack 3)
This should be easy to replicate all you need to do is copy text containing a bullet point into a sql server database field and then add this field to a report export to pdf and the spaces are gone
Thanks in advance,
Mark Brunton
brunzire -
Problems in exporting crystal report to word format
Hi All,
I am getting trouble in exporting crystal report to word formats.
Here are my questions:
1) The exported word file will have a text "R..950" added on top right hand corner, How to get rid of it?
2) For those "Can Grow" fields, it can show multiple line data correctly in the viewer. However, the text box in exported word file will be too small to show all the content and lower half of the text is cut.
Thanks and Regards,
CherryHi Asha,
Thanks for reply.
The version of crystal report designer and viewer which I am using is version 11 Release 2.
Besides, I guess it might relate to the format of report so I would like to tell you more.
Font Face: Arial Unicode MS (in order to show chinese characters)
Font Size: 9 pt
For the text "R..950" issue, I just found that some people in the internet having the same issue and they suggested that may relate to the locate. In my case, the locate is Chinese (Hong Kong S.A.R.).
If it is necessary, I may send you my report with sample for test.
Regards,
Cherry -
How to Export SSRS report into Excel format using query string
Hello all,
I am new to SSRS world.
Last night i was trying to add a hyperlink on the SSRS report (.rdl) file, by clicking which we can export the report into "Excel" format, but with no luck.
Can anybody tell me how to form the hyperlink, so that we can export the report with its current content ( I mean the report content generated by selecting some parameter values)Hi Suman85,
Based on your scenario, you want to add a link on the SSRS report file, and then click it you can export the report into “Excel” format.
Just as kishan1901 said , you can add a textbox to your report and type in the words “Click here and export the report
to excel” .Then right-click the textbox and select Properties. Switch to Navigation tab, click the radiobutton of ‘Jump to URL’ and type in the expression ,here is just a example:
="http://vyof1884200/ReportServer$youhoo?/My+Adventure+Works/Product+Sales+and+Profitability+by+Month&rs:Command=Render&rs:Format=excel"
Then preview the report ,you will see
Click here and export the report to excel
when you move the mouse to it ,the mouse will become a hand ,then left-click, it will jump out a dialog box to indicate user whether the excel file should be saved , opened or canceled.
I think this is what you want, if you have any further requirement, could you please describe it in more detail? We would give you some resolution or workaround.
Regards,
Challen Foo -
Formating issue after export crystal report to excel format
Hi Everyone,
I have a crystal report devloped in crystal 8.5 and i am calling this report from my .net windows application. I have a problem when i export the report in excel format. One of the column size(which is report footer) gets increased because of which my report is not properly formated. I have reoved all the blank lines and extra space but still i am not able to reduce the column size. Any help will be appriciated.
Thanks in advance.Hi,
Please let us know the Visual Studio Version that you are using, just to inform you, VS2005 is compatible with CRXIR2 and above and VS2008 is compatible with CR2008 + SP0.
Do the report display properly from the designer? Does the Export from the designer in xls works fine?
Thanks,
AG. -
Exporting Cystal Reports into CSV format
Hi,
I wanted to export some reports in CSV format with following options checked in Crystal 2008:
These options are given under separated Values exports options:
1. Mode = Standard Mode
2. Isolate Report/Page sections and Isolate Group Scctions check boxes checked
I could not find properties in CR object to set as per above requirement in VB6 code.
I am searching these properties in ReportObj.ExportOptions
Can anyone please advise in this regard.
Thanks in advance.
Regards-
BhoopendraHi Bhoopendra,
The Report Designer Component (RDC) COM component has been retired with the release of CR2008. Using CR2008 in VB6 is not supported, and it's not expected to work.
The recommended upgrade path is to migrate to the Crystal Reports .NET SDK. You can find getting started information in the [.NET Development - Crystal Reports|SAP Crystal Reports, version for Visual Studio; forum.
Sincerely,
Dan Kelleher -
Exporting large report to Excel format (90K lines)
Hi,
I am trying to export a 90K line report to excel format and I get that error messsage:
Description : Une erreur d'application s'est produite sur le serveur. Les paramètres d'erreur personnalisés actuels pour cette application empêchent l'affichage à distance des détails de l'erreur de l'application (pour des raisons de sécurité). Cependant, ils peuvent être affichés par les navigateurs qui s'exécutent sur l'ordinateur serveur local.
Détails: Pour permettre l'affichage des détails de ce message d'erreur spécifique sur les ordinateurs distants, créez une balise <customErrors> dans un fichier de configuration "web.config" situé dans le répertoire racine de l'application Web en cours. Attribuez ensuite la valeur "off" à l'attribut "mode" de cette balise <customErrors>.
<!-- Fichier de configuration Web.Config -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Remarques: La page d'erreurs actuellement affichée peut être remplacée par une page d'erreurs personnalisée. Pour ce faire, modifiez l'attribut "defaultRedirect" de la balise de configuration <customErrors> de l'application, de sorte qu'il pointe vers une URL de la page d'erreurs personnalisée.
<!-- Fichier de configuration Web.Config -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
I believe it is a timeout problem. Any idea how work around this?
Thanks,I don't have the right to create reports. With those datas, I need grouping them filtering them, commenting them, creating TCD and distributing it. I believe it is easier exporting it and handle it. Also I don't want the data changing from day to day.
Then you are foobar'ed.
there is nothing more you can do it the SSRS export feature is not working for you, and you don't have access to the CM12 db and you can't create report. There are no other option to access the data.
Garth Jones | My blogs: Enhansoft and
Old Blog site | Twitter:
@GarthMJ -
Why do hyperlinks stop working when infoview exports a report to PDF format
I have a report that contains hyperlinks to pdf documents. When the report is viewed from within Infoview the hyperlinks work fine, but when I have infoview export the report to a pdf format the links are not enabled. When the user clicks on the link nothing happends. Thank you for any guidance that can be offered in solving this issue.
Hello,
Please check if the note 1397644 can help for the problem with the hyperlnks in PDF format.
Best Regards,
Des -
Export WebI Report in others formats
Hi,
Is there any way to export a WebI report in HTML format. Current only the following output format options are available while scheduling a WebI report:
1) Web Intelligence
2) Microsoft Excel
3) Adobe Acrobat
thanks!!!Hi Alvaro,
These are the only supported formats. Desktop Intelligence and Crystal support other formats. You might consider the Query as a Web Service which can provide your data as XML.
Regards
Alan -
How to export a report in .xls format
<p><font face="arial,helvetica,sans-serif" size="2">For my current project I have to take existing Crystal Report files and export them into Excel. I cannot use a .csv file, it has to be a .xls file in order to preserve the formatting. Does the Crystal plugin for Eclipse support this feature? I know it can export to .csv but how do I export to .xls? </font><font face="arial,helvetica,sans-serif" size="2">Thanks in Advance, </font><font face="Arial" size="2">Dave Amundsen</font></p>
<p>Hi Dave,</p><p> Unfortunately this feature is not currently supported with the Java engine which ships with Crystal Reports for Eclipse. There is a thread under the Feedback/Enhancement Requests section of the Forum where I would encourage you to add your opinions. You can find the thread here:</p><p><a href="/node/642"><u><strong>http://diamond.businessobjects.com/node/642 </strong></u></a></p><p>The only solution I can offer at this time is to look at one of our server solutions (e.g. Crystal Reports Server) if you need formatted Excel exporting with your Crystal Reports files. From what I hear, converting our existing Excel export functionality to a 100% Java environment requires a sizeable development effort, which is why we were not able to get this feature into the initial release of Crystal Reports for Eclipse.</p><p>If you are interested in more information around our Crystal Reports Server product or wish to download a free trial of the product, check out this link:</p><p><a href="http://www.businessobjects.com/products/reporting/crystalreports/server/default.asp"><u><strong>http://www.businessobjects.com/products/reporting/crystalreports/server/default.asp</strong></u></a> <br /></p><p>I should also mention that our server solutions do come with a complete Java SDK, which has a very similar object model to the one used by the Java Reporting Component shipped with Crystal Reports for Eclipse. </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) </p>
-
Error while exporting crystal report to excel format or word format
i am using vs 2010 and sap crystal report(version 13.0.0.99) for vs 2010. when i export report to excel(97-2003 format) from crystalreportviewer, i am getting error that application has stopped working. I also have ms-office 2007 install on my pc.
when i see eventlog of system i notice following error:
Faulting application name: NBFCForms.exe, version: 1.0.0.0, time stamp: 0x4e170b01
Faulting module name: crxf_xls.dll, version: 13.0.0.99, time stamp: 0x4cc412ac
Exception code: 0xc0000409
Fault offset: 0x0009742e
Faulting process id: 0xc60
Faulting application start time: 0x01cc3e1e5657a4a4
Faulting application path: C:\Users\Harshada\Desktop\NBFCDeploy\NBFCForms.exe
Faulting module path: C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crxf_xls.dll
Report Id: f0bae850-aa11-11e0-a98e-0019d144259bThanks Roberto and Kalpana.
This link solved the problem:
http://social.msdn.microsoft.com/Forums/en-US/bcf792f4-4da3-4dac-b689-60168e695683/error-internet-explorer-cannot-download-edreportviewerwebcontrolaxd-from-site?forum=vsreportcontrols -
Cannot export crystal report in excel format from crystal report viewer
This problem occurs on only one workstation.
Open Advanced Reports > Enter workorder # > Click on 'workorder work(uninvoiced)' > Work order opens.
Click on icon "Export report"
Save as type: change to .xls
Error: Crystal Report Windows Forms Viewer. Error in file
SAP.......rpt:
Error detected by export DLL:
Export failed.Try adding c:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to your windows enviroment variable PATH then restart.
Maybe you are looking for
-
Recent update has affected second display - help
MacBook Pro, Dell E207WFP, in my case, after last update of 10.6.8, the macbook ONLY work with external monitor connected with mini-DVI to VGA adapter. If I remove the external monitor the MAC doesn't start. I want to go back to 10.6.7 or remove the
-
Appleworks won't start in Leopard
I recently updated to Leopard and since then Appleworks launches, then quits. Any ideas?
-
I think I said everything I needed to in my "Topic" comment. Thank you for any suggestions
-
Replacing the HDD and installing leopard (PLEASE HELP)!!!
hi there, i currently have a macbook that has just gone out of warranty. i bought a new HDD from WD, installed tiger (using the original discs that come with the mac) and then installed leopard. it seemed to be working fine (apart from a few keyboard
-
To start, I do have two backups for my 500GB drive on my MBP A TimeMachine on a 500GB partition on a GPT WD bulky 1 TB disk 2 gray CDs I just bought a 750 GB GoFlex pro pocket drive (it will work or not ... brand is not the question). I downloaded CC