Attach pdf files in oracle forms 11g
Hello everyone, I would like to know if is possible and how to attach a pdf file in oracle forms, and how to open it to read it
thanks
hello ,
u can also try out a HOST command in Oracle Forms.
Give path of PDF file and it will open PDF directly.
Thanks
HARSH SHAH
Similar Messages
-
How to mail pdf file from oracle database 11g
Hi,
Using following code to send pdf file from oracle database.
DECLARE
v_From VARCHAR2(80) := '[email protected]';
v_Recipient VARCHAR2(80) := '[email protected]';
v_Subject VARCHAR2(80) := 'test subject';
v_Mail_Host VARCHAR2(30) := '116.214.31.249';
v_Mail_Conn sys.utl_smtp.Connection;
crlf VARCHAR2(2) := chr(13)||chr(10);
BEGIN
v_Mail_Conn := sys.utl_smtp.Open_Connection(v_Mail_Host, 26);
sys.utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
sys.utl_smtp.Mail(v_Mail_Conn, v_From);
sys.utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
sys.utl_smtp.Data(v_Mail_Conn,
'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
'From: ' || v_From || crlf ||
'Subject: '|| v_Subject || crlf ||
'To: ' || v_Recipient || crlf ||
'MIME-Version: 1.0'|| crlf || -- Use MIME mail standard
'Content-Type: multipart/mixed;'|| crlf ||
' boundary="-----SECBOUND"'|| crlf ||
crlf ||
'-------SECBOUND'|| crlf ||
'Content-Type: text/plain;'|| crlf ||
'Content-Transfer_Encoding: 7bit'|| crlf ||
crlf ||
'some message text'|| crlf || -- Message body
'more message text'|| crlf ||
crlf ||
'-------SECBOUND'|| crlf ||
'Content-Type: file;'|| crlf ||
' name="D:\mail\pdfSample.pdf"'|| crlf ||
'Content-Transfer_Encoding: 8bit'|| crlf ||
'Content-Disposition: attachment;'|| crlf ||
' filename="D:\mail\pdfSample.pdf"'|| crlf ||
crlf ||
'CSV,file,attachement'|| crlf || -- Content of attachment
crlf ||
'-------SECBOUND--' -- End MIME mail
sys.utl_smtp.Quit(v_mail_conn);
EXCEPTION
WHEN sys.utl_smtp.Transient_Error OR sys.utl_smtp.Permanent_Error then
raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
END;
Above code executed successfully and mail is send to recipient but file is corrupted.
I think it doesn't pick file from specified location, attachment name is appearing like this 'D:mailpdfsample.pdf
Oracle Database : 11g R2
O.S : windows 7 Professional
Thanks in Advanceparapr wrote:
sys.utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);The above violates RFC 5321 section 4.1.1.1
'-------SECBOUND'|| crlf ||
'Content-Type: file;'|| crlf ||
' name="D:\mail\pdfSample.pdf"'|| crlf ||
'Content-Transfer_Encoding: 8bit'|| crlf ||
'Content-Disposition: attachment;'|| crlf ||
' filename="D:\mail\pdfSample.pdf"'|| crlf ||Invalid Mime header above. Filename are logical. Not physical. Loose the drive and directory names. The filename is there to name the Mime body's content.
crlf ||
'CSV,file,attachement'|| crlf || -- Content of attachmentHow is the above PDF content? This is a string containing the text CSV,file,attachement. Which means when this is what is saved as a PDF file by the mail reader.
EXCEPTION
WHEN sys.utl_smtp.Transient_Error OR sys.utl_smtp.Permanent_Error then
raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
END;Silly. Why change meaningful exceptions into a generic meaningless exception?? That does not make any sense. -
Generate .PDF file from Oracle Form and print .pdf
Hello, I am new to oracle form. I need direction on how to create .pdf file on a button click.
The requirement is when user click a button on a form, I need to write some data to the pdf file and open the .pdf file for print.
I am using Oracle Form builder 10.1.2.0.2
Thanks a lot! Please help!Dear all,am new to oracle report and oracle forms and i know the
basics how to generate the report and to create the form, Now my doubt is, like generating report
from oracle report how to generate the report from oracle from,should i add any command button? and where
to add the coding and what coding ? when i click that command button the report should be generated like oracle
report,what should i do?Please help me to learn.
my table name is 'student' and it has the following columns,
sid,sname,grade,result.
Am using oracle from 10.1.2.0.2 version and
oracle report version is 10.1.2.0.2.
Please give step by step procss.
Thank you. -
How to call pdf files from oracle forms
I have a pdf file in the server , I need to call this and open when a button is pressed in the oracle forms.
Please let me know how to do this.
Thanks,
PrevinFrank,
I have oracle applications and I want to open a pdf file located in the server from a button in oracle applications.
Previn,
you don't mention the Forms release you are running.
If you are running Forms on the web, you can use
web.show_document() to load files from the Web if
they are accessible via HTTP.
Frank -
How to attach a PDF file TO the form so that recipients can access the file as a resource?
How to attach a PDF file TO the form so that recipients can access the file as a resource?
Sorry we do not support this. What you can do though is add a Formatted Text element and add a link to a PDF. To insert a link add some text, select the text and right click on the text (or look under the Insert menu in the top right of the scene)
Gen -
How can I embed a form on my website and set up a submit button so that when people fill out and click Submit, the filled form will be emailed to me as an attached pdf file?
Thank you!Hi;
That is not a workflow that is supported by the Adobe forms solutions at this time.
Thanks,
Josh -
Calling Report from Menu (Oracle Forms 11g)
I'm trying to call a report from a menu item in a menu (that is attached to a form) in Oracle Forms 11g directly and I'm having some difficulty. I know how to call a report from a form and everything works perfectly.
But since in a menu there is no item called "Report" to attach like there is in Forms, I followed on route which is to attach the "rp2rro" PL/SQL library on the menu file (mmb) and I also even did it on the form itself. Then when you convert a menu using the Forms Migration Assistant, it will comment out statements like "ADD_PARAMETER" and replace with calls to packaged procedures/functions from the package "rp2rro". I set all the parameters
RP2RRO.SETOTHERS('PARAMFORM=YES');
RP2RRO.SETDESTYPE('CACHE');
RP2RRO.SETDESFORMAT('PDF');
RP2RRO.SETCOMMUNICATIONMODE(SYNCHRONOUS);
then made the call to the report:
RP2RRO.RUN_PRODUCT(REPORTS, 'MYREPORT', SYNCHRONOUS, RUNTIME, FILESYSTEM, param_list_id, NULL);
but all i get is the error "FRM-41219: Cannot find report: invalid ID."
The Oracle documentation for integration reports in forms is for when you execute the report within a form not a menu item (that is attached to a form). Any clues?
My environment is:
Oracle (Database, Fusion Middleware) 11g - Red Hat Enterprise Linux 5
Web Browser - Internet Explorer 7 on Windows XP Professional
Thanks,Francois Degrelle wrote:
Hello,
One option is to use the Web.Show_Document() built-in, with the complete Report Server URL inside. Of course, you can hide some information (connection string for instance) by calling a section of the /reports/conf/cgicmd.dat configuration file.
FrancoisI tried it using the code below
DECLARE
c_relative_path CONSTANT VARCHAR2(50) := '/reports/rwservlet/?server=';
c_rep_srv_name CONSTANT VARCHAR2(50) := 'rep_wls_reports_calgf3_asinst_1';
c_rep_name CONSTANT VARCHAR2(30) := 'copy_detail.rdf';
c_desformat CONSTANT VARCHAR2(10) := 'htmlcss';
c_destype CONSTANT VARCHAR2(10) := 'cache';
v_username VARCHAR2(100);
v_password VARCHAR2(100);
v_db_instance VARCHAR2(40);
v_connect_string VARCHAR2(300);
v_rep_srv_params VARCHAR2(200);
v_rep_url VARCHAR2(400);
BEGIN
v_username := LOWER(get_application_property(username));
v_password := LOWER(get_application_property(password));
v_db_instance := LOWER(get_application_property(connect_string));
v_connect_string := v_username || '/' || v_password || '@' || v_db_instance;
v_rep_srv_params := '&report=' || c_rep_name ||
'&desformat=' || c_desformat ||
'&destype=' || c_destype ||
'&userid=' || v_connect_string ||
'¶mform=yes';
v_rep_url := c_relative_path || c_rep_srv_name || v_rep_srv_params;
web.show_document(v_rep_url, '_blank');
END;
and I get a new tab in the browser opening up (which is good at least) with the Oracle Reports Services page saying:
Error
No such Web command ().
Now I've tried putting a URL of a Oracle's website (http://www.oracle.com) and that works perfectly. Another question is, where would the default directory be if I wanted to say call an HTML file? Would it be in the directory of FORMS_PATH where all my fmb, fmx, rdf, pll, etc...files are stored?
Thanks, -
Calling Report from Oracle form 11g
I am new to Forms 11g, trying to call report from Oracle forms 11g .
I want to call report from oracle forms, but its giving error.
Below is the code
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('empreport'); -- report node in forms builder
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, BATCH);
set_report_object_property ( repid, report_filename, 'empreport.rdf' ); -- report name
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'RptSvr'); -- report server name
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
if
rep_status = 'FINISHED'
then
WEB.SHOW_DOCUMENT('http://inorasrv-pc:7001/reports/dtd/rwservlet/getjobid='||v_rep||'?server='||'RptSvr','_blank');
else
message ( 'error while running reports-object ' || error_text );
message ( ' ' );
clear_message;
end if;
end;
Above code giving following error :
Unable to connect to report server RptSvr
I think my report servername is wrong
Where to find report server name in 11g.
I am Using weblogic server, so can i give weblogic server name
Thanks in advance.
Edited by: parapr on Aug 17, 2012 1:52 AM
Edited by: parapr on Aug 17, 2012 3:21 AMHi,
You have to have the report server
a. Installed and configured
b. Running.
See
http://docs.oracle.com/cd/E21764_01/bi.1111/b32121/pbr_strt001.htm
http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_verify004.htm
http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_conf003.htm#i1007341
If you are using rwservlet then you will find the name from the Configuration file referred to in the last link.
Cheers, -
Generated pdf file from oracle reports show bad characters
Hello all,
Iam fighting with a problem with generated pdf file from oracle reports which show some bad characters. I was searching for some information but it didnt help...
I have Oracle Database 11g R2 (or 10g R2) on Oracle Linux or Windows, Oracle forms and reports 6i (i know that is very old and not supported with 11gr2 but we are in this scenario).
NLS parameters are set like this
server:
NLS_CHARACTERSET EE8MSWIN1250
NLS_TERRITORY AMERICA
NLS_LANGUAGE AMERICAN
client:
NLS_CHARACTERSET EE8MSWIN1250
NLS_TERRITORY SLOVAK
NLS_LANGUAGE SLOVAKIA
When I run Oracle Reports it show perfect in display and when I try to print them, they are all good with good characters, but when I try to generate pdf file, some characters like č,š,ľ are not displaying corectly... This happen only when try to generate to pdf...
I try to work with uifont.ali on client side but without any result. Fonts for reports were installed on client and server side... Can someone help me with this problem? Thank you very much for every advice.
MartinHi Sergiusz,
Thank you for your reply. I look at what you wrote and try to make some test...
1) For first I download FontForge, which can generate type1 font from true type. So I open FontForge and open my Arial.ttf font and use "Generate Fonts" to save my Arial.ttf font to pfb and pfm (whoch are need to set in uifont.ali). I have to change encoding, because my font has 2byte encoding so I reecondode the font from ISO10646-1 to ISO8859-2 and generate to pfb.
2) Then I navigate REPORTS_PATH from regedit to my *.pfm and *.pfb files.
3) I add these lines to end of my uifont.ali
[ PDF:Embed ]
Arial = "Arial.pfm Arial.pfb"
ArialNarrow = "ArialNarrow.pfm ArialNarrow.pfb"
4) Then I generate my report but nothing change... I check "Font used" in my pdf file, but there were not my fonts embedded I guess..
I also try PDF:Subset, but it doesnt change anything... I try PDF aliasing to see if my uifont is working - this work very well, but I dont need to change font...
Any other advice? Thank you so much to everyone!
Martin -
How to access a PDF file from Oracle DATABASE SERVER
Hi
I have some pdf files in "\home2\docs" directory in Oracle database server 10g. (OS is Linux) I want to access those pdf files from my client system through Oracle Forms. How is it possible?
Please Help!!!! It is very urgent !!!
Expecting fast response!!!!!
Byehi
Thank u for ur response.
Initially i tried to access pdf file from database server. I didn't get any solution for that. So I copied all my pdf files to Application server which is in Linux environment at "/home2/docs" directory.
I gave the following command for accessing the pdf files kept in Lnux Application Server from Oracle 10g forms in a button press trigger.
web.show_document('http://192.168.1.53:7779/home2/docs/test.pdf');
It says "page cannot be found"
So I copied one of the pdf file named "test.pdf" to "/oracle/oas10g/IasHome/forms90/java" in Linux Application Server . Then the following command
web.show_document('http://192.168.1.53:7779/forms90/java/test.pdf');
has opened the the pdf file in browser.
192.168.1.53 is my Linux Application Server IP. and 7779 is the port.
Actually we have lacs of pdf files. So i cannot keep all the pdf files in "/oracle/oas10g/IasHome/forms90/java" directory in Linux Application Server. And also all the pdf files not in the same directory , "/home2/docs" some of the pdf files r in the subdirectories of "/home2/docs/" like /home2/docs/sub1, /home2/docs/sub2, /home2/docs/sub3 etc.
Then how to configure my "/oracle/oas10g/IasHome/forms90/server/forms90.conf" file for retrieving pdf files from "/home2/docs/" and its subdirectories. Is Anything other than this, required for solving my problems.
Now My PDF files r in LINUX APPLICATION SERVER not in database server.
Please help!! It is VERY URGENT!!! -
Error message when trying to upload a pdf file to a form
A user was trying to upload a pdf file to a form I created (Contractor Vanpool Application Form). The parameters I set, was that it had to be a pdf form, less than 20MB and a single file. She met these parameters, but when she hit the submit button, she received this dialogue box message: Warning: JavaScript Window - File Attachments are not supported in FormsCentral PDF forms. Please contact the form author to send the file attachments another way. This dialogue box prevented her from even getting as far as selecting the file and uploading. Another user was succesfully able to upload a form, so I know this is working. So I changed the parameters to allow multiple files in any format, and she still had a problem.
She states is using windows 95, Internet Explorer. Help, MichelleIn Form Central, when I add a field, I select the Add File Attachment icon (see screen shot below - it is the 10th icon from the left, the paperclip over a sheet):
Then it allows me to fill in the field, describing the file to upload, and the properties to the right defining the file size limit, type of file and other properties. This is all done through formscentral, thus allowing a user in my form to upload a file that is attached to the form when submitted. -
How to use Java Beans in Oracle Forms 11g at 64 bit windows7
Hello Experts,
I am using Oracle forms 11.1.2.2.0 with weblogic 10.3.6 generic at windows 7 64 bit.
My java version is jdk1.7.0_51.
Now I have a htmlbutton.jar (which is for bean item in oracle form and this jar file works well for oracle forms 11g 32 bit windows 7 environment).
I have takken steps:
1:-Put jar file in home\java folder.
2:-add this jar file into archive in formsweb.cfg.
3:-Add this this jar file(which is in my home- java folder) in form_class path in registry.
Now when I try to locate this jar file in my oracle form.There is no such jar file.what are the steps to use this jar file in oracle forms bean item.
Please told me what is wrong here.
thank you
regards
aaditya.It is unclear where you are having a problem. Is your issue at runtime (when the form runs in the browser) or when working in the Builder on the form?
Also be aware that you will need to sign your jar and include some new manifest entries. Refer to the Java 7u51 documentation and blogs that discuss the changes.
https://blogs.oracle.com/java-platform-group/entry/new_security_requirements_for_rias
http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html -
Copy/Paste functionlity is not working in oracle forms 11g
Hi All,
We are using custom built big application (oracle 11g/forms 11g).
1. And few user are not able to copy/paste from oracle forms 11g to winword.And its random sometime they can ,sometime they can't .
2. If they have problem means they have copy/paste issue and (When we close application and run it again it is working fine)
3.it's random we are not able to re-produce in development environment.
What i noticed both user have problem and both are using left hand mouse ,generally we use left/right they are using right/left.
Here the Environment Detail:
Java runtime :1.6.0_26
Weblogic server
oracle forms 11g
So just wondering is there any changes required. Seniors/Guru please advise.
Thanks!It is very important to make clear which direction you are going. If you are not able to copy from Forms and paste to an external application, this could be any one or more of the following:
1. There is a problem with the JRE. Consider uninstalling ALL currentlly installed JREs and install the latest supported version 1.6.0_33
2. There may have been an issue with the Forms version you are using. Be sure you are using 11.1.1.6 or 11.1.2.0. If not, install the latest patch.
3. The JRE was unable to properly identify or store the digitial signature in the Forms jar file or one which you included (custom code). If you are using any customer jar files, ensure that they have been properly signed. Also be sure that JRE cache is being stored on the local client machine and not a remote location as this is not supported. If you have not altered the default, the cache is stored in the user's home directory under Application Data (AppData for Win7)
4. Could be a mouse driver issue. Go to the mouse vendor's web site and get the latest driver for that mouse. Do not use the MS drivers.
Example:
C:\Users\<USER NAME>\AppData\LocalLow\Sun\Java\Deployment\cache
So, recommendations:
1. Uninstall all JRE versions currently installed. Install 1.6.0_33
2. Ensure that you are using 11.1.1.6 or 11.1.2.0
3. Clear the JRE cache. To do this close ALL open browsers and open the Java Control Panel. Look on the General tab for Temporary Internet Files > Settings > Delete Files > Ok
4. Install the latest mouse driver.
5. Retest
Edited by: Michael Ferrante (Oracle) on Jul 25, 2012 2:58 PM -
Showing Blank Records oracle forms 11g
Deal all..
i am using oracle forms 11g , i created a form by using data block wizard & layout wizard , but when i run the form, the form running successfully in browser, url is ( http://arun-pc:9001/forms/frmservlet), but it is showing empty records.
when i check with sql plus user Scott , i found 10 records in departments table , same user and same table i used in oracle forms.
i don't know what is the problem.. i am new to oracle forms please help me..
i am waiting 4r your valuable reply
thank s in Advance..Hello. Mr.harsh shah...
Thank u for your reply..
I follow the link what u given in above post.. But still i have the same issue.. i am not sure, but i think i have problem with my Environment, bcz in many blogs i read that oracle forms is not recommended to use with 64 bit OS. and second , iam not using developer suite 10g,
currently i am using,
operating system: windows server 2008 r2
weblogic server :- wls1036 (64bit)
JDK :- 7u17 64bit
Oracle forms :- 11g
and database in another host , just i edit tnsnames.ora file in forms directory. the following are my configuration options
Oracle Forms and Reports Installation
Configuration Options
Middleware Home Location: C:\Oracle\Middleware
Oracle Home Location: C:\Oracle\Middleware\Oracle_FRHome1
Oracle Instance Location: C:\Oracle\Middleware\asinst_1
Oracle Instance: asinst_1
Domain Option: Create Domain
Domain Name: ClassicDomain
Domain Home: C:\Oracle\Middleware\user_projects\domains\ClassicDomain
Domain Host Name: WIN-DMJUC51KRHF
Domain Port No: 7001
User Name: weblogic
Automatic Port Detection: true
Administrator Console: http://WIN-DMJUC51KRHF:7001/console
EM Console: http://WIN-DMJUC51KRHF:7001/em
EMAgent URL: http://WIN-DMJUC51KRHF:5155/emd/main
Forms URL: http://WIN-DMJUC51KRHF:8888/forms/frmservlet
Reports URL: http://WIN-DMJUC51KRHF:8888/reports/rwservlet
i check all the links above, all services showing running successfully.. but when i run the form , i dont fine any records , showing empty and blank records..
please give me clarification ...
Thank u very much..
Arun -
How to open .cmdrw file from Oracle Forms 10g
Hi,
We need to call *.cmdrw* file from Oracle forms 10g. Is there any way to call *.cmdrw* file from Oracle forms 10g?
Thanks for the help.
Viishnu NekkantiIn case you want to open a .cmdrw with its associated application you can use the following procedure:
webutil_host.NonBlocking( 'rundll32 url.dll,FileProtocolHandler ' || client_filename );This works for every file where a program has been associated to its file extension. (Adobe Reader for *.pdf, Microsoft Word for *.doc, Microsoft Excel for *.xls and so on)
Regards
Markus
Maybe you are looking for
-
Ipod won't sync with itunes, wiped itself, won't leave apple logo screen
I think the problem showed up after I plugged my ipod classic into a Belkin (I think) ipod speaker dock. The next time I plugged it into my computer, it wouldn't sync with itunes. When there's no ipod plugged into the computer, itunes opens fine, but
-
All JCo return parameters are initial
Hi, I'm getting "All JCo return parameters are initial" on a SOAP->XI->R/3 scenario. What could be the cause? This is not all the time, it's working 99.5% of the time! <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!-- Request Messag
-
Unknown Account in Keychain (for Google)
I woke up from a nap, came back to my computer, and checked my Google Calendar. However, I had been signed out and the account information (username, password filled out, "Stay Signed In" checked) on the page was for an unknown account. My Google a
-
Lumia 735 problems with email accounts
Hi! I've bought Lumia 735 for my mum. I've set up 2 email accounts for her, one as "Other", 2nd one, work account by using Exchange settings. It worked alright then. Now I cannot check emails on both accounts, there is information that both accounts
-
Checking the connection Status
Is anyone using the cocoaDev NetSocket? I try difficulty in checking the connection status using NetSocket...i open the socket and the connection, but when i'm perfmorming some action that waits for a server response, there's no automatic timeout tha