Calling Scanner in Forms
Hi guys
I'm facing one problem in forms 6.0. i'm at the completion of my project, but due to this i'm stuck. i'm calling scanner from my application by the following way
host ('C:\Program Files\Common Files\Microsoft
Shared\mspaper\mspscan',no_prompt);
it scans the documents and automatically gives name like scann0001...scann00nn.
after this i'm calling this scanned document to the image item on block by using the function
read_image_file('C:\Pictures\'||'scann0001','JPEG',:block.image_item);
but the problem is that i dont know how select this file scann0001.
i dont want to use the function
get_file_name('C:\Pictures\',null,
'Image Files (*.*)|*.*|' ||
'All Files (*.*)|*.*|', NULL, OPEN_FILE );
as it opens the folder and ask for the file to select.
i want everything automatic that is just press the scann button and the scanned document appear on the screen.
how this is possible. Can anyone help me in solving this problem. I'll appreciate for any help in this regard.
thanx
samrina
The Member Feedback forum is for suggestions and feedback for OTN Developer Services. This forum is not monitored by Oracle support or product teams and so Oracle product and technology related questions cannot be answered. We recommend that you post this thread to the "Forms" forum.
The URL is: Forms
Thanks, OTN Team
Similar Messages
-
Calling Scanner in Forms 6.0
Hi guys
I'm facing one problem in forms 6.0. i'm at the completion of my project, but due to this i'm stuck. i'm calling scanner from my application by the following way
host ('C:\Program Files\Common Files\Microsoft
Shared\mspaper\mspscan',no_prompt);
it scans the documents and automatically gives name like scann0001...scann00nn.
after this i'm calling this scanned document to the image item on block by using the function
read_image_file('C:\Pictures\'||'scann0001','JPEG',:block.image_item);
but the problem is that i dont know how select this file scann0001.
i dont want to use the function
get_file_name('C:\Pictures\',null,
'Image Files (*.*)|*.*|' ||
'All Files (*.*)|*.*|', NULL, OPEN_FILE );
as it opens the folder and ask for the file to select.
i want everything automatic that is just press the scann button and the scanned document appear on the screen.
how this is possible. Can anyone help me in solving this problem. I'll appreciate for any help in this regard.
thanx
samrinaThe Member Feedback forum is for suggestions and feedback for OTN Developer Services. This forum is not monitored by Oracle support or product teams and so Oracle product and technology related questions cannot be answered. We recommend that you post this thread to the "Forms" forum.
The URL is: Forms
Thanks, OTN Team -
Calling report from form. Need PDF output
I am calling a report from a form using RUN_PRODUCT. I need to display the form in PDF format. When the user clicks the button in the form to run the report, acrobat reader should open up and the report displayed there. Please help.
ThanksThanks for the response. The first part worked. I am able to get the output in PDF format. In the 2nd part where I want to open acrobat and display the output, I am having some trouble with the code. When I compile, it says
win_api_environment.read_registry must be declared. Is there some package I need to attach?
Also, in the After reports trigger, how do I pass vFile (I am assuming this is the PDF file name)?
Thanks
The first thing you'll want to do is pass parameters to the report IE DESTYPE, DESNAME and DESFORMAT where these could be FILE, 'c:\temp\report' and PDF.
Then, you can try this piece of code I wrote (with some help from other people at Metalink and here) sometime back. Now, I call it from forms, but in your case, you'd have to run it in the after report trigger. Since with RUN_PRODUCT you don't know when the report is finished, if you did it from the form, it wouldn't work correctly.
PROCEDURE OPEN_PDF(vFile IN VARCHAR2)
IS
vcServerApp varchar2(40);
vcServerTag varchar2(600);
vcCommand varchar2(2000);
iArgPos pls_integer;
dummy NUMBER;
BEGIN
-- 1 get the Server App for .PDF files
vcServerApp := win_api_environment.read_registry('HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\.PDF','',true);
-- 2 get the executable
vcServerTag := 'HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\'||
vcServerApp||'\SHELL\OPEN\COMMAND';
vcCommand:= win_api_environment.read_registry(vcServerTag,'',true);
-- 3 Sort out how to specify the Filename
iArgPos:= instr(vcCommand,'%1');
if iArgPos = 0 then --no substitution Var on the command line
vcCommand := vcCommand||' '||vFile;
else
vcCommand := substr(vcCommand,1,(iArgPos-1))||
vFile||substr(vcCommand,(iArgPos+2));
end if;
-- 4 Run using Winexec (or Host if preferred).
win_api_shell.winexec(vcCommand);
EXCEPTION
when no_data_found then
abortt('Acrobat Reader was not found! Please consult with your help desk to install it and try again.','N');
END;
Chad
I am calling a report from a form using RUN_PRODUCT. I need to display the form in PDF format. When the user clicks the button in the form to run the report, acrobat reader should open up and the report displayed there. Please help.
Thanks -
Is it possible to call a 9i Forms from a 6i Forms ?
Hello,
I have a customer using CRM 11.5.10.2 ( Database 9.2.0.6 / 6i Forms) and will be created a functionality in the CRM screen, where end user will call (via button) a custom application running on 9i Forms.
Customer believes that there is a technical limitation to achieve that. That is, call a 9i Forms from a 6i Forms.
Is it possible to call a 9i Forms from a 6i Forms ?
Thank you in advanced for help,
Marcos Souza.I should have thought so, as Forms 9i is exclusively web-driven, so how you launch the URL is immaterial as long as you use a supported browser. As your Forms 9i apps will invariably be on a remote web server, you'll not encounter compatibility issues either. And Forms 6 and 9 development is possible on the same PC using multiple Oracle Homes. Ask Oracle beforehand if you are still not convinced.
-
Error "Job already started" when calling a adobe form in Z function module
Hi All,
I have a error when calling a adobe form in a custom function module.
I am using FP_FUNCTION_MODULE_NAME to get the adobe form function module and then i am using FP_JOB_OPEN function module to control the printing parameters such as no print preview or no dialog ..etc.. I dont have any exceptions during the call of FP_JOB_OPEN function module ..
Later I am calling my function module which was generated for the adobe form and i am getting the error called " JOB ALREADY STARTED".
I tried executing the same function module in se37 and the PDF form output was generated, and also by commenting FP_JOB_OPEN function module the PDF form output was generated.
But i need the FP_JOB_OPEN function module to control the output based on the output type which triggers the form output such as the medium from nast record which says print or email or fax.. etc
Please let me know how to handling this error.Just as a followup note. If you are testing a function module from SE37 and the test button you will get a value in SY-CPROG. You must override this value for everything to work.
If you override the value of SY-CPROG with the main program that will be calling the function module you have no problem.
John W. -
Calling Report From Form To Many Destinations
Hi
I am calling reports from forms using SET_REPORT_OBJECT_PROPERTY and then run_report_object.
I dont know the destination until runtime of the report which is ok as I can pass this in via my procedure, but if that destination is many ie mail and file what is the best way to distribute the report?
I could call my procedure for each destination but that seems a bit unefficient since the report would be created many times, is there another way?what about adding a drop-down-list near your report-button where you can choose the destination?
when you click the report-button you simply read the value selected in the drop-down-list and send it to your reports-server too. -
Calling Report from Form Error ORA-06508
Dear all,
I want migrate from Fom6i to Oracle Developer Suite 10g (10.1).
Folder Form = C:\APLIORA\IRS\FORM
Folder Report = C:\APLIORA\IRS\REPORT
I have modified file DEFAULT.ENV
FORMS_PATH=C:\APLIORA\IRS\FORM;C:\APLIORA\IRS\REPORT
i do not have problem call a form from form.
but when i call report from form show error ORA-06508 : PL/SQL : could not find program unit being called ; -6508
my procedure is
PROCEDURE Call_Report IS
list_id ParamList;
BEGIN
list_id := Get_Parameter_List('input_params');
IF NOT Id_Null(list_id) THEN
Destroy_Parameter_List(list_id);
END IF;
list_id := Create_Parameter_List('input_params');
Add_Parameter(list_id,'MAXIMIZE',TEXT_PARAMETER,'YES');
Add_Parameter(list_id,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'YES');
RP2RRO.RP2RRO_RUN_PRODUCT(REPORTS,'TESTREPORT.REP',SYNCHRONOUS,RUNTIME,FILESYSTEM,list_id,null);
END ;
Do I miss something ?
Can any one help ?
ThanksHi,
Thank you for your replay.
The problem have solved.
This my step :
1. Install Windows XP SP2 and Form 10.1.2.0.2 on new pc.
2. Install Jinit version 1.3.1.28.
3. Create report server
3. Compile form, report and pll
4. call report from from with this procedure :
PROCEDURE Call_Report (vFILENAME varchar2) IS
report_id Report_Object;
ReportServerJob VARCHAR2(100);
vc_rep_status VARCHAR2(100);
repsvr varchar2(21) := 'myserv';
userid VARCHAR2(100);
pass VARCHAR2(100);
Host VARCHAR2(100);
BEGIN
userid := Get_Application_Property(USERNAME) ;
pass := Get_Application_Property(PASSWORD) ;
Host := Get_Application_Property(CONNECT_STRING) ;
report_id:= find_report_object('REPORT');
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,vFILENAME||'.jsp');
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,repsvr);
ReportServerJob:=run_report_object(report_id);
vc_rep_status := REPORT_OBJECT_STATUS(ReportServerJob);
WHILE vc_rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED', null)
LOOP
vc_rep_status:=REPORT_OBJECT_STATUS(ReportServerJob);
END LOOP;
IF vc_rep_status='FINISHED' THEN
WEB.SHOW_DOCUMENT('/reports/rwservlet?report='||vFILENAME||'.jsp'||'&userid='||userid||'/'||pass||'@'||Host||'&destype=CACHE&desformat=PDF¶mform=yes','_blank');
ELSE
message ('Report failed with error message '|| vc_rep_status);
END IF;
END;
Ok, but i have another strange error. I will post new thread.
Thank you and regards
Teguh S -
Calling a Smart Form on Click of a Table Row..
Hi All,
I have one requirement.
I have developed one applicaiton, in which from R3, the values are coming in form of a table. Now, on Click of a Table row, it should call a smart form developed in R3 for that selected row attribute. Also the smart form should open in a new window, so that user can take a print of it.
How to add this new view and how to get the selected Row value ?
Please help me.Hi,
To open the new window, I have added blow code:
IWDWindowInfo windowInfo = (IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("InfoPopup");
IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
window.open();
but, getting error message as : IWDWindowInfo cannot be resolved
what should be the import parameter? Also please tell me how to search for the Import parameters for the respected attribute/code?
Please help. -
Hi All,
We are migrating form from Oracle form 6i to Oracle 10g(10.1.2.0.2). I am calling reports from forms
using Web.Show_Docment(). When we run reports in report builder 10g it works fine.
But when we try to run reports from Forms 10g it throws error which is given below.
We want to run reports from UNIX. After using this url to submit report we get error REP 110 and REP 0110
URL
http://GEM:7777/reports/rwservlet?server=rep_server&report=/u01/forms/QA_Forms10g/GEMREP.rdf+DESTYPE=CACHE+DESFORMAT=HTML+p_user_id=XYZ+p_client=2
ERROR
REP-110: File '/u01/forms/QA_Forms10g/GEMREP.rdf DESTYPE=CACHE DESFORMAT=HTML p_user_id=XYZ p_client=2' not found.
REP-0110: Unable to open file '/u01/forms/QA_Forms10g/GEMREP.rdf DESTYPE=CACHE DESFORMAT=HTML p_user_id=XYZ p_client=2'.
I will really appreciate your help.
Thanks
SandyHello,
You are mixing 2 separators in the URL : & and +
Use only one separator in the URL :
Example :
http://GEM:7777/reports/rwservlet?server=rep_server+report=/u01/forms/QA_Forms10g/GEMREP.rdf+DESTYPE=CACHE+DESFORMAT=HTML+p_user_id=XYZ+p_client=2
Regards -
Getting error while calling reports through form
Hi I want to call a report from a form i put the following code on when-button-pressed but i am getting the following error.I can generate and run the reports.The object REPORTS is created under forms report object
FRM-41211: Integration error: SSL Failure running another report
DECLARE
repid REPORT_OBJECT;
report_prop VARCHAR2(20);
v_rep VARCHAR2(100);
BEGIN
repid := find_report_object('REPORTS');
set_report_object_property(repid,report_other,'p1=15 p2=19 paramform=yes');
v_rep := RUN_REPORT_OBJECT(repid);
END;
rgds
shyamHi
I can able to run the reports from the browser there was a syntax error, but not able to call from a form
I am getting error but i can run another forms without any problem
FRM-92101: There Was a failure in the FormsServer during startup
oracle.forms.net.connectionexception:forms session aborted:unable to communicate with the runtime process
rgds
rosh -
Oracle reports calling problem from FORMS
Hies
Guys I've a problem in oracle report calling from Oracle FORMS. I am using reports and forms 6i. When the report name length is more than 30 characters the report engine runs first time correctly but on the second call of report the system gives an error :
" RWRBE60.exe has generated errors and will be closed by windows.You will need to restart the program ".
After this error the report engine closes and i have to call the report again.
Is there a length fixed for reports name in Oracle 6i.
Is any possible solution available.
Remember i dont want to shorten my report names.
Kindly help me with this.
Thanx.Thanx Frank
Well one solution is that i can decrease the length of my report name and the problem does not occur than.
any ways thanx ..but where to get the patch from.
Kindly provide me with the link if possible.
Thanx,
Qaiser Qayyum Malik.
[email protected] -
New Window for Form called from a form based on a procedure
Hi
I have a form that is based on a procedure that asks for an employee number. The number is then passed to the procedure. The procedure then calls the next form passing in the employee number.
This works however I would like the form called from the procedure to open in a new window while still being able to pass in the employee number as a parameter.
Is there a way to do this? I have tried looking at wwa_app_module.new_instance & wwv_media.show_newwindow but I these only take the moduleid, I can't see how to pass in the employee number at the same time.
Any help would be appreciated.
Thanks
BelindaHi,
You can pass parameters like this
wwv_redirect.url('SJAYARAM_9042F.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1060253649&p_arg_names=deptno&p_arg_values=10&p_arg_names=_deptno_cond&p_arg_values=%3d');
In this example the parameter deptno is passed with a value 10 and conditional operator '='
Hope that helps.
Thanks,
Sharmila -
C# DLL Calls in Oracle Forms 6i
Dear all,
I want to call a C# ( C Sharp) functions in Oracle Forms 6i , How it is possible , If any body knows give me a suggestion...
C# Codes
using System;
using System.Collections.Generic;
using System.Text;
namespace MathFunctions
public class AddClass
public static int Add(int a, int b)
return (a + b);
same codes I want to call using Oracle Forms 6i . ... ( AddClass.Add(10,20) ) value should return 30.
C# Developer created the DLL file and given to me , I am not able to attach the DLL , anybody interest I can send the DLL through E-mail ,
Regards,
Veera.
[email protected]The Forms Builder Help is the best source of information. It has plenty of examples too, like this one I copied from the Help:
/* Find foreign library handle for
a given library name */
BEGIN
libhandle := ora_ffi.find_library
('mylib.dll');
END; -
How to call a custom form on click of a button?
We have a requirement to call a custom form on clicking a button which is on a standard form. I cant modify the standard form. Is this possible to handle this event from CUSTOM.pll or forms personalization?
some sample code will help. Thanks in Advance,
Message was edited by: 988490e8-2268-414d-b867-9d9a911c0053Hi,
I think you are working with Oracle EBS.
I don't think so that we can able to call the custom form on clicking button.
We can call the form from the standard form using both custom.pll and form personalization
In custom.pll using zoom function we can do this and in form personalization we can call the form by using form function, In both we call the form by creating a special menu in standard from and we used to call.
So please check further, and let me know if any i can help you any.
Regards
Sri . -
Urgent: Getting FRM-41211 when calling reports from forms for first time.
Hi,
We are running into the FRM-41211 error, when the users try to call a report from a form. The report is called from a form in SYNCHRONOUS mode. This is the only report that is being called. No other report is
running at that time when the users get this error. This is happening only the first time when they try to call the report from the form. After getting this error, when they click on OK, and when they try to call this
report again, the report works fine.
Any ideas?? It's urgent...
Thanks
Vamshi.
nullMaybe try to use "run_report_product"?
Maybe you are looking for
-
Connecting Laptop to TV using Intel WIDI to watch Sky
Has anyone connected their laptop using Intel WIDI to a smart TV to watch Sky?I am continually getting an error and it looks like its being blocked by Sky.Using Amazon Prime or IPlayer and Netflix works fine, so i know teh SW and HW are functioning.I
-
Why does the System message-"Customer Num of customer is on hold" appear
Hi, I created a UDO form with a field named Customer Code that represents a code of a customer. Pressing TAB over the field enables to choose a customer from a list. The list is based on Choose From List system object. When I choose a customer, who
-
10.5.3 major printing problems
Ok. i have checked a majority of the threads , went to the local apple store and nobody knows how to fix this. I have an iMac g5 and a HP PSC 1510v printer. After upgrading to 10.5.3 i can no longer print via airport without the program I am using fr
-
Error message when assign task profile
Hi Expert, SAP system 4.0B, i create a new activity group in PFCG and assign responsibility in it. I already generate the responsibility and when i assign to user id in SU01 error message come out. Profile for activity group not yet generated
-
Configuration of EFT remittance advices in ECC6
Have configured the steps in transaction FBZP for payment method T (Transfer) but still can not seem to print out the remittances via the payment run using transaction: F110? Does anyone have a checklist of steps? Maybe I am missing something? Kind r