Detecting printer from Form 5
I need to detect the default printer from Forms 5. Do you have any idea how to do this ?
Please respond as soon as possible.
Many thanks
Note that this is a 6i version, but the code will backport to 5.0 - you'll need to convert the PLL to a PLD in 6i and then reverse the process in 5.0
Similar Messages
-
Print a report to a specific printer from Forms
I have a form from where i want to print a report to a specific printer (not the default printer). Is there any way to do this from Forms 9i. Im using the Orarrp but it pops up the printer dialog and shows the default printer. Is there any way to harcod the printer name. the printer is on the network..
If i go to my control pannel and see the list of printers i take the printer name from there. should i put the path of the printer? i kno the port of the printer .it come like ip_192.1.11.1_p1 ..how do i define the printer name? if i dnt give the printer name shouldnt if fire to the default printer ..my code is as follows
declare
REPID REPORT_OBJECT;
V_REP VARCHAR2(100);
REP_STATUS VARCHAR2(20);
BEGIN
REPID := FIND_REPORT_OBJECT('CUS_PRINT');
SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_DESTYPE,PRINTER);
SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_SERVER,'test');
SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_OTHER,'P_CUSREF='||:CTRL01.CUSREF||' PARAMFORM=NO');
MESSAGE('SET REPORT PROP');
V_REP := RUN_REPORT_OBJECT(REPID);
REP_STATUS := REPORT_OBJECT_STATUS(V_REP);
MESSAGE('RAN REPORT');
WHILE REP_STATUS IN ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
REP_STATUS := REPORT_OBJECT_STATUS(V_REP);
END LOOP;
IF REP_STATUS = 'FINISHED' THEN
IF NVL('TEST',' ') <> ' ' THEN
GEN_ALERT('NULL_ALERT','TEST');
END IF;
ELSE
GEN_ALERT('NULL_ALERT','Error when running report');
END IF;
END;
what should the desformat of the report should be..when im trying to run this it gives me 'no data found' error...why??? -
Print report to client printer from forms
Hi,
I need to print a report directly to a client printer.
There is a utility called ORARRP - Oracle Reports Remote Printing Utility.
But the document I saw was from Oct 2001 - so is this still the only and best option ?
I'm using RUN_REPORT_OBJECT in forms to launch the report.
This works fine when the DESTYPE is FILE and DESNAME = PDF
The PDF-outputt is then successfully shown with WEB.SHOW_DOCUMENT
When changing DESTYPE to PRINTER and DESNAME to clients printername then report won't run. "Report filed with error message TERMINATED_WITH_ ERROR".
Is it possible to print directly to a client printer using RUN_REPORT_OBJECT ?
(Our client printers are not networkprinters)
Environment:
Forms [32 Bit] version 9.0.4.0.19
Report Builder 9.0.4.0.33
Reportsserver on linux
Thanks !
Sam(Our client printers are not networkprinters)This means you cannot print from the server directly on the client printer with destype=printer, since the server cannot see the printer.
So, a manual print command by the user from the browser or the orarrp utility are your options. -
Reports 9i Printing from Forms with WEB.SHOW_DOCUMENT
I want to print a Report from Forms via WEB.SHOW_DOCUMENT directly to the printer and it works fine.
But every time i print it from my web application a new browser-windows opens and shows a message "Printed successfully" or something like that. If I start the printjob again nothing happens - if I press the Browser-Refresh-Button in the new Browser-Windows with the Message ("Printed Successfully") it prints.
So now I have 2 questions:
a) How can I disable the "Printed successfully"-Message
b) What hava I to do that I not must press on the Refresh-Button to start the printing again
I hope I hava explained my problem clearly. 4
Here ist the complet WEB.SHOW_DOCUMENT-Command I fire in Forms when a Button is pressed:
WEB.SHOW_DOCUMENT('http://mymachine:8888/reports/rwservlet?report=testreport.rdf&destype=printer&desname=\\NTS32\VZ_D3&desformat=html&userid='|| sUser ||'/'|| sPW ||'@'|| sDB,'_blank');
Many thanx for your help!
Regards
MarcHello,
for the problem:
b) What hava I to do that I not must press on the Refresh-Button to start the printing again
may be it just a setting in your Browser ?
For Internet Explorer :
go to I.E General Options screen. click on settings button and choose
"Every visit to the page " option.
Regards -
SRS4.1/VDI3.0 Soalris can detect printer forworded form Sun Ray DTU
Dear all ,
i need some help on the blow please:
environment brief:
i have VM cluster of 8 Servers sun blade 6240 , over this pool of servers there is Virtually 4 VDI 3.0/SRS4.1 servers and pool of windows XP virtual machines , and around 70 Sun Ray 270 DTUs.
all the VDI/SRS servers are Solaris 10 10/08 Generic_139556-08 i86pc i386 i86pc
i wanted to configure USB HP LaserJet 2300 Series PCL 6 printer connected to one of the DTUs ,
So i did the following :
on solaris
/usr/sbin/lpadmin -p hp14 /tmp/SUNWut/units/IEEE802.<DTU MAC Addres>/dev/printers/Hewlett-Packard00DP3087F
/usr/bin/enable hp14
/user/sbin/accept hp14
then to connect the printer to windows
/opt/SUWuttsc/bin/uttsc -r printer:hp14="HP LaserJet 2300 Serise PCL 6"
the problem is the following the printer gets defined in windows and windows sends the request to the Solaris Sunray server nicely but i cant print .
the problem in solaris i cant make solaris print any thing on the printer
in etc/lp/hp14 i found the follwoing the faultMessege file :
Failed to open the printer port. (No such device)
also when i try to add the printer from the Solaris print manger it adds it successfully but when i double click on it to show its properties it show the printer port is empty even thwo it exists in the lp/etc/hp14/configuration file and when try to change the printer type for example it give java null point exception.
i tried another printer diffrent model but it is still the same error message
i appreciate any help with this.Dear all ,
i need some help on the blow please:
environment brief:
i have VM cluster of 8 Servers sun blade 6240 , over this pool of servers there is Virtually 4 VDI 3.0/SRS4.1 servers and pool of windows XP virtual machines , and around 70 Sun Ray 270 DTUs.
all the VDI/SRS servers are Solaris 10 10/08 Generic_139556-08 i86pc i386 i86pc
i wanted to configure USB HP LaserJet 2300 Series PCL 6 printer connected to one of the DTUs ,
So i did the following :
on solaris
/usr/sbin/lpadmin -p hp14 /tmp/SUNWut/units/IEEE802.<DTU MAC Addres>/dev/printers/Hewlett-Packard00DP3087F
/usr/bin/enable hp14
/user/sbin/accept hp14
then to connect the printer to windows
/opt/SUWuttsc/bin/uttsc -r printer:hp14="HP LaserJet 2300 Serise PCL 6"
the problem is the following the printer gets defined in windows and windows sends the request to the Solaris Sunray server nicely but i cant print .
the problem in solaris i cant make solaris print any thing on the printer
in etc/lp/hp14 i found the follwoing the faultMessege file :
Failed to open the printer port. (No such device)
also when i try to add the printer from the Solaris print manger it adds it successfully but when i double click on it to show its properties it show the printer port is empty even thwo it exists in the lp/etc/hp14/configuration file and when try to change the printer type for example it give java null point exception.
i tried another printer diffrent model but it is still the same error message
i appreciate any help with this. -
VDI3.0/SRS4.1 Soalris can detect printer forworded form Sun Ray DTU
Dear all ,
i need some help on the blow please:
environment brief:
i have VM cluster of 8 Servers sun blade 6240 , over this pool of servers there is Virtually 4 VDI 3.0/SRS4.1 servers and pool of windows XP virtual machines , and around 70 Sun Ray 270 DTUs.
all the VDI/SRS servers are Solaris 10 10/08 Generic_139556-08 i86pc i386 i86pc
i wanted to configure USB HP LaserJet 2300 Series PCL 6 printer connected to one of the DTUs ,
So i did the following :
on solaris
/usr/sbin/lpadmin -p hp14 /tmp/SUNWut/units/IEEE802.<DTU MAC Addres>/dev/printers/Hewlett-Packard00DP3087F
/usr/bin/enable hp14
/user/sbin/accept hp14
then to connect the printer to windows
/opt/SUWuttsc/bin/uttsc -r printer:hp14="HP LaserJet 2300 Serise PCL 6"
the problem is the following the printer gets defined in windows and windows sends the request to the Solaris Sunray server nicely but i cant print .
the problem in solaris i cant make solaris print any thing on the printer
in etc/lp/hp14 i found the follwoing the faultMessege file :
Failed to open the printer port. (No such device)
also when i try to add the printer from the Solaris print manger it adds it successfully but when i double click on it to show its properties it show the printer port is empty even thwo it exists in the lp/etc/hp14/configuration file and when try to change the printer type for example it give java null point exception.
i tried another printer diffrent model but it is still the same error message
i appreciate any help with this.Dear all ,
i need some help on the blow please:
environment brief:
i have VM cluster of 8 Servers sun blade 6240 , over this pool of servers there is Virtually 4 VDI 3.0/SRS4.1 servers and pool of windows XP virtual machines , and around 70 Sun Ray 270 DTUs.
all the VDI/SRS servers are Solaris 10 10/08 Generic_139556-08 i86pc i386 i86pc
i wanted to configure USB HP LaserJet 2300 Series PCL 6 printer connected to one of the DTUs ,
So i did the following :
on solaris
/usr/sbin/lpadmin -p hp14 /tmp/SUNWut/units/IEEE802.<DTU MAC Addres>/dev/printers/Hewlett-Packard00DP3087F
/usr/bin/enable hp14
/user/sbin/accept hp14
then to connect the printer to windows
/opt/SUWuttsc/bin/uttsc -r printer:hp14="HP LaserJet 2300 Serise PCL 6"
the problem is the following the printer gets defined in windows and windows sends the request to the Solaris Sunray server nicely but i cant print .
the problem in solaris i cant make solaris print any thing on the printer
in etc/lp/hp14 i found the follwoing the faultMessege file :
Failed to open the printer port. (No such device)
also when i try to add the printer from the Solaris print manger it adds it successfully but when i double click on it to show its properties it show the printer port is empty even thwo it exists in the lp/etc/hp14/configuration file and when try to change the printer type for example it give java null point exception.
i tried another printer diffrent model but it is still the same error message
i appreciate any help with this. -
Soalris can detect printer forworded form Sun Ray DTU
Dear all ,
i need some help on the blow please:
environment brief:
i have VM cluster of 8 Servers sun blade 6240 , over this pool of servers there is Virtually 4 VDI 3.0/SRS4.1 servers and pool of windows XP virtual machines , and around 70 Sun Ray 270 DTUs.
all the VDI/SRS servers are Solaris 10 10/08 Generic_139556-08 i86pc i386 i86pc
i wanted to configure USB HP LaserJet 2300 Series PCL 6 printer connected to one of the DTUs ,
So i did the following :
on solaris
/usr/sbin/lpadmin -p hp14 /tmp/SUNWut/units/IEEE802.<DTU MAC Addres>/dev/printers/Hewlett-Packard00DP3087F
/usr/bin/enable hp14
/user/sbin/accept hp14
then to connect the printer to windows
/opt/SUWuttsc/bin/uttsc -r printer:hp14="HP LaserJet 2300 Serise PCL 6"
the problem is the following the printer gets defined in windows and windows sends the request to the Solaris Sunray server nicely but i cant print .
the problem in solaris i cant make solaris print any thing on the printer
in etc/lp/hp14 i found the follwoing the faultMessege file :
Failed to open the printer port. (No such device)
also when i try to add the printer from the Solaris print manger it adds it successfully but when i double click on it to show its properties it show the printer port is empty even thwo it exists in the lp/etc/hp14/configuration file and when try to change the printer type for example it give java null point exception.
i tried another printer diffrent model but it is still the same error message
i appreciate any help with this.Dear all ,
i need some help on the blow please:
environment brief:
i have VM cluster of 8 Servers sun blade 6240 , over this pool of servers there is Virtually 4 VDI 3.0/SRS4.1 servers and pool of windows XP virtual machines , and around 70 Sun Ray 270 DTUs.
all the VDI/SRS servers are Solaris 10 10/08 Generic_139556-08 i86pc i386 i86pc
i wanted to configure USB HP LaserJet 2300 Series PCL 6 printer connected to one of the DTUs ,
So i did the following :
on solaris
/usr/sbin/lpadmin -p hp14 /tmp/SUNWut/units/IEEE802.<DTU MAC Addres>/dev/printers/Hewlett-Packard00DP3087F
/usr/bin/enable hp14
/user/sbin/accept hp14
then to connect the printer to windows
/opt/SUWuttsc/bin/uttsc -r printer:hp14="HP LaserJet 2300 Serise PCL 6"
the problem is the following the printer gets defined in windows and windows sends the request to the Solaris Sunray server nicely but i cant print .
the problem in solaris i cant make solaris print any thing on the printer
in etc/lp/hp14 i found the follwoing the faultMessege file :
Failed to open the printer port. (No such device)
also when i try to add the printer from the Solaris print manger it adds it successfully but when i double click on it to show its properties it show the printer port is empty even thwo it exists in the lp/etc/hp14/configuration file and when try to change the printer type for example it give java null point exception.
i tried another printer diffrent model but it is still the same error message
i appreciate any help with this. -
Printing from forms 5.0
Hello,
I need to print a form that contain:
Lines, logo and box around the text.
I don't know oracle report.
Can I do it with oracle forms 5.0?
Thanks
RAYes,
Create a button , in the when-button-pressed trigger write PRINT;. This will do the screen print. Else you can create a report using oracle reports. -
Error when sending report output to printer from Forms 10g
Hi,
I have a simple report that I am running from a form using run_report_object built-in. I can successfully send the report output to a file but when I send the report output to a printer my report is
terminated with report status of 'TERMINATED_WITH_ERROR'. I am using the default forms service and reports server that comes with the forms builder. How do I specify the reports server to user my default network printer ?Following is the code that runs my report.
Thanks,
Anna
PROCEDURE SEND_TO_PRINTER IS
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(50);
rep_server system_variables.reports_server%type;
alldone exception;
BEGIN
select reports_server
into rep_server
from system_variables;
if rep_server is null then
msg_alert('Error getting the reports server name', 'I', FALSE);
raise alldone;
end if;
:ctrl.run_report_errors := 'N';
repid := find_report_object('REP_OBJ1');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,rep_server);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
IF :ctrl.rg_print = 'P' THEN
--Send the output to printer.
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,PRINTER);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'dflt');
ELSIF :ctrl.rg_print = 'R' THEN
--Rich Text Format
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'rtf');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,:ctrl.filename);
END IF;
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
null;
ELSE
:ctrl.run_report_errors := 'Y';
msg_alert('Error when running report.' || rep_status, 'I', FALSE);
END IF;
EXCEPTION
when no_data_found then
msg_alert('Error getting the reports server name', 'I', FALSE);
when alldone then
null;
END;If you use Windows the user that runs the reports server is usually LocalSystem. Check this in the Windows Services panel.
LocalSystem has no printer access. To be able to print, you have to use a real domain user that has access to the printer. So, change the Log on properties in the Services panel. -
Hi,
I want to set printer that can print the number of page I want, ex: I have 100 page and I just want print 50 page. The report printed from form or runtime preview.
I don't know how I start that
ThanksHi...
See the URL
How i select printer in Forms9i
Really the the solution is "ridicula"
Forms not have a solution printer for Reports...
Regards
Hector Ulloa Ligarius -
I hoping to get some help here. I was wondering if ANYONE has had a need to print from Forms 9i to a SERIAL printer. I've tried to use Sun's Java Comm API with out any luck. I'm under the gun here to get this working and looking for some advice, or code. In forms 6i it was easy in client/server deployment, but now forms doesn't support client/server... just web... PLEASE HELP!
Don,
what kind of printing is it that you need. If it is the support for the print built-in in Forms, then this should work on the Web as did in client-server. I am saying should because Forms depends on the Browser environment and in te past printing in Netscape was broken. Would it be an option to print through Oracle Reports Services?
Actually we are still looking for some smart way to e.g. have a document created on the server and get this printed on a local printer on teh Web. With Forms6i we were proposing a utility called orarrp that we never fully supported and that proved to be errorprone (however it did the job somehow). We are still looking into this kind of support, but as you experienced it, its not an easy thing to do.
Fran -
Hi
I wonder if anyone can help. We're running Forms 10.1.2.30 against an Oracle 10.1.0.5.0 database using IE8 on Windows XP and Windows 7 clients.
We generate utility bills using Oracle Reports. These work fine at the moment as we print these reports directly to the printer from Reports. However, we now need to perform some post processing to the bills so I would like to produce the bill to a PDF, perform some post processing and then send the PDFs to the printer on batch.
Does anyone have any tips on how to send the PDFs to a printer on batch? I can host it out to Acrobat using the undocumented/unsupported /t option, but I would rather not rely on third party software (especially undocumented/unsupported features).
I've found a link to the Oracle Forms PJC/BEAN - PDF Project, but I cannot download the file. Something to do with the download site been seized by the FBI!
https://sites.google.com/site/jvrpdfproject/version-1-5-2-english
Thanks in advance.
NeilHi.
What mechanism do you use now to send a PDF to printer? Do you have each printer defined on middleware (application server) or you download pdf from application server an print it localy?
Best Regards
Gregor -
How can print a report from form 6i, when I press a button?
hi Friends,
How can print a report from form 6i, when I press a button?
When i press a button from Form 6i, the report should print through printer.
I have done it by using report parameter DESTYPE Printer but problem is that when I press a button printer dialogue box appear and then I give command Print to printer, I don’t want to show Printer dialogue box.
I want when I press a button form Forms 6i , printer will print my report directly.
Please send me the solution of this problem.
Best regards,
ShahzadHi
If You are using Client server application then to passing to Add all Print Parameter in the Host Command.
Means Print command in unix to Host(lp.............) and Other Parameter to file name of the report to print.
If You not Use Client Server Application the Also Passing a Host Command in Button-Pressed Event and Run. -
Printing a report from Forms 9i
Hi all
I have to print a report from Forms 9i, but I can't do it directly, I have to execute it with desname = preview and then I can print it.
I use the following sintax
RUN_REPORT_OBJECT_PROC(repid, v_server_name,'pdf',printer,v_path,v_report,'paramform=no'|| other parameter....,v_servlet)
where v_path is the name of the printer and run_report_object is a procedure to execute reports into forms
I try to set v_path with the printer name on my client and on the server.. but it doesn't find it...
Please help me,
Thanks in advance
AntonioHi all
have any one some information about ORARPP (Oracle Reports Remote Printing) ???
I should print directly, my desname should be a printer.... could any one help me???
Thanks in advance for your support...
Antonio -
I would like to print a report from forms without opening reports first. Is this possible and if so how?
From a command-line or .BAT file (assuming Windows and Developer6i) run the following (on a single line). It will go to your default printer.
<ORA_HOME>\bin\rwrun60 <report>.rdf userid=<user>/<pw>@<hoststring> destype=printer batch=yes
null
Maybe you are looking for
-
Can you suggest the report for PHEK breakdown
We are not able to do a good job of forecasting output because the forecast $ from MRP are at PHEK but output does not include all elements of PHEK (subcontracting, intercompany materials...). Is there a report that will give a breakdown of PHEK by
-
Workflow Substitution rules - How can I...
Hello Guru's I am relatively new @ workflow and I am implementing some workflow scenario's. Two of them: Release Purchase Order & Release Purchase Contract. Release Purchase Order: Workflow u201CWS2000075u201D -> TS20000166 -> Agent Determination Rul
-
Permission Level Question (Use Client Integration Features)
Hello All, I just had a general question on one of the options for permission levels in sharepoint. There's one called "Use Client Integration Features": Can anybody explain exactly what would be enabled if I enable this option? I know some basic th
-
Runtime Workbench Component Monitoring ALL Display: error on page
Dear all, when go in to Runtime Workbench >Component Monitoring > select ALL and press display ==> nothing coming and showing warning message at status bar that error on page. what to do? Best regards. dushyant,
-
MIBs required for "HP Smart Array P420/1GB FBWC"
Hi, One of our customer purchaged "HP Smart Array P420/1GB FBWC " to integrate that we required the following details. - MIB - Alarm Documentation - Alarm List - Features like AlarmUpload Is it sup