Exporting report to seperate PDF files based on a report's Groups
Hi all,
I have RPT files created in CR 2008 designer. My aim is to use CR.NET SDK with Visual Studio 2010 to create an application that would allow me to load these RPT file(s) to my application which then exports to PDF.
However, the catch is that my RPT files have groupings (each group starts a new page) and I want each group to be printed into separate PDF files, with each filename being the group name.
I have done a sample windows application with the CR viewer loading the RPT file and exporting the entire RPT output to PDF. But is there a way to iterate through the Groups in a report and print them to PDF separately?
Any suggestions much appreciated!
Thanks.
Ludek,
I am using CRVS2010.
Using the CR designer is not efficient for me to run the report for every group and export each to PDF - this would take a lot of time for a larger report which is the reason for a programmatic solution.
There are third party programs that achieve this. There seems to be a discrepancy if those applications can use the API to burst By Group and you mention that is cannot be done? ([example program that can do this|http://www.milletsoftware.com/Tab3.htm])
Thanks.
Similar Messages
-
Exporting to Separate PDF files based on Group
Post Author: Tanya Sherin
CA Forum: Exporting
Hello,
I have a report that needs to exported into separate pdf files based on one of the groups already established in the report. I would like to automate this process as much as possible because the report size. Has anyone encountered this need?
Thanks for your assistance.
Regards,
TanyaPost Author: synapsevampire
CA Forum: Exporting
You'll need CR XI or a third party solution.
Here's one I suggest:
http://www.milletsoftware.com/Visual_CUT.htm
Contact Ido (owner) for a free trial and confirmation that it meets your needs.
-k -
Exporting a Report to a pdf file with drill down!
Hi,
I would like to export a Report to a pdf file.
My Report includes drill down options. I require the exported pdf with drill down options.
(Similar to Navigation options in a PDF file).
I hope this makes sense.
Please provide a better solution for me.
If am not wrong, this facility is not available with Crystal Reports!!!
Thanks,
Ramesh.Hi Ramesh
You can download the trial versions of the Crystal Report from the following link:
https://websmp202.sap-ag.de/support (Please copy the link and paste it to your web browser).
You can get the license by putting a request in the follwoing link:
https://websmp202.sap-ag.de/support(Click on Request License key under Service Corner).
Hope it helps.
Regards
Sourashree Ghosh -
Is it possible to export the page activity report to a pdf file?
Is it possible to export the page activity report to a pdf file?and is there any api or samples to be reference
Do you mean audit history? One method would be similar to the following sample that you could extend to create a PDF from the data returned:
http://www.eyelock.net/blog/archives/533
BUT the method used above via JCR Query is an implementation detail. For future proofing, you should use the ReplicationStatus status = page.adaptTo(ReplicationStatus.class in your code to get the audit logs for a particular page, rather than a straight JCR query. (recommended by Jörg Hoh @ http://forums.adobe.com/message/5253760). -
PDF file created from Oracle Report is attached wrongly
Hi,
Please help. It is very urgent.
I am using Oracle Developer 10gR2, Oracle Report 10.1.2 on Windows 2000.
I would like to attach the PDF file created by Oracle Report to the Notification sent from Workflow.
I use the following package procedure in my Workflow.
procedure Create_File_Attachment (document_id in varchar2, display_type in varchar2, document in out blob, document_type in out varchar2)
is
l_itemtype varchar2(100);
l_itemkey varchar2(100);
l_output_directory varchar2(30);
l_filename varchar2(255);
src_loc bfile;
bdoc blob;
src_offset number := 1;
dst_offset number := 1;
amount number;
begin
l_itemtype := substr(document_id, 1, instr(document_id, ':') - 1);
l_itemkey := substr(document_id, instr(document_id, ':') + 1, length(document_id) - 2);
l_output_directory := 'USR_TMP_DIR';
l_filename := Wf_Engine.GetItemAttrText(l_itemtype, l_itemkey, 'ATR_FILENAME');
src_loc := bfilename(l_output_directory,l_filename);
dbms_lob.createTemporary(bdoc, FALSE, dbms_lob.call);
dbms_lob.fileopen(src_loc, dbms_lob.file_readonly);
dbms_lob.loadblobfromfile(bdoc,src_loc,dbms_lob.lobmaxsize,src_offset,dst_offset);
dbms_lob.fileclose(src_loc);
amount := dbms_lob.getLength(bdoc);
dbms_lob.copy(document,bdoc,amount,1,1);
document_type := 'application/pdf; name=attach.pdf';
end Create_File_Attachment;Oracle Report created the PDF file correctly (original.pdf).
I tried to attach the PDF into my Workflow.
I can see the file is attached (attach.pdf), but it cannot be opened.
The Adobe shows : 'A drawing error occured.' each time I open the attachment.
I compare the original.pdf and the attach.pdf
However, there is one specific difference
- in original.pdf, the line started with '.' (single period)
in attach.pdf, the line is started with '..' (two periods)
Thus the attachment cannot be opened.
After I delete the period, it can be opened.
Question:
- Has someone ever succeed in attaching the PDF created from Report?
- Are the codes above is wrong?
- Or perhaps the DBMS_LOB.LOADBLOBFROMFILE always double the single period on front of the line?
- Is there any solution on this?
Note:
I have succeed in attaching PDF files unless the PDF created by the Report.
Sorry for the long post.
Please help. It is very urgent.
Any help is appreciated.
Many thanks,
BuntoroThe code looks absolutely good. I have the same code working in my system. Only difference is I use TRUE and DBMS_LOB.Session for the BLOB I use to read from the BFILE.
I can suggest one more way to handle to binary attachments if you are on Oracle 9i DB are later versions.
procedure attach_document (p_document_id in varchar2,
p_display_type in varchar2,
p_document in out nocopy clob,
p_document_type in out nocopy varchar2)
is
l_nid number;
l_directory varchar2(100);
l_filename varchar2(100);
l_content_type varchar2(100);
l_src_offset binary_integer := 1;
l_dst_offset binary_integer := 1;
l_err_msg varchar2(100);
l_amount number;
l_bfile BFILE;
l_blob BLOB;
l_clob CLOB;
file_not_found exception;
pragma EXCEPTION_INIT(file_not_found, -22288);
begin
l_nid := to_number(p_document_id);
l_directory := trim(wf_notification.GetAttrText(l_nid, 'ATTR_DIRECTORY'));
l_filename := trim(wf_notification.GetAttrText(l_nid, 'ATTR_FILENAME'));
l_content_type := trim(wf_notification.GetAttrText(l_nid, 'ATTR_CONTENT_TYPE'));
l_bfile := BFILENAME(l_directory, l_filename);
dbms_lob.createtemporary(l_blob, true, dbms_lob.Session);
dbms_lob.createtemporary(l_clob, true, dbms_lob.Session);
begin
dbms_lob.FileOpen(l_bfile, dbms_lob.File_Readonly);
exception
when file_not_found then
l_err_msg := to_char(sqlcode)||' - Attachment File "'||l_filename||'" is not found.';
raise_application_error(-20002, l_err_msg);
end;
dbms_lob.LoadBLOBFromFile(l_blob, l_bfile, dbms_lob.LobMaxSize, l_src_offset, l_dst_offset);
dbms_lob.FileClose(l_bfile);
-- Encode the BLOB content to BASE64 and attach to notification
wf_mail_util.EncodeBLOB(l_blob, l_clob);
l_amount := dbms_lob.GetLength(l_clob);
dbms_lob.Copy(p_document, l_clob, l_amount, 1, 1);
-- Mention an appropriate Content Type so that Notification System
-- understands the attachment content
p_document_type := l_content_type||'; encoding=base64; name='||l_filename;
end attach_document;Here I read the BLOB from the filesystem and base64 encode it before giving it to the Mailer. Please note that this is a PLSQLCLOB based attachment as against PLSQLBLOB that you are using.
Thanks - Vijay -
Adobe reader problem on viewing PDF file created by crystal report
I have a VB6 application to export the PDF file by using crystal report 9. However, when I viewed the PDF file under Adobe reader 8, I have a following message when I hit the page down key.
"An error exists on this page. Acrobat may not display the page correctly.
Please contact the person who created the PDF document to correct the problem."
After hit okay, this message will be gone and I can see the PDF file without problem. However, I don't have this issue when using Adobe reader 5 or 6 version.
If I crystal report 11 version to export the PDF, everything works fine also but our production machine can only use crystal report version 9, not 11.
Anyone have idea?? Thx!Sounds as if there is a bug in the older version of Crystal reports.
If you are prevented from installing fixes for bugs, you may well be
stuck with the effect of the bug.
Aandi Inston -
Problems Exporting WingDing Symbols to PDF Files
Okay, I have a new one for you. It's related to this thread: Crystal Reports 8.5 Multi-Selection Formulas
I have a report using 8.5 which contains formulas to display checkboxes. The checkboxes work correctly (thank you so much Garrett!). However, when I export the report as a pdf file, the unchecked boxes appear as starts and the X'ed boxes appear as rectangles (unrecognized font). The formula fields are in WingDing font; the characters are 168 and 253.
I changed the character numbers to 169 and 174, and I changed to font to Times New Roman, just to see if it would convert correctly. It did, but now the issue is that no other fonts have both the checked or X'ed box as well as an empty check box.
Has anyone experienced this issue before? How did you resolve it?
Thank you in advance.Hi,
Even I have this issue. But I found out that there is bug and its already filed with MS. Please see the url below,
[http://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=431057]
Regards,
Praveen -
IDCS2 - Print/save seperate pdf files per page (with custom filenames)
Hi everyone,
I'm having this issue here. I've created a new document after data merging, this document has 50 pages, every page contains an amount, a code and an image. Now i need to have 50 seperate pdf files, so 1 pdf per page, from this with a file name that goes like this: "ammount_code.pdf"
Is this possible, if yes, can you explain like I was a 3-year-old kid please? :-)
Thanks in advance!!I don't think there is any nice, automatic way to do this out of the box. It might be scriptable, though, since you could probably pull the amount code for each page that way, but you'd need to ask over in the scripting forum for the fastest response.
In the meantime, someone asked a similar question last week, and I pointed him to a paid plugin, and you can also export the document to PDF, then use Acrobat Pro to extract the pages to separate files, but at that point I think you'd need to manually rename them to get your codes as the filenames.
Peter -
Each page of Oracle Report Generates separate pdf file.
I have a problem that i want that oracle report runs for one time and generates sepatate pdf files for each oracle report page.eg. if there are 8 page of report then 8 pdf files should generate (one pdf file for each page) but the condition is that the print job is set to NO and page range should not be given each time.
What version of Reports are you using?
If it's 10g then have a look at Report Bursting as this should enable you to send the report to multiple files based on a repeating group.
Mark -
Convert Report Program to PDF file
Hi All,
I need example of converting Report program to PDF file.
I am beginner so please give simple example to understand it properly ..
Please write the description along with the code so that i can understand it...
no long long programs please.
Thanks.
RajHi,
report zabap_2_pdf.
*-- Enhancements: only allow to be run with variant. Then called
*-- program will be transparent to users
*-- TABLES
tables:
tsp01.
*-- STRUCTURES
data:
mstr_print_parms like pri_params,
mc_valid(1) type c,
mi_bytecount type i,
mi_length type i,
mi_rqident like tsp01-rqident.
*-- INTERNAL TABLES
data:
mtab_pdf like tline occurs 0 with header line,
mc_filename like rlgrap-filename.
*-- SELECTION SCREEN
parameters:
p_repid like sy-repid, " Report to execute
p_linsz like sy-linsz default 132, " Line size
p_paart like sy-paart default 'X_65_132'. " Paper Format
start-of-selection.
concatenate 'c:'
p_repid
'.pdf'
into mc_filename.
*-- Setup the Print Parmaters
call function 'GET_PRINT_PARAMETERS'
exporting
authority= space
copies = '1'
cover_page = space
data_set = space
department = space
destination = space
expiration = '1'
immediately = space
in_archive_parameters = space
in_parameters = space
layout = space
mode = space
new_list_id = 'X'
no_dialog= 'X'
user = sy-uname
importing
out_parameters = mstr_print_parms
valid = mc_valid
exceptions
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
others = 4.
*-- Make sure that a printer destination has been set up
*-- If this is not done the PDF function module ABENDS
if mstr_print_parms-pdest = space.
mstr_print_parms-pdest = 'LOCL'.
endif.
*-- Explicitly set line width, and output format so that
*-- the PDF conversion comes out OK
mstr_print_parms-linsz = p_linsz.
mstr_print_parms-paart = p_paart.
submit (p_repid) to sap-spool without spool dynpro
spool parameters mstr_print_parms
via selection-screen
and return.
*-- Find out what the spool number is that was just created
perform get_spool_number using sy-repid
sy-uname
changing mi_rqident.
*-- Convert Spool to PDF
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid= mi_rqident
no_dialog = space
dst_device = mstr_print_parms-pdest
importing
pdf_bytecount = mi_bytecount
tables
pdf = mtab_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.
call function 'DOWNLOAD'
exporting
bin_filesize = mi_bytecount
filename = mc_filename
filetype = 'BIN'
importing
act_filename = mc_filename
tables
data_tab = mtab_pdf.
* FORM get_spool_number *
* Get the most recent spool created by user/report *
* --> F_REPID *
* --> F_UNAME *
* --> F_RQIDENT *
form get_spool_number using f_repid
f_uname
changing f_rqident.
data:
lc_rq2name like tsp01-rq2name.
concatenate f_repid+0(8)
f_uname+0(3)
into lc_rq2name separated by '_'.
select * from tsp01 where rq2name = lc_rq2name
order by rqcretime descending.
f_rqident = tsp01-rqident.
exit.
endselect.
if sy-subrc ne 0.
clear f_rqident.
endif.
endform." get_spool_number
Regards
Sudheer -
Saving a report as a PDF file - missing bitmaps
Reports 6.0.8.11.3 - Oracle 8.0.5
I have reports that include graphic logos displayed into REPEATING FRAMES - they are stored into long raw fields, and the format specified for the frames in the reports is OLE2.
ALL IS OK AS LONG AS I PREVIEW AND PRINT THE REPORTS AS USUAL.
If I specify FORMAT=PDF and try to save a PDF file copy of those reports, they are perfect, but the logos are missing.
I tried to specify an IMAGE format for the repeating frames, but the problem persists and I get an "unsupported data type" error message.
Is there a workaround? Sadly, I must use the PDF format, so I ask Your help to know whether there is a way to include raster graphics into a PDF generated by Oracle Reports.
Thank You so much.Hi Cesare,
From the on-line help, PDF Restrictions:
"OLE objects are ignored when generating PDF or HTML, but space is reserved for these objects in the output."
However, raster images are supported if they come from a file or the database. So, if you have actual image files, you can include them by reading them in from file. See the help topic on "image" for all the various options for including images in a report, dynamically or statically.
regards,
Stewart -
PDF file created from Oracle Report is created wrongly using dbms_lob
Hi,
Please help. It is very urgent.
I am using Oracle Developer 10gR2, Oracle Report 10.1.2 on Windows 2000.
I would like to attach the PDF file created by Oracle Report to the Notification sent from Workflow.
I use the following package procedure in my Workflow.
procedure Create_File_Attachment (document_id in varchar2, display_type in varchar2,
document in out blob, document_type in out varchar2)
is
l_itemtype varchar2(100);
l_itemkey varchar2(100);
l_output_directory varchar2(30);
l_filename varchar2(255);
src_loc bfile;
bdoc blob;
src_offset number := 1;
dst_offset number := 1;
amount number;
begin
l_itemtype := substr(document_id, 1, instr(document_id, ':') - 1);
l_itemkey := substr(document_id, instr(document_id, ':') + 1, length(document_id) - 2);
l_output_directory := 'USR_TMP_DIR';
l_filename := Wf_Engine.GetItemAttrText(l_itemtype, l_itemkey, 'ATR_FILENAME');
src_loc := bfilename(l_output_directory,l_filename);
dbms_lob.createTemporary(bdoc, FALSE, dbms_lob.call);
dbms_lob.fileopen(src_loc, dbms_lob.file_readonly);
dbms_lob.loadblobfromfile(bdoc,src_loc,dbms_lob.lobmaxsize,src_offset,dst_offset);
dbms_lob.fileclose(src_loc);
amount := dbms_lob.getLength(bdoc);
dbms_lob.copy(document,bdoc,amount,1,1);
document_type := 'application/pdf; name=attach.pdf';
end Create_File_Attachment;Oracle Report created the PDF file correctly (original.pdf).
I tried to attach the PDF into my Workflow.
I can see the file is attached (attach.pdf), but it cannot be opened.
The Adobe shows : 'A drawing error occured.' each time I open the attachment.
I compare the original.pdf and the attach.pdf
However, there is one specific difference
- in original.pdf, the line started with '.' (single period)
in attach.pdf, the line is started with '..' (two periods)
Thus the attachment cannot be opened.
After I delete the period, it can be opened.
Question:
- Has someone ever succeed in attaching the PDF created from Report?
- Are the codes above is wrong?
- Or perhaps the DBMS_LOB.LOADBLOBFROMFILE always double the single period on front of the line?
- Is there any solution on this?
Note:
I have succeed in attaching PDF files unless the PDF created by the Report.
Sorry for the long post.
Please help. It is very urgent.
Any help is appreciated.
Many thanks,
BuntoroHi,
Please help. It is very urgent.
I am using Oracle Developer 10gR2, Oracle Report 10.1.2 on Windows 2000.
I would like to attach the PDF file created by Oracle Report to the Notification sent from Workflow.
I use the following package procedure in my Workflow.
procedure Create_File_Attachment (document_id in varchar2, display_type in varchar2,
document in out blob, document_type in out varchar2)
is
l_itemtype varchar2(100);
l_itemkey varchar2(100);
l_output_directory varchar2(30);
l_filename varchar2(255);
src_loc bfile;
bdoc blob;
src_offset number := 1;
dst_offset number := 1;
amount number;
begin
l_itemtype := substr(document_id, 1, instr(document_id, ':') - 1);
l_itemkey := substr(document_id, instr(document_id, ':') + 1, length(document_id) - 2);
l_output_directory := 'USR_TMP_DIR';
l_filename := Wf_Engine.GetItemAttrText(l_itemtype, l_itemkey, 'ATR_FILENAME');
src_loc := bfilename(l_output_directory,l_filename);
dbms_lob.createTemporary(bdoc, FALSE, dbms_lob.call);
dbms_lob.fileopen(src_loc, dbms_lob.file_readonly);
dbms_lob.loadblobfromfile(bdoc,src_loc,dbms_lob.lobmaxsize,src_offset,dst_offset);
dbms_lob.fileclose(src_loc);
amount := dbms_lob.getLength(bdoc);
dbms_lob.copy(document,bdoc,amount,1,1);
document_type := 'application/pdf; name=attach.pdf';
end Create_File_Attachment;Oracle Report created the PDF file correctly (original.pdf).
I tried to attach the PDF into my Workflow.
I can see the file is attached (attach.pdf), but it cannot be opened.
The Adobe shows : 'A drawing error occured.' each time I open the attachment.
I compare the original.pdf and the attach.pdf
However, there is one specific difference
- in original.pdf, the line started with '.' (single period)
in attach.pdf, the line is started with '..' (two periods)
Thus the attachment cannot be opened.
After I delete the period, it can be opened.
Question:
- Has someone ever succeed in attaching the PDF created from Report?
- Are the codes above is wrong?
- Or perhaps the DBMS_LOB.LOADBLOBFROMFILE always double the single period on front of the line?
- Is there any solution on this?
Note:
I have succeed in attaching PDF files unless the PDF created by the Report.
Sorry for the long post.
Please help. It is very urgent.
Any help is appreciated.
Many thanks,
Buntoro -
Keynote exports to low quality PDF file
I exported my presentation to PDF file which looked perfect on my laptop screen. But when the presentation was projected on a large conference screen it looked awful - not contast and not well-readable. Does anybody know how to increase the quality of the PDF file?
I use Keynote 3 and I am a new user.
PowerBook G4 Mac OS X (10.4.6)The default setting for resolution is low. You should be able to change the resolution of the presentation in the first tab of the inspector. Try bumping up the resolution and then exporting as a pdf.
-
How to Export multiple photos from pdf files?.
Good day.
How to Export multiple photos from pdf files?.
Thanks.Hello
how to reach from file menu ?.
Running Adobe reader 9 version 9.3.0
Thanks again. -
Print Series of PDF Files Based on Table of Contents PDF
Hello,
Background: Procedure "manual" that is composed of a table of contents PDF (TOC). Each entry in the TOC has a link to a seperate PDF file. When a user (in Reader) selects a link, the appropriate section of the manual opens, i.e. the correct PDF file opens. They can then print that particular file.
My question: Is there a script that would allow my user to print all of the manual, that is, all of the PDF files linked to the TOC, in the same order, using a menu or button on the TOC PDF?
Thanks,
TomI have developed a script that can do just that, but with locally saved PDF
files:
http://try67.blogspot.com/2009/10/combine-pdf-files-from-text-list.html
It might be possible to adjust it to do what you describe. If you're
interested, contact me personally by PM or at try6767 at gmail dot com.
Maybe you are looking for
-
Cannot get correct print layout for multiple page/booklet printing
In trying to print a pdf file that is landscape, 2 pages per sheet, booklet format, I cannot get the print preview to show the correct layout. I have tried all the options in the print menu, but either I get the pages in the incorrect order or I get
-
Connecting a Palm TX to Airport Airtunes
I am having a heck of a time getting my new palm tx to connect to my airtunes/airport. (WIFI connection) I am using WEP 2 encription and I can get the TX to see my network, but I won't accept the airport password. I have a few options of entering 10,
-
How can I uninstall a previously installed version of Aperature from another owner?
Hi, I purcased my iMac from a previous owner. His version of Aperature is still on it - registered under his AppleID. I would like to uninstall it as it is preventing me from using my own version of iPhoto. How can I do this? Would it be asvisabl
-
How do I launch Visual Adm?
Hi How do I launch Visual Administrator? Is it req to login only with Administrator only? Thanks.
-
Writing Data to a file using TEXT_IO in Forms
I have a situtation where i have 5 columns and having arabic as well as english data. when i want to write this data to a txt file using TEXT_IO in a specific format, it writes to a file but as soon as it finds an arabic field, it changes the posisti