Can we give page range while exporting the report programatically
hi
i am using CR Server XI RAS Embedded.
i am trying to exporting the report to a stream object. it woks fine.
is that possible to give page range ie, From and To page nos while exporting programatically.
Thanks in advance
Regards
Padmanaban V
Hi Padmanaban,
Try with this i have tested with VS 2008 and CR 2008 SP0:
ExportOptions exportOptions = new ExportOptions();
exportOptions.ExportFormatType = CrReportExportFormatEnum.crReportExportFormatPDF;
PDFExportFormatOptions pdfOptions = new PDFExportFormatOptions();
pdfOptions.StartPageNumber = 1;
pdfOptions.EndPageNumber = 3;
exportOptions.FormatOptions = pdfOptions;
Response.AddHeader("Content-Disposition", "filename=" + "untiteled" + ".pdf");
Response.ContentType = "application/pdf";
Response.BinaryWrite((Byte[])reportClientDoc.ReportSource.Export(exportOptions, new RequestContext()));
Response.End();
Regards,
Shweta
Similar Messages
-
Getting error while exporting the report
Hi,
I am facing error while exporting the report. Getting below error.
"No data can be exported because there are no rows.Operation failed."
how come this error is coming even though my report contains data.
please do the needful.
i am using the version discoverer 10g.
Thanks,
RC.I am having the same problem. I found this article in which the user was exporting 100,000 plus records and had the same issue exporting (Discoverer workbook exported to excel error - No dta can be exported and they were able to fix it by adjusting two memory settings in their pref.txt file. However, in my report there are only 1,100 records with eleven columns being returned. I export much larger reports on a daily basis.
Originally, the report was returning records and when I would go to retrieve all records it would tell me that all the rows could not be returned and the data may be incomplete. After scrubbing my SQL I no longer get that message, but the report still will not export and I get the same error as you.
I have not tried the pref.txt settings fix but may try it today to see if that is a workaround. I will then have to evaluate whether it is a good fix or just a band-aid. -
Can't Choose Page Range when Exporting PDF from InDesign
Hi! Ever since I upgraded to CS6 via your subscription, I can't choose a page-range when exporting to PDF from InDesign (8.0.1). Here's a video demonstration of the problem so you can see the bug in action: http://screencast.com/t/kYR1ACtNi
Are you aware of this bug? If it's not a bug, how do I fix it?Alternate layouts are used for things like horizontal and vertical orientations of the same layout for use on tablets. I suspect there's some coverage in the Help files -- being a print guy I don't mess with them.
It may be that you only have one layout and ID just shows you that one inthe dropdown. I can't recall that I ever used the dropdown to try to select the range -- I always just type what I need in the field. -
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 -
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 -
Repersentation of #error in HFR while exporting the report in Excel
Hi All,
We are working on Hyperion Financial Report 9.3.1 with Essbase as a data source.
We are replacing the #error with 'NA', which is working fine when we are viewing the FR reports in workspace.
But when we export this report in Excel, word "NA" is changed by 0 (zero), which is misleading the user.
How can we stop this conversion (NA to 0)?
Any suggestion and help will be appreciated.
Thanks & Regards,
Mohit JainHi All,
Thanks for your answers and support.
I raised this issue to Oracle support also, I got the following response-
Hi Mohit,
I tested the case with the way you offered me. I can reproduce the problem. I think it should be a bug of the product.
I searched that on ML3. I found a bug which said that. This bug has been fixed in EPM 11.1.1.0.00. I tested that on my EPM 11.1.1.0.00 system. It works fine. The NA value can be exported in excel.
So would you like to upgrade to EPM 11.1.1.0.00 to fix the issue?
Hope this information will help others in future.
Thanks & Regards,
Mohit Jain -
While exporting the Report to Excel Records are showing two times
Hello Gurus
When im trying to export a report from NW Portal to Excel, data is showing double times, even variable selections screen, records are showing two tmes.
What would be the problem, does we need any SP.
Thanks in advance.
Regd
LajwanthGURU'S ANY REPLIES........
-
While Export the data to MS Word - How to avoid the Frames ???
Hi All,
I export the data from Crystal Report XI to Word document (doc) file , i used Text objects in the Report , in document file it's converted to Frames and overlapped with other frames(so some data are hidden). is it possible to avoid the frames while exporting the report to word document.
Thanks in advance.
J.BaskiHello,
It would be better if you format your report so your objects do not overlap but I realize sometimes it can't be avoided.
Other option is to upgrade to CR XI R2 and test again, it is a free upgrade.
Go to this link: http://www.sdn.sap.com/irj/boc and download the trial version of CR XI R2 and use your XI keycode, then apply the patches which you can get to by clicking on the BusinessObjects tab above, then Downloads.
Direct link to the Trial version: http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
Other option is to export to Word Editable may be a solution for you also.
Thank you
Don -
Problem while exporting the data from a report to an excel file.
Hi SAP guru's,
I have a problem while exporting the data from a report to an excel file.
The problem is that after exporting, the excel file seems to have some irrelevant characters....I am checking this using SOST transaction..
Required text (Russian):
Операции по счету
№ документа Тип документа № учетной записи Дата документа Валюта Сумма, вкл. НДС Срок оплаты Описание документа
Current Text :
? 5 @ 0 F 8 8 ? > A G 5 B C
! 4 > : C "" 8 ? 4 > : C ! C G 5 B = > 9 7 0 ? 8 A 8 0 B 0 4 > : C 0 ; N B 0 ! C < ! @ > : > ? ; 0 B K ? 8 A 0 = 8 5 4 > : C
Can you help me making configuration settings if any?
Regards,
Avinash RajuHi Avinash
To download such characteres you need to adjust code page to be used during export. You can review SAP note 73606 to identify which code page is required for this language
Best regards -
Is it possible to make master pages with several title in one file? & Can I define page range from which page to which should be specific title?
While the number of master pages is not unlimited, you can have quite a few in any file. I've never seen the limit documented, but it's in the hundreds, or more likely thousands. There is, I believe, a page limit of 9999 pages per document, but I don't know if that includes the masters or if they are counted separately.
You can choose a page range in the Pages panel, then assign a master to them manually, and I beleive there are some scripts floating around that can assign a master page based on the appearance of a paragraph style (for chapter start pages, for example). -
Error "Encountered an error while exporting the data. View the lof file (DPR-10126)
Hello,
I would like to have sugestions and help to solve a problem in IS 4.2.
I've created a view from two tables, joined together with the key from each one.
Then i've binded the rule with the view (mentioned above) created and calculated score for it.
The calculation is successful, however when i try to export all failed data i have the following error:
"Encountered an error while exporting the data. View the lof file (DPR-10126)"
When exporting failed data from calculations made directly to the datasources i do not encounter any problem, but when i try to export all data to CSV file (not only the 500 results limit) i have this kind of error.
However, when i visualize the data from the view created, it is also possible to export to csv file.
Resuming, the error occurs only when exporting all failed data from the view.
Can anyone help with this issue?
Thx
Best Regards,Hello,
Your information is correct.
I've just confirmed it in the 4.2 SP3 Release Notes and they specifically refer to this issue.
A user who has 'View objects' rights for the project and a failed rule connection cannot export the failed data. This issue has been fixed in this release.
Thank you very much for your input.
Best Regards, -
Problem While Exporting the Output
Dear All ,
I am facing a problem while exporting the ALV output to Spreadsheet.
When I click on Menu LIST->Export-->Spreadsheet, One pop is coming with title "Save XXL list object in SAPOffice" In that it is asking me to save Name of the List object and a Title.
Please guide me what needs to be done for this.
Regards,
NikhilHi, Nikhil
You can USE a Short Cut Key Ctrl + Shift + F9 and than select the type in you want to download in your case you will select Spreadsheet
Regards,
Faisal -
An error occured while exporting the slideshow
Exporting a 400 slide slideshow. After it churns for awhile and the progress bar is all done, I get an error box that says:
AN error occurred while exporting the slideshow.
The export fiel could not be saved.
My only option is to click okay. No more detailed information available.
1) One of my hard drives has 15 gig free and the other has 90 gig free
2) I have a Users Movies directory ...nothing is in it.
ANy suggestions?Are you exporting by clicking the iDVD button in iPhoto? If so, try Share/Export to Full Quality Quicktime. It produces a video file that you can drag onto iDVD's menu area or import into iDVD. I've found it's a more stable way than making the jump directly from iPhoto to iDVD.
John -
How to retain connection pool resource while exporting the application war
hello,
lately i have figured out how to use connection pooling. now i have another issue.
i have to export the application war file to a remote server for deployment. i cant configure the server.xml file there due to restrictions. Now is there any way that i can retain the connection pooling with all JNDI resources while exporting the war file. what all things would i have to do. i am using tomcat 4.1 and the remote server too have the same appliaction server running.
is this possible?
thanks in advanceHi,
you might have the problem in creating WAR files.
lease check that first.
thanks,
nvseenuNo, the problem is that you shouldn't be modifying the server.xml
The proper, portable way to do it is to create a context.xml file and put it in the META-INF directory of your WAR file. This contains your Resource definition and JDBC connection parameters. Everything's portable that way.
I know this works on Tomcat 5.x.
It can also work with Tomcat 4.1.x, but the way I've done it is to put the context.xml into a file whose name matches my WAR file (e.g, foo.war and foo.xml), placing both in the /webapps directory. Tomcat 4.1.x picks it up that way.
It would be worth an experiment to see if Tomcat 4.1.x picks up the context from /META-INF, because that way your WAR file is 100% portable.
This is precisely the reason why I advise people not to edit the server.xml. You don't always have the option to do so.
% -
Can you have pages and word on the same computer
can you have pages and word on the same computer
Sure, I do (my Office is 2008 but I keep it around for some things I get from work).
Maybe you are looking for
-
Aperture 3.1.2 no more stores imported pictures in projects. Downloded Update 3.2.2 cannot be opended. Actualisations only via Mac App Store. Is there a way via Internet-Download?
-
When I select 1 image Lightroom selects 2 images
Hello I am selecting 1 image in Lightroom 5. Two images are selected I cannot deselect the second image. this is causing huge problems and I cannot work around it. I did trash preference plist. I reinstalled light room 5. i made a copy of the cat. No
-
ISE 1.1.1.268 server not running
Hi Folks, I have a old ISE appliance 3315, ISE application server is not running even after restart of ISE. ISE ver is 1.1.1.268 Not able to access this appliance through web also. Can anyone advise if I can upgarde this ISE directly to 1.2 through
-
Find the idoc segment link with Sap Table
Dear Abaers, I am new to Idoc. i have one Idoc (Orders01) for creating sales order. I had seen the t-codes WE 30 and WE 60 to know the field description. The fielddescription shows names like name1 name2 ort01 etc. i want to know what are the db tabl
-
Must my BC for my Tables be related in the Package.Module?
Hi, To create an application with related pages/tables, must my Modules be in a 'parent/child' setup in the Package.Module? If not, How do I keep the pages related to eachother (i.e. customer, phone, etc)? Any help would be greatly appreciated! Rob