I need to create a TOC on a report that will be produced as PDF.
Unfortunately, the TOC mechanism in BIRT when exporting to PDF is to add a bookmark.
However, I need to place a report like
Section A........................1
Section B........................4
Section C........................10
on the first page of the report.
I can't find anything on the books regarding this topic. What is the mechanism to do this?
Any suggestions would be greatly appreciated.
Thanks.
This is not possible with BIRT.
What you could try is to create a TOC as usual.
Once the PDF is created with BIRT, you can use iText to read this TOC programatically and create a visible representation for it.
Related
I have developed a BIRT report and need to export the output as PDF and as an Excel Spreadsheet. I am looking a solution to wrap data in PDF report exported from BIRT. A text gets truncated in the PDF, if it does not have spaces as soon as it exceeds the available width of the column.
e.g. phone number getting truncated
I would like to know if there is a solution without the need for adding a custom code as provided in How to wrap column data in birt report. This solution adds whitespace to the data which is not desirable when the report is exported to an excel spreadsheet. In essence, this solution manipulates the data which isn't the right thing to do.
I have tried using the Whitespace auto option but that does not work.
I am using BIRT version 4.12.
I was able to figure out the solution for getting the text wrapped in the PDF export. Made use of IPDFRenderOption.PDF_WORDBREAK for the same.
PDFRenderOption pdfOptions = new PDFRenderOption();
pdfOptions.setOutputFileName("T:/temp/filename.pdf");
pdfOptions.setOutputFormat("pdf");
pdfOptions.setOption(IPDFRenderOption.PDF_WORDBREAK, true);
task.setRenderOption(pdfOptions);
task.run();
I have a report with page variable implemented to display current/total page numbers for each customer. I have another requirement - Display a list of customer names and the respective page numbers contained in the report on the last page of the report(such as Company A - 3 pages, Company B - 4 pages).
It has to be proper looking with border lines.
I was able to implement the page variable by simply borrowing the code I've found on the Internet, but have no idea how to display the contents(customer names and page numbers) as a list at the end of the report.
Would someone help me to accomplish this requirement?
I don't think this is possible with BIRT.
In similar cases, and only for the special case of PDF output, we are using a post-processing approach, but it requires Java programming:
First, we let BIRT generate Table-of-Content entries ("outline" in PDF speech) for the companies.
The second-step is post-processing: we read the PDF using iText and examine the TOC. That way we get the information about which company starts at which page number. Together with the total page number it is easy to compute how many pages each company takes.
Then iText can generate and add a visible TOC (as you described) to the PDF.
I am using Oracle OBIEE 11.1.1.5.0
I have 2 existing views saved as separate reports. One is a Pivot; the other is a Table. Their data sources are unrelated.
I want to be able to combine both views into one compound view within one report, so I can export both to the same Excel file.
Please let me know how to implement. Please excuse my word selection; I am very new to this product.
Edit: It was suggested that I include both reports on a dashboard, and then export from there. Here are my available dashboard options. Am I missing an Export option that should be visible for the version I am using? Am I not seeing it because I don't have full permissions?
long story short, it seems as though OBIEE 11.1.1.5.0 does not give you a seamless way to export entire Dashboard pages to Excel.
HOWEVER, there is an ugly way to do it.
Page Options --> Print --> Printable HTML --> Save As --> .xls
see this thread for more info.
here is another thread.
Is my expectation valid? If yes, please guide me.
Local machine->local server process-> I generate Birt report-> which contain hyperlinks hard coded for example: http://www.ip_one.com/birtserver/parameters...(this is fine and points to another report and get me the report also when I hit the Url from inside the generated pdf report).
Now, what I need is to change ip_one to suppose ip_two once I hit the hyperlink which is inside the pdf(on the fly) keeping all the other parts of the url intact.
I am using birt-rcp-report-designer-4_2_2.
Thanks in advance.
It sounds like you are trying to dynamically create a hyperlink at report run time.
In the properties editor of the report item that has your link (i.e. label), edit the hyperlink. In the Hypelink Options (pop-up) to the left of "Location" field is the button ab| select 'JavaScript' Syntax.
You will be able to create the URL using JavaScript.
i have a checkbox in the lead entity.When i check on the checkbox,a PDF Note should produce
pulling information from the Lead form and is emailed.Here how will i create a pdf note pulling
information from Lead and email?Can anyone tell me how to do this?
Thanks
Adhars
If you haven't already solved your problem, the best way to do this would be to write an SSRS report that then exports to PDF. You can have your button link directly to the report with the Export to PDF parameter in the querystring.