Open mutiple PDF report outputs with one button click
I need to open multiple PDF outputs depending on check boxes on the front end (Asp.net C#) app connecting to Crystal report server XI. Here is my code. I'm able to open only one PDF not multiple. If I use Response.end() at the end except first nothing is displayed. If I remove response.end() it opens Adobe and displays error msg saying file is corrupted. Please let me know if there is any other way to display multiple PDF outputs
SessionMgr sessionMgr = new SessionMgr();
EnterpriseSession enterpriseSession;
ReportAppFactory reportAppFactory;
ReportClientDocument reportClientDocument;
EnterpriseService enterpriseService;
InfoStore infoStore;
InfoObjects infoObjects;
InfoObject infoObject;
String crServerName = ConfigurationManager.AppSettings.Get("CRServerName");
String crUserID = ConfigurationManager.AppSettings.Get("CRUserID");
String crPwd = ConfigurationManager.AppSettings.Get("CRPwd");
String dbUserID = ConfigurationManager.AppSettings.Get("DBUserID");
String dbPwd = ConfigurationManager.AppSettings.Get("DBPwd");
enterpriseSession = sessionMgr.Logon(crUserID, crPwd, crServerName, "secEnterprise");
enterpriseService = enterpriseSession.GetService("InfoStore");
infoStore = new InfoStore(enterpriseService);
infoObjects = infoStore.Query("Select SI_ID From CI_INFOOBJECTS Where SI_NAME='" + reportName + "' And SI_INSTANCE=0");
infoObject = infoObjects[1];
EnterpriseService tempService = enterpriseSession.GetService("", "RASReportFactory");
reportAppFactory = (ReportAppFactory)tempService.Interface;
reportClientDocument = reportAppFactory.OpenDocument(infoObject.ID, 0);
// Pass datbase logon credentials
reportClientDocument.DatabaseController.logon(dbUserID, dbPwd);
reportClientDocument.DataDefController.ParameterFieldController.SetCurrentValues("", "ProjectID", ddlProjects.SelectedValue);
PrintOutputController rasPrintOutputController;
CrReportExportFormatEnum rasReportExportFormat = CrReportExportFormatEnum.crReportExportFormatPDF;
rasPrintOutputController = doc.PrintOutputController;
ByteArray tempByteArray = rasPrintOutputController.Export(rasReportExportFormat, 0);
Byte[] byteStreamOutput = tempByteArray.ByteArray;
Response.AddHeader("content-disposition", "attachment;filename=" + reportName + ".pdf");
Response.ContentType = "application/pdf";
Response.BinaryWrite(byteStreamOutput);
Response.end();
Hello, Anu;
Business Objects will create one PDF from one report. Once the report object has been formatted as a PDF it is no longer handled by Business Objects but uses the functionality of Adobe.
If they were being saved as .pdf files, would there be a way to open more than one at a time?
Elaine
Similar Messages
-
Call Report output via a Button click
Hello,
I am using a button placed on a SCREEN.
WHen i click on the button i am doing some process using on user command.
I want the output on a report (as a list output) based ob my write statments
I tried with leave to list processing , set screen 0..etc stuff but thats not calling my report output.
Can any one suggest?
Thanks
Rickyhmmm... sounds to me like you're looking for something like
* Print report
NEW-PAGE PRINT ON NEW-SECTION PARAMETERS Z_L_PRI_PARAMS NO DIALOG.
FORMAT COLOR COL_BACKGROUND INTENSIFIED OFF.
LOOP AT Z_T_ITAB INTO Z_L_ITAB.
WRITE: / SY-VLINE(01), Z_L_ITAB-EBELN,
SY-VLINE(01), Z_L_ITAB-EBELP,
SY-VLINE(01), Z_L_ITAB-AEDAT,
SY-VLINE(01), Z_L_ITAB-OID_EXTBOL.
ENDLOOP.
NEW-PAGE PRINT OFF.
COMMIT WORK AND WAIT.
Lookup NEW-PAGE -
Create three textfiles with one button click
Hello,
how is it possible to create three textfiles after a button click. I create a textfile with the following code in a page process:
owa_util.mime_header( 'application/octet', FALSE );
htp.p('Content-Disposition: attachment; filename="Client_' || to_char(sysdate,'YYYYYMMDD HH24MI') || '.LAS"');
owa_util.http_header_close;
htp.prn('test');
htmldb_application.g_unrecoverable_error := true;
For the first textfile a savedialog to save the file appears in the browser. But there is no dialog for the second and third file.
How is it possible to get the savedialog for the second and third file?
Does anyone can help?
Best regards,
HamburgerI solved it with javascript:
window.open("f?p=1:2","_blank");
window.open("f?p=1:3","_blank");
window.open("f?p=1:4","_blank");
and three onload processes on every site!
Greets -
Open a Crystal Report preview using a button
Hello. I need to open a Crystal Report preview using a button from my add-on. I've already created my report, so I need to create the object, pass the parameters and open an screen with my preview. Does anyone has a C# example? Thank you.
hi,
this is code for open the crystal report press the button.
First import the crystal report using Report and layout manager
goto administration->setup->general--->Report and layout manager
create one button in add-on form.when we press the button the following event triggered.
get the docnumber for that particular form and pass it.
Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED
If pVal.ItemUID = "btnPrint" Then
Dim strAcNcmr As Integer
strAcNcmr = objForm.Items.Item("txtDocNo").Specific.Value
Dim oRS As SAPbobsCOM.Recordset
oRS = objSBOAPI.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
oRS.DoQuery("SELECT MenuUID FROM OCMN WHERE Name = ' Purchase Indend' AND Type = 'C'")
objSBOAPI.SBO_Appln.ActivateMenuItem(oRS.Fields.Item(0).Value.ToString())
Dim oForm1 As SAPbouiCOM.Form
oForm1 = objSBOAPI.SBO_Appln.Forms.ActiveForm
oForm1.Items.Item("1000003").Specific.String = strAcNcmr
oForm1.Items.Item("1").Click()
oForm1.Items.Item("1").Visible = False
oForm1.Items.Item("2").Click()
End If
this is easy solution for open the crystal report for add-on form
Thanks & regards
B.lakshmi narayanan -
Export two TXT files with one button
Hi,
I'm using Application Express 2.0, i'm developing aplication in which users import few different excel spreadsheets and after that they export date in specified TXT format.
I'w like to create functionality to export two and more files in CSV (TXT) format with one button and one click only in defined folder. It's necessary to simplify work of my endusers becose they have to generate ten or more files.
Is it possible create functionality which generate files in defined folder without any addtional user's action?
Best,
KirilCreate a procedure to output the files, use the oracle directory object to define your output path.
create or replace directory wayne as '/csv';
use google or metalink to get examples. This way you can output as many files as you want, my personal opinion would be to create a dynamic report your users could run on demand. -
Hello there,
I created a DPS application and I want that when you click on an image, it opens a pdf. But this one is on the ipad.
This is in case there is no internet connection.
Thank you.How to make the zip: http://helpx.adobe.com/digital-publishing-suite/help/import-htmlresources.html
How to link to the asset: Digital Publishing Suite Help | Hyperlink and button overlays
Neil -
I cannot open some pdf files online with Reader XI (like sample forms in Help section or IRS.gov or credit card statements). I have uninstalled Reader XI, cleaned and reinstalled. I have no problem right-clicking and downloading and then viewing the files. No problem viewing acrobat files. I'm runnnig Windows 7, IE9. I can acces them through Chrome.
RESOLVED
I found two suspect programs that were installed within the last 48-hrs that may have caused the problem
1) - Libre Office - latest update. This is a fork of Open Office. (unlikely)
2) - ManyCam video manipulation software (likely)
Following info here, I opted to try to open an Adobe PDF file that was on my hard drive. When I did, it refused and IE10 gave me an ActiveX error (AHA!!). When I checked the installation of ManyCam, it had installed a version of DirectX that may have over-written the resident versions or disabled them somehow.
I uninstalled ManyCam but left Libre Office's update in place, then I ran a system restore from a point 24-hrs before the installations.
This resolved the problem 100%.
So, the suggestion here is that there may be one or more program in the wild that is interupting the ActiveX or DirectX systems. They may be running or installing an older version. In this case it appears the handlers were broken.
Once the system restore had completed I was able to open Adobe PDF files within my IE10 browser from the Internet as well as open PDF files from my hard drive.
Note that this same issue also clearned up a problem I was having with the Comodo Dragon web browser, which is a fork of the Chrome project. Once I eliminated the suspect program and ran the system restore all was well. In the instance of the Comodo browser it was unable to open or reach anything - dead white screen below the menu bar.
So my suggestion would be to take an inventory of recent program installations, remove/uninstall them, run system restore from a date before the suspect programs were added, and see what happens. In my case that fixed the problem. -
On my iPad, I'm trying to open a PDF from Safari with iBooks, but when I choose "Open with ..." in Safari, only Pages and Dropbox show as options. I'm running iOS 7.1.2 and iBooks 3.2. I have rebooted the iPad and that did not help, and reinstalled iBooks, which also changed nothing. Thanks for any ideas!
Yup, it was uploaded to our school Wiki as a PDF, and Pages did open it. I was then able to move it to iBooks, but I'd rather avoid the extra steps.
-
Open a PDF report from a PDF report
I would like to open a PDF report from a PDF report, but in a new IE window.
I have the following code attached to an item in the report:-
function F_RECONFormatTrigger return boolean is
begin
IF trim(:btch_ref) = 'PL' and trim(:recon) is not null and trim(:recon) <> ' ' then
srw.set_font_weight(srw.bold_weight);
srw.set_font_style(srw.underline_style);
srw.set_text_color('blue');
srw.set_hyperlink_attrs('onMouseover "window.status="Click here to see what is in your shopping basket"; return true"'||'onMouseout ="window.status=" "; return true"');
srw.set_hyperlink('/reports/rwservlet?cmdkey=famis+desformat=pdf+report=FAMREP011+p_orderno='||trim(:recon));
srw.set_hyperlink_attrs('target=_blank');
-- srw.set_hyperlink_attrs('target="_blank"');
END IF;
return (TRUE);
end;
All of the commands work except for the 2 srw.set_hyperlink_attrs commands. The "onMouseover" and the "target" seem to have no effect. Can anyone help?
Thanks in advance
MichaelThe built in srw.set_hyperlink_attrs does not work , if the report format is PDF. There is no way to open another PDF report from a PDF report in a seperate window. Also think there is no way to hide URL which apperars when the mouse pointer moves over the hyperlink.
In other report formats like HTML, the built in srw.set_hyperlink_attrs works.
Kranthi -
Is it possible to create a Webservice in BI which takes XML as an input and gives PDF as output with an additional requirement that Siebel expecting the XSD from BI to send data in the BI requested format. Siebel wants to send the data as xml to BI but not sure of the BI capabilities on giving WSDL embedded with XSD (input is a hierarchical)
Hi All,
I am able to fulfil above requirement. Now I am stuck at below point. Need your help!
Is there any way to UPDATE the XML file attached to a Data Definition (XML Publisher > Data Definition) using a standard package or procedure call or may be an API from backend? I am creating an XML dynamically and I want to attach it to its Data Definition programmatically using SQL.
Please let me know if there is any oracle functionality to do this.
If not, please let me know the standard directories on application/database server where the XML files attached to Data Definitions are stored.
For eg, /$APPL_TOP/ar/1.0/sql or something.
Regards,
Swapnil K. -
How to open a pdf file only in one computer
I would like to sell pdf publications by allowing the user to open them only in one computer. I learnt that this has been done the past when I bought some publications but I don't know the way to do it. Could you help me?
thank you
Marcothank you for your support
Best Regards
Marco
Da: Mylenium <[email protected]>
Per: MARCO1 <[email protected]>,
Data: 09/10/2013 11:09
Oggetto: How to open a pdf
file only in one computer
Re: How to open a pdf file only in one computer
created by Mylenium in Downloading, Installing, Setting Up - View the full
discussion
You will havwe to sign up for some service that supports rights
management, use protected PDFs via LiveCyle/ Acrobat Connect or learn how
to create your own ePub stuff using Digital Publishing Suite. In any case,
it will probably cost you money upfront before you make any revenue.
Mylenium
Please note that the Adobe Forums do not accept email attachments. If you
want to embed a screen image in your message please visit the thread in
the forum to embed the image at
http://forums.adobe.com/message/5746873#5746873
Replies to this message go to everyone subscribed to this thread, not
directly to the person who posted the message. To post a reply, either
reply to this email or visit the message page: [
http://forums.adobe.com/message/5746873#5746873]
To unsubscribe from this thread, please visit the message page at [
http://forums.adobe.com/message/5746873#5746873]. In the Actions box on
the right, click the Stop Email Notifications link.
Start a new discussion in Downloading, Installing, Setting Up at Adobe
Community
For more information about maintaining your forum email notifications
please go to http://forums.adobe.com/message/2936746#2936746.
Il messaggio trasmesso può contenere informazioni di carattere
confidenziale rivolte esclusivamente al destinatario. Ne è vietato l'uso,
la diffusione, la distribuzione o la riproduzione da parte di altre
persone e/o entità diverse da quelle specificate. Nel caso aveste ricevuto
questo messaggio per errore, siete pregati di segnalarlo immediatamente al
mittente e cancellare quanto ricevuto.
This electronic mail transmission may contain confidential information
addressed only to the person(s) named. Any use, distribution, copying or
disclosure by any other person and/or entities other than the intended
recipient is prohibited. If you received this transmission in error,
please inform the sender immediately and delete the material -
How to insert into 2 tables from the same page (with one button link)
Hi,
I have the following 2 tables....
Employees
emp_id number not null
name varchar2(30) not null
email varchar2(50)
hire_date date
dept_id number
PK = emp_id
FK = dept_id
Notes
note_id number not null
added_on date not null
added_by varchar2(30) not null
note varchar2(4000)
emp_id number not null
PK = note_id
FK = emp_id
I want to do an insert into both tables via the application and also via the same page (with one button link). I have made a form to add an employee with an add button - adding an employee is no problem.
Now, on the same page, I have added a html text area in another region, where the user can write a note. But how do I get the note to insert into the Notes table when the user clicks the add button?
In other words, when the user clicks 'add', the employee information should be inserted into the Employees table and the note should be inserted into the Notes table.
How do I go about doing this?
Thanks.Hi,
These are my After Submit Processes...
After Submit
30 Process Row of NOTES Automatic Row Processing (DML) Unconditional
30 Process Row of EMPLOYEES Automatic Row Processing (DML) Unconditional
40 reset page Clear Cache for all Items on Pages (PageID,PageID,PageID) Unconditional
40 reset page Clear Cache for all Items on Pages (PageID,PageID,PageID) Unconditional
40 reset page Clear Cache for all Items on Pages (PageID,PageID,PageID) Unconditional
40 reset page Clear Cache for all Items on Pages (PageID,PageID,PageID) Unconditional
50 Insert into Tables PL/SQL anonymous block Conditional
My pl/sql code is the same as posted earlier.
Upon inserting data into the forms and clicking the add button, I get this error...
ORA-06550: line 1, column 102: PL/SQL: ORA-00904: "NOTES": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
Error Unable to process row of table EMPLOYEES.
Is there something wrong with the pl/sql code or is it something else? -
Adobe Reader will not open embedded PDFs in Safari with Yosemite
Adobe Reader will not open embedded PDFs in Safari with Yosemite installed
That looks like a perfectly good PDF, but since it's trying to open in Microsoft Word, that means your file association for .pdf files is incorrect. You should change it to point to Adobe Reader instead of Word.
If you are on Windows, see http://windows.microsoft.com/en-us/windows/change-file-open-program#1TC=windows-7 -
Why i cannot open a PDF file even with abobe 9
why i cannot open a PDF file even with abobe 9
Please supply screen shot when it is asking for updates. (Do not send as email, use CAMERA icon). This is important, there are many fake updates.
-
Characters are cut off when they don't fit in the pdf report output.
Hi All,
I understand that Forms 6i and Oracle 9 iAS have been de-supported for years. Meanwhile we do still run a small application in the 9 iAS environment.
We have forms and reports running on Windows 2000 server, I am able to successfully clone the same 9 iAS from Windows 2000 to a Virtual Server Windows 2003 x32 and all runs fine, the only problem is that the fonts in the pdf reports are larger in the new Windows 2003 environment as compared to the original Windows 2000 and characters are cut off when they don't fit in the pdf report output in 2003 env.
Any advice is most appreciated.
Thanks.You may want to check on the printer driver and paper size selected
Maybe you are looking for
-
Because our IT system can only handle PDFs with versions up to 1.4, we need to "PDF from scanner" feature to store the scanned PDFs in version 1.4. Acrobat 9 always saved it in 1.4, but starting with Acrobat X, the PDFs are saved in 1.5. There must b
-
How do i know if my query using SORT_AREA_SIZE or temporary tablespace ?
Good Morning Everyone ! My DB version is 10.2.0.1 I have large table exactly 3 million records. SQL> select count(*) from tab1; COUNT(*) 300000 SQL> select * from tab1 order by no DESC; sorting ... in process 300000 rows selected. in Terminal 2
-
I use an imac and have moved my mail account (mobile me) to icloud. How do I view my contacts, (address book) from icloud without typing them all over again?
-
I posted the following over on the Acrobat Windows forum, but no joy with any answers so forgive the repeat if you have seen this before. Is it possible to script or command the parameters of the view/display settings in the user's reader? Specifical
-
Computer won't turn on after Leopard installation
I successfully installed Leopard on my iMac G5. The instruction then said restart. Since then the gray screen returned with the wheel turning. I soon realized I never should have upgraded to Leopard until all the kinks were worked out. I plan to dein