" Displaying the Report in PDF file Format "
Hai Friend's,
I have Developed a Report in Web-Intelligence .My Report is having 50 Collums and 600 Rows. The Report is too big Report. when the Save the Report in PDF File format, The PDF file Format Report is Consisting of 10 Pages, The Report Output is not coming in One Page. But my user want the Report all the Field's :: Collumms,Rows in one Page.can Anybody let me know the solution.
Hi Ashok,
You can change the page size and orientation in the web.xml in the following folder.
Web Intelligence default Page size Modification u2013 Follow these steps:
1. Open the defaultconfig.xml file found in the following directory:
servername\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\webiApplet\AppletConfig
2. Look for the following code near the top of the page:
<KEY VALUE="page*default">
<FORMAT NAME="A4" ORIENTATION="portrait" />
</KEY>
3. Change this to:
<KEY VALUE="page*default">
<FORMAT NAME="LETTER" ORIENTATION="portrait" />
</KEY>
4. Save the file.
All the Best,
Madhu...
Similar Messages
-
I am working with reports of 2.5 version and i got a requirement for adding an option to save the report in pdf format. Can anybody please help me on this asap
Thanks & RegardsAre u sure about the report version.
Please do upgrade while even in oracle they almost stopped for new version -Developer suite -
Displaying the report output in excel format
Please help me in getting the report output in excel format.
thnksI ran into a BIG problem after passing from 6i rep server to 9i rep server.
On 6i rep server I used to set DESFORMAT='DELIMITED', and that produced reasonable tab-delimited output for reports that did not have group above (all the query groups were from left to right, not a single group having fields displayed above some other group). When deployed on rep server 9i, the same reports produced some unexplainable output: some of the rows were duplicated, but I couldn't figure out any rule.
So, the best thing to get the reports into something that fits in .xls would be to have the output in .xml, that may be imported in Excel. -
How to display the data in PDF format
hi all,
i will give input in my selection screen and i will execute my report then it has to display data in PDF file in some directory (like c or d directory). i refered existingthreads . most of then saying using spool req we can download pdf file i.e. not my requirement. my requirement is when i click on execute button it has to display the data in pdf file with headings.
Anybody can send me the sample code please.
thanks,
maheedharHi Easwar,
i am sending my code. in this one records is splitting into 2 records.
report zmaheedhar.
maheedhar-start
TABLES : vbak.
parameters : p_vbeln type vbak-vbeln.
data : begin of itab occurs 0,
vbeln type vbak-vbeln,
ERDAT type vbak-erdat,
ERZET type vbak-erzet,
ERNAM type vbak-ernam,
ANGDT type vbak-angdt,
BNDDT type vbak-bnddt,
AUDAT type vbak-audat,
VBTYP type vbak-vbtyp,
TRVOG type vbak-trvog,
AUART type vbak-auart,
AUGRU type vbak-augru,
GWLDT type vbak-gwldt,
SUBMI type vbak-submi,
LIFSK type vbak-lifsk,
FAKSK type vbak-faksk,
NETWR type vbak-netwr,
WAERK type vbak-waerk,
VKORG type vbak-vkorg,
end of itab.
maheedhar-end
DATA: pripar TYPE pri_params,
arcpar TYPE arc_params,
lay TYPE pri_params-paart,
lines TYPE pri_params-linct,
rows TYPE pri_params-linsz.
DATA: val(1), val1(1).
*---> Local Printer Name defined in SAP, Change NHREMOTE to your local printer
DATA: dest TYPE pri_params-pdest VALUE 'ZNUL'.
DATA: name TYPE pri_params-plist VALUE 'Testing'.
DATA: i_pdf TYPE STANDARD TABLE OF tline.
DATA: spono TYPE tsp01-rqident.
maheedhar-start
top-of-page.
write: 'Sales Document' , 'C Date', 'Entry time', 'Created By','Quotation date',
'Date','Document Date','SD document category','Transaction group','Sales Document Type',
'Order reason'.
start-OF-SELECTION.
select vbeln ERDAT ERZET ERNAM ANGDT BNDDT AUDAT
VBTYP TRVOG AUART AUGRU GWLDT SUBMI LIFSK
FAKSK NETWR WAERK VKORG from vbak
into table itab
where vbeln = p_vbeln.
maheedhar-end
--- Retreive local printer details
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = dest
no_dialog = 'X'
immediately = ' '
IMPORTING
out_archive_parameters = arcpar
out_parameters = pripar
valid = val
valid_for_spool_creation = val1
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*-- Set Spool printer details w.r.t local printer
pripar-prdsn = 'DSN'.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_archive_parameters = arcpar
in_parameters = pripar
no_dialog = 'X'
list_name = name
IMPORTING
out_archive_parameters = arcpar
out_parameters = pripar
valid = val
valid_for_spool_creation = val1
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc EQ 0.
---> Triggers the spool creation in the sense all the write statements from hereon will be written to spool instead of screen
NEW-PAGE PRINT ON
NEW-SECTION
PARAMETERS pripar
ARCHIVE PARAMETERS arcpar
NO DIALOG.
ELSE.
WRITE:/ 'Unable to create spool'.
ENDIF.
*--- Output statements
*WRITE:/ 'First Line', 'mahee','lklk','kikik','lokiuj','fffff','kijuyh','fgfgfgfg','gtgtgtgtgtgtgtgtggggggggggggggggggggggggggggggg'.
*WRITE:/ 'Second Line'.
LOOP at itab.
write: itab-vbeln,
itab-ERDAT,
itab-ERZET,
itab-ERNAM,
itab-ANGDT,
itab-BNDDT,
itab-AUDAT,
itab-VBTYP.
ENDLOOP.
"---> Close spool
NEW-PAGE PRINT OFF.
spono = sy-spono.
Convert ABAP Spool to PDF
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = spono
no_dialog = 'X'
TABLES
pdf = i_pdf
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
Download PDF contents to presentation server
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'c:\test.pdf'
filetype = 'BIN'
TABLES
data_tab = i_pdf
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
thanks,
maheedhar -
No link after exporting Crystal report as pdf file
Hello,
If my Crystal Report contain link to the .avi file saved on the local hard disk and if I export the Report as .pdf file, pdf file does not contain that link. Why?
The overall scenario is like-
My application fires a query on SQL Server database and result of that query is stored in a Dataset. This dataset is set as a datasource to the Crystal report. Now some, records (returned by the query) have .avi files(i.e. Event Videos which are stored on the local hard disk) associated with them. I have stored these .avi files in a specific path on local Hard disk say "C:/EventVideos/*.avi" . I used a special format in these avi files name. (like - "EventVideo_1.avi" (This is for 1st event), "EventVideo_5.avi" (This is for 5th event)etc. to identify which avi is for which event. All events do not have avi files associated with them)
Now, I take one object in crystal report. Using it's Format editor created a formula for hyperlink as -
"file:///c:/EventVideos/EventVideo_" + {DataTable1.EventID} + ".avi" .
EventID is the field of dataset which has ID's (like 0, 1, 2, 3, 4 etc) of all resulted events. It is of a String data type.
Now when I export, my report as .xls, .rtf, .doc, I can open the avi files. When I bring cursor on this object, cursor get change to Hand and after click on it avi file start to play.
But if I export it as .pdf, it does not contain the link for avi files. When I bring cursor on this object, it does not change to Hand, and after click on it nothing happens. No video play.
I stick to this problem.
Appreciate your help.
Thanks in advance.Taken from CR Help File:
"PDF format is a page-based format. The exported documents are intended for printing and redistribution. PDF format will export both layout and formatting in a manner that is consistent with how the report looks on the Preview tab. PDF format embeds the TrueType fonts that appear in the document. (Non-TrueType fonts are not supported.) This export format does not support Microsoft font-linking technologyu2014which is used to provide support for some extended character sets such as Chinese HKCS. Therefore, the fonts used in the report must contain all of the required glyphs. These URI types are supported for hyperlinks: "http:", "https:" and "mailto:".
Therefore your hyperlink is not working as u are using File type when cr only supports http https and mailto uri types -
Display reports on PDF file on the client.
I'm generating reports on web enviroment.
I want to know how to display the report output on the client using a pdf file?????. Because by default the server generate an html file displayed on the web browser.
David Alarid.Add "desformat=pdf" to your URL. Typically you're URL will look like:
http://<server>:<port>/reports/rwservlet?report=<reportName>&destype=cache&desformat=pdf&... -
Preview: In a group of PDF files in the same window, going to the next or a previous PDF file displays the bottom of PDF page by default, not the top of the PDF page. How do you change this? In Mac OS 10.9 and previous, going to the next or previous PDF file displays the top of the PDF by default. Is there a way to change this back? When I go to the next or previous PDF file, I want to first view the top of the page, not the bottom. This really doesn't make any sense. Any help? Thanks!
MacBook Air (13-inch, Mid 2012)
2 GHz Intel Core i7
8 GB 1600 MHz DDR3
500 GB Flash Storage
Preview Version 8.0 (859)
Mac OS 10.10.1That to me seems like a bug in Yosemite.
Apple Feedback http://www.apple.com/feedback/
Bug Reporter https://bugreport.apple.com/ -
Save the report in PDF format on the server: is it possible?
Hi all,
Is it possible to save the report in PDF format on the server?
In other words, in a web application:
1) the user requests a report
2) the report produced in PDF format, is saved on the server, where is the Java Reporting Component
3) the report, in PDF format, is sent to the client's user
Thanks a lotPrintOutputController.export, get the byte stream, save on server.
Sincerely,
Ted Ueda -
How to get the output of the report in pdf format
how to get the output of the report in pdf format?
Thanks in advance,
madan.Refer these links
http://www.sap-img.com/bc037.htm
http://www.members.tripod.com/abap4/Save_Report_Output_to_a_PDF_File.html
CONVERT_ABAPSPOOLJOB_2_PDF FM convert abap spool output to PDF -
What (ISO?) document completely specifies the PDF file format?
Is there ONE (ISO?) document that FULLY specifies the format of a PDF file format? Where to obtain it?
I need it so I can write a program that will perform some processes on PDF files.
ThanksFor all practical purposes there's no file size limit in the ISO PDF specification, however the bit length of internal references means there will be problems at around 10GB. There's also a limit of 2 billion pages (the page count attribute is a 32-bit int).
Distiller won't output more than 32767 pages at a time, but I know cases of archivists working with 100,000-page text files (created by appending thousands of documents, but not in Acrobat).
Having said that, the Acrobat Family is 32-bit code, so can only allocate 2GB of process memory. This means you can't perform tasks where an asset larger than the allocated free space has to be retained in RAM, and that includes the save operation. The Acrobat X Family will open an existing file >2GB, and Acrobat X will assemble PDF Portfolios >2GB, but can't save them.
Given that creating >2GB files is a very rare scenario, there are no announced plans to implement x64 flavors of Acrobat or Distiller. -
REP-0002: Unable to retrieve a string from the Report Builder message file;
Hi,
I've a custom report in which i need to display a large string, of more than 4000 characters. To cater to this requirement i've written a formula column which displays string upto 4k characters and for a string of size beyond 4k i am calling a procedure which uses a temp table having a clob field.
For a small string the report runs fine but whenever a large string requirement comes into the picture, said procedure gets triggered and i get REP-0002: Unable to retrieve a string from the Report Builder message file.
OPP log for the same gives an output as under:
Output type: PDF
[9/21/10 2:17:12 PM] [UNEXPECTED] [388056:RT14415347] java.io.FileNotFoundException: /app/soft/test1udp/appsoft/inst/apps/e180r_erptest01/logs/appl/conc/out/o14415347.out (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:241)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)
Report Builder 10g
BI Publisher's version : 4.5.0
RDBMS Version : 10.2.0.4.0
Oracle Applications Version : 12.0.6
Searched for the same on metalink and found Article ID 862644.1, other than applying patch and upgrading version of BI Publisher is there any other workaround to display a comma seperated string as long as 60k characters, If any please suggest.
Thanks,
BhoomikaMetalink <Note:1076529.6> extracts
Problem Description
When running a *.REP generated report file you get errors:
REP-00002 Unable to retrieve string from message file
REP-01439 Cannot compile program since this is a runtime report
Running the same report using the *.RDF file is successful.
You are running the report with a stored procedure,
OR you are running against an Oracle instance other than the one developed on,
Or, you recently upgraded your Oracle Server.
Solution Description
1) Check that the user running the report has execute permissions on any stored
SQL procedures called. <Note:1049458.6>
2) Run the report as an .RDF not an .REP , that is remove or rename the .REP
version of the report. <Note:1012546.7>
3) Compile the report against the same instance it is being run against.
<Note:1071209.6> and <Note:1049620.6> -
Unable to view the reports in PDF from Workspace
Hi Experts,
I am able to view reports using Worksapce in HTML but not in PDF whereas ghostscript is installed on the FR reporting server. Bin and Lib folder of ghostscript are also in PATH of FR host. Please help how can I view the reports in PDF format.
Thanks a lot in advance.
-Naveed-Hi Vivek,
Thanks for your reply. I am using the Hyperion Financial Reporting (11.1.1.3) server on Windows 2003 32 bit and GNU Ghostscript is only available for unix type of OS. On one of our old 9.3.x env on Windows 2003 is working fine with regular ghostscript. So seems issue is something else. Is any log files which I can review and post the error for you ?
Thanks
-Naveed- -
How to display the content from a file stored in database
when i am trying to display the content from a file which stored in database on oracle report 10g
data are displaying as following. please help me to display the data in readable format
<HTML LANG="en-US" DIR="LTR">
<!-- Generated: 1/11/2006, postxslt.pl [1012] v1
Source: amsug304286.xml
File: amsug304286.htm
Context: nil
Tiers: ALWAYS
Pretrans: YES
Label: Release 12 -->
<HEAD>
<!-- $Header: amsug304286.htm 120.4 2006/11/01 20:57:29 appldev noship $ -->
<!--BOLOC ug1_OMPO1010302_TTL--><TITLE>Product Overview (ORACLE MARKETING)</TITLE><!--EOLOC ug1_OMPO1010302_TTL-->
<LINK REL="stylesheet" HREF="../fnd/iHelp.css">
</HEAD>
<BODY BGCOLOR="#F8F8F8">
<A NAME="T304286"></A><A NAME="ProdOve"></A>
<CENTER><H2><!--BOLOC ug1_OMPO1010302--><B>Product Overview</B><!--EOLOC ug1_OMPO1010302--></H2></CENTER>
<p><!--BOLOC ug1_OMPO1010304-->Oracle Marketing drives profit, not just responses, by intelligently marketing to the total customer/prospect base. By leveraging a single repository of customer information, you can better target and personalize your campaigns, and refine them in real time with powerful analytical tools.<!--EOLOC ug1_OMPO1010304--></p>
<p><!--BOLOC ug1_OMPO1006611-->With tools necessary to automate the planning, budgeting, execution, and tracking of your marketing initiatives, Oracle Marketing provides you with:<!--EOLOC ug1_OMPO1006611--></p>
<ul>
<li>
<p><!--BOLOC ug1_OMPO1006612--><B>Customer Insight</B> - With sophisticated customer management and list generation, Oracle Marketing enables you to quickly generate target lists and segments using an intuitive user interface. The easy to use Natural Query Language Builder (NLQB) lets you query for customers or prospects using a natural language while hiding data complexity; fatigue management ensures that you do not over-contact the same customers with marketing messages; and predictive analytics helps you predict customer behavior that you can leverage to produce significant increases in marketing return on investments (ROI).<!--EOLOC ug1_OMPO1006612--></p>
</li>
<li>
ls.<!--EOLOC ug1_OMPO1010304--></p>
<p><!--BOLOC ug1_OMPO1006611-->With tools necessary to automate the planning, budgeting, execution, and tracking of your marketing initiatives, Oracle Marketing provides you with:<!--EOLOC ug1_OMPO1006611--></p>
<ul>
<li>
<p><!--BOLOC ug1_OMPO1006612--><B>Customer Insight</B> - With sophisticated customer management and list generation, Oracle Marketing enables you to quickly generate target lists and segments using an intuitive user interface. The easy to use Natural Query Language Builder (NLQB) lets you query for customers or prospects using a natural language while hiding data complexity; fatigue management ensures that you do not over-contact the same customers with marketing messages; and predictive analytics helps you predict customer behavior that you can leverage to produce significant increases in marketing return on investments (ROI).<!--EOLOC ug1_OMPO1006612--></p>
</li>
<li>
<p><!--BOLOC ug1_OMPO1006613--><B>Sales Alignment</B> - Oracle Marketing's leads management helps you compile and distribute viable leads so that sales professionals can follow up valuable opportunities and not just contact interactions. Additionally, support for distributing proposals and marketing material drive speedy and consistent setups and collaboration of best practices.<!--EOLOC ug1_OMPO1006613--></p>
</li>
<li>
<p><!--BOLOC ug1_OMPO1006614--><B>Marketing Insight</B> - While Oracle Marketing Home page reports and Daily Business Intelligence (DBI) for Marketing and Sales provide aggregated management level information in almost real time, operational metrics help in tracking the effectiveness of individual marketing activities.<!--EOLOC ug1_OMPO1006614--></p>
</li></ul>
</BODY>
</HTML>
<!-- Q6z5Ntkiuhw&JhsLdhtX.cg&Zp4q0b3A9f.&RQwJ4twK3pA (signum appsdocopis 1162406236 2673 Wed Nov 1 10:37:16 2006) -->Hi,
you can try to use the:
<b>ConsumerTreeListPreview</b>
layout for KM navigation ivew (or customize to your own).
This layout shows a folder tree on the left, a document list on the right. When you click on a document from the list it shows the contents of the file on the bottom of the iview.
Hope this helps,
Romano -
Getting IllegalThreadStateException, while exporting the report to PDF
Hi Friends,
I am using JRC to create report in PDF format.
But intermitently I get java.lang.IllegalThreadStateException while trying to export ReportClientDocument into PDF format using the PrintOutPutContrller.
The I am using for this is
ExportOptions exportoptions = new ExportOptions();
PDFExportFormatOptions pdfOptions = new PDFExportFormatOptions();
exportoptions.setExportFormatType(ReportExportFormat.PDF);
exportoptions.setFormatOptions(pdfOptions);
reportInputStream = reportClientDocument.getPrintOutputController().export(exportoptions);
The exception I get is:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.IllegalThreadStateException---- Error code:-2147467259 Error code name:failed
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.solidcore.as.report.ReportJob.createPDFReport(ReportJob.java:114)
at com.solidcore.as.report.ReportJob.execute(ReportJob.java:66)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
I am using JRC that comes with CR4E 2.0. The Report is designed using Crystal Report 2008.
Please help me in solving the issue.
Thank you,
DeepakHi Ted,
Thank you for the answers.
In our applications the Report will be generated in two ways.
1. A user clicks on a link on web, and the report is generated in PDF format and sent via http.
At present we are creating a new
ReportClientDocument for every request and using ExportControl.processHttpRequest() API
the report in PDF format is sent user through response.
2. Quartz schuduler trigger a job, whose work is to generate Report in PDF format into a file, and the
generated pdf file is sent to users via mail.
Here I user ReportCLientDocument.export() API to get the InputStream and use the input stream
to create PDF file.
It is possible that a user is requesting a report on Web Page and the same report is being generated by Scheduler at the same time. But in each case a separate ReportClientDocument is being used.Since Report containse a huge data, and it takes time to generate PDF file so, it is possible that a given RPT file is opened by two spearate ReportClientDocuemnt (one via web user and other via Scheduler) at the same time.
The have got rid of my earlier exceptions by sycncronizing the ReportClientDocuent.export() API.
But now am getting following exception intermittently.
2009-05-01 16:47:45.859 GMT+05:30 [ERROR] [ReportJob.java:137] [AnalyticsScheduler_Worker-10(34)] - [] Could not generate the Report.
java.lang.NullPointerException
at com.crystaldecisions.sdk.occa.report.application.ds.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.solidcore.as.report.ReportJob.createPDFReport(ReportJob.java:123)
at com.solidcore.as.report.ReportJob.execute(ReportJob.java:75)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
2009-05-01 16:47:45.859 GMT+05:30 [ERROR] [JobRunShell.java:211] [AnalyticsScheduler_Worker-10] - Job reportJobGroup.reportJob threw an unhandled Exception:
java.lang.NullPointerException
at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.case(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ClientDocument.close(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.close(Unknown Source)
at com.solidcore.as.report.ReportJob.createPDFReport(ReportJob.java:155)
at com.solidcore.as.report.ReportJob.execute(ReportJob.java:75)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Edited by: Deepak Mishra on May 4, 2009 5:47 PM -
Unable to display Crystal Reports 2008 PDF output on smart phones
Hi Folks,
I'm not sure if this is the proper forum, but here goes. I am just finishing a large ASP.NET web app which makes extensive use of Crystal Reports 2008 and a CrystalReportViewer control. My users routinely e-mail the reports in PDF format. This works great, except now they tell me that when the recipient of the e-mail tries to open the PDF on an iPhone or Blackberry, it will not open. The PDF's open fine on desktop computers.
Here is the code which generates the PDF and attaches it to the e-mail msg.
// export to PDF, then mail that
SmtpClient client = new SmtpClient();
MailAddress from = new MailAddress(ConfigurationManager.AppSettings["ReportMailFrom"].ToString());
MailMessage message = new MailMessage();
message.From = from;
message.SubjectEncoding = System.Text.Encoding.UTF8;
message.Subject = "E-mail BackOffice report: " + strReportName;
MemoryStream memStream = (MemoryStream)rptDoc.ExportToStream(ExportFormatType.PortableDocFormat);
Attachment data = new Attachment(memStream, MediaTypeNames.Application.Pdf);
ContentDisposition disposition = data.ContentDisposition;
disposition.CreationDate = DateTime.Now;
disposition.ModificationDate = DateTime.Now;
disposition.FileName = strReportName + ".pdf";
disposition.DispositionType = DispositionTypeNames.Attachment;
message.Attachments.Add(data);
client.Send(message);
Any ideas on what is happening here and how to make these PDF's visible to smart phones?
Thanks.
DanHi Dan,
What happens if you export from Crystal Reports designer?
I just tried if and BlackBerry tells me I am about to download a file that cannot be viewed on the phone. It doesn't say why though.
Going through the Platforms file it doesn't mention smart phones so it would indicate we don't support them in that format.
HTML worked but not pretty. You'll have to see what Blackberry does support. I found this one kbase article from them:
http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB11245&sliceId=SAL_Public&dialogID=206744335&stateId=1%200%20206742756
I'm testing more but I believe this is a blackberry limit and not CR.
Seems they do support it but very limited.
Thank you
Don
Maybe you are looking for
-
HOW TO DISPLAY THE TEXT ON A PARTICULAR PAGE IN SAPSCRIPTS
HI, HOW TO DISPLAY THE TEXT ON A PARTICULAR PAGE IN SAPSCRIPTS?
-
Can't add row using table sorter
I had a jtable with my own mytableModel that implements AbstractTableModel. In mytableModel, I have addRow, removeRow... so I can delete/add row dynamically by calling mytableModel.addRow(..). Everything works fine. However, after I added the table s
-
Can't install downloaded Blackberry Desktop software
I downloaded the latest version of the BB 8100 desktop software from the BB site to my computer. It unzips OK but when it starts to install it stops every time. Have exited every Windows program first. Any ideas?
-
Upgrading to Lightroom 4.3
Hi, I have Adobe Lightroom 1 (have been using C1 Pro since) and am considering switching back to Lightroom. I went to Adobe's webpage, and it says that I could just pay the upgrade price to get Lightroom 4.3. At the same time I remember that Adobe ha
-
PRAP - Selection of an Org. Structure brings people that no longer belong
Hi, I would like to know if somebody know why when using PRAP transaction and selecting an Org. Structure bring trips of people that once belonged to it, but in this moment they are in a different org. unit? I'd appreciate any help. Regards. Julio Te