Print filename in PL/SQL
Hi,
I'd like to do this:
PL/SQL command in PROCEDURE ..
spool emp.lst
select e_id,ename,sal from my_tab;
and then print automatically to network printer the result in emp.lst (on windows).
How to do it, please.
Linda.
I'm not sure how or even if you can print from PL/SQL, but you could create a command file to run your package/procedure and then use the Windows PRINT command to print to the default printer or specify the device you want to print to as follows
sqlplus connect <username>/<password>@<host_string> @<sql_file>
print <fully qualified path>\<spool_file>
Similar Messages
-
How to print pdf file in SQL Server Reporting services report using command prompt?
Is there a way to automatically print a SQL Server Reporting services report on command prompt? For eg: We can save a pdf file using rs.exe utility. I want to print a pdf using rs.exe utility. Is it possible? I don't want to install any 3rd party software.
Thanks Simon for replying to my question.
In oracle form, there is oracle command to print the report from command prompt with the help of rwrun.exe
e.g: rwrun.exe REPORT="D:\Test\REP_25\MLA.REP" DESNAME="testprinter" DESTYPE="PRINTER" P_FORMNAME="MLA.FMX" P_SPRACHE="E" P_SPRACHE_NR2="1" P_WHERE_BEDINGUNG="order by land_nr" USERID="test/test.world" PSV_NAME="PSV_DEMO" PSV_JOB_ID="PS$9583" RECURSIVE_LOAD="NO"
BATCH="YES" NONBLOCKSQL="NO" ARRAYSIZE="1" PARAMFORM="NO" ERRFILE="c:\temp\psv16.tmp"<
and to save the report we just need to change DESNAME="c:\temp\OC_100001349.pdf" DESTYPE="FILE" in above command instead of DESNAME="testprinter" DESTYPE="PRINTER".
DESNAME and DESTYPE are the input parameters of the respective report.
In SSRS, we can run the file from the command prompt and save it.
rs -i "C:\Users\pujarswa\Documents\reports\new\LoadReport.rss" -s ww2004760:80/ReportServer_MSSQL -v fileName="C:\Users\pujarswa\Desktop\TipsReportLoad.pdf"
-v reportPath="/TipsReport/LoadListTabular" -t -v format="PDF" -v LandNr=4 -u ap\swati -p test@# -e Exec2005
But we cannot use same command for printing as you said we need to create another script for printing files.
I have gone through the links but I dont want to use Adobe Acrobat Reader exe for printing because client it may not have Adobe Acrobat Reader on their machine.
Also I want to pass a input parameter as type="Printer" to my report which will print directly for me and same I can acheive in command prompt passing type="Printer" fileName="C:\Users\pujarswa\Desktop\TipsReportLoad.pdf" -
Designer6i: About Page template filename Web PL/SQL Applications
how can change the About Page template filename Web PL/SQL Applications
Thank!!!
my e-mail is: [email protected]Hi,
Have you upgraded Apex?
I assume you use XE EPG.
Have you grant execute privilege on procedure to DAD user ANONYMOUS?
GRANT EXECUTE ON WOLF_22.HELLO_WORLD TO ANONYMOUS;Have you changed wwv_flow_epg_include_mod_local that it allow execute WOLF_22.HELLO_WORLD?
And write schema.procedure at upper case to function.
If you have not upgraded Apex, run as SYS or SYSTEM
CREATE OR REPLACE function FLOWS_020100.wwv_flow_epg_include_mod_local(
procedure_name in varchar2)
return boolean
is
begin
-- Administrator note: the procedure_name input parameter may be in the format:
-- procedure
-- schema.procedure
-- package.procedure
-- schema.package.procedure
-- If the expected input parameter is a procedure name only, the IN list code shown below
-- can be modified to itemize the expected procedure names. Otherwise you must parse the
-- procedure_name parameter and replace the simple code below with code that will evaluate
-- all of the cases listed above.
if upper(procedure_name) in (
'WOLF_22.HELLO_WORLD'
) then
return TRUE;
else
return FALSE;
end if;
end wwv_flow_epg_include_mod_local;
/Regards,
Jari -
File- Print not working from SQL Developer 1.2.1 Build MAIN-32.13
File->Print not working from SQL Developer 1.2.1 Build MAIN-32.13.
I downloaded sqldeveloper-1.2.1.3213.ZIP and extract to a local directory. From the extracted directory I ran ..\sqldeveloper\sqldeveloper.exe from Windows XP sp2. The program itself seems to run just fine but File-Print doesn't do anything. In Help-About, Java Platform is reported as 1.5.0_06 and Oracle IDE is 1.2.1.3213. I'm not sure where to look for what is causing the problem.
ThanksI hadn't tried CTRL-P before but I did today. On the first attempt, I saw a small jump in the memory usage for sqldeveloper.exe as reported in Windows Task Manager. Otherwise, there was no change. A second CTRL-P in the same session produced a further bump but subsequent attempts in the same session produced no further change in CPU or Memory Usage.
Using Task Manager to monitor this further, I tried File->Print again and saw that sqldeveloper would periodically climb to 1 or 2 percent CPU and consume a little more memory. After a minute or so, though, all activity stops again.
I do not get a print dialog box from SQLDeveloper using either CTRL-P or File->Print -
Reg : print spaces in pl/sql block
Hi friends,
How can i print spaces in pl/sql block .
Eg :
1
'onespace '1
'2 spaces'1
'3spaces'1
etc..
Thanks in Advance,
Chinnu.
Edited by: chinnu on Jul 8, 2009 10:55 PM
Edited by: chinnu on Jul 8, 2009 10:56 PMCan you please elaborate more on your requirement?
What data is in your tables? What outcome do you expect?
Use around your code to preserve formatting..
Edited by: Alex Nuijten on Jul 9, 2009 8:00 AM -
How to create 2 print buttons on a sql report ?
hello,
i work on apex 4 and database 11GR2, i configure bipublisher for advanced printing.
On a sql report i want to have an excel Button and a Pdf button with redirect URL.
I don't know how to specify in the URL the format output.
I see in the help
"use the output format derived from item option and include the item name and value in your Print URL."
but i look for an example of URL.
Best regards
Jean marcSo, you have to specify a hidden item which contains the value, then specify in print attributes the item name (mine is P5000_TYPE)
Then you would have button redirect URLs of:
javascript:redirect('f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:FLOW_XMLP_OUTPUT_R1483125430108678:::P5000_TYPE:PDF') ;and
javascript:redirect('f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:FLOW_XMLP_OUTPUT_R1483125430108678:::P5000_TYPE:XLS')
to print in pdf and xls respectively.
Ta,
Trent
Edited by: trent on Dec 10, 2010 11:29 PM -
I keep getting message in cs3 "could not print (filename) due to program error!" why?
Not a clue, since you provide no information whatsoever.
Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
http://forums.adobe.com/thread/419981?tstart=0
Thanks! -
Print a message from SQL server to notepad
Hi ,
Is it possible to print a message in SQL server and that message should be saved in a .txt file (in local file system)
Thanks in advance!!!I don't think there is a straight forward approach to solve your problem but you can try Li's suggestion or the one which is given below
The SQL file must have print statement.
Master..xp_cmdshell 'sqlcmd -S servername -i f:\dynamic.sql -E>>f:\backupoutput.sql'
--Prashanth -
Print a report from sql*plus.
Regards all
Let me know whether it is possible to print a hard report rom sql*plus and how.
waitingLet me know whether it is possible to print a hard report rom sql*plus Yes. SPOOL is a command to get SQL*Plus screen results to disk real-time.
and how.A "report" is such a generic term, that you will have to get started with at least some reading :)
http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a90842/toc.htm
(search for: "How Can I Learn SQL*Plus")
You may also address specific questions about the SQL*Plus product (that are not really Database SQL and/or PL/SQL related) via the [Technologies>Tools>iSQL*Plus] forum rather than here.
waiting That's up to you! Dig in!
Michael O'Neill
Publisher of the PigiWiki
clever-idea.com -
Windows 8 and IE 10 crashed after printing from Report Manager SQL server 2008 / 2008 R2
We have a problem with Windows 8 in combination with IE 10 and printing reports.
When we print a report from the Report Manager 'http://<servername>/reports' the browser crashed after a print.
Sometimes before printing and somthimes after printing or when you close the browser.
Al other operating systems like XP, Vista, Windows 7 with different IE versions have no problem.
I tried the report manager from SQL Server 2008 and SQL Server 2008 R2.
The same error occured when printing from our Internet application and the reportviewer.
(ASP application written in Visual Studio 2010 and reportviewer version 10.)
The event log shows two different messages.
Faulting application name: IEXPLORE.EXE, version: 10.0.9200.16453, time stamp: 0x509b0dfb
Faulting module name: ntdll.dll, version: 6.2.9200.16420, time stamp: 0x505aaa82
Exception code: 0xc0000005
Fault offset: 0x00061252
Faulting process id: 0x780
Faulting application start time: 0x01ce03a294f7d1d5
Faulting application path: C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: d4a72486-6f96-11e2-be6e-10604b6a74ed
Faulting package full name:
Faulting package-relative application ID:
Faulting application name: IEXPLORE.EXE, version: 10.0.9200.16384, time stamp: 0x50107ee0
Faulting module name: rsclientprint.dll, version: 2009.100.1600.1, time stamp: 0x4bb67a74
Exception code: 0xc0000005
Fault offset: 0x00017e7a
Faulting process id: 0x9c8
Faulting application start time: 0x01ce02f35c70ab85
Faulting application path: C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE
Faulting module path: C:\Windows\Downloaded Program Files\rsclientprint.dll
Report Id: a13fccc6-6ee6-11e2-be67-10604b6a74ed
Faulting package full name:
Faulting package-relative application ID:
Is there a fix for this problem?Dear Mike Yin,
Thank you for your response. Your answer was the
reason for finding the real problem.
In december 2010 a SQL Server 2008 fix was the cause. I don't remember exactly the problem, but we changed the RSCLIENTPrint-x86.cab file. But instead to use the version of SQL Server 2008 we used the version of SQL Server 2008
R2 (10.50.1600.1). This worked until
Windows 8 (Internet Explorer crashed when printing).
We fixed this problem by using the RSClientPrint-x86.cab file from SQL server 2008 (10.0.5500.0).
But we now get the known problem that the
activeX always must be installed again.
The reason for this is that the version of
the SQL Server (10.0.5512.0)
and the rsclientprint.dll (10.0.5500.0) is different. SQL Server is newer (caused
by a security patch (KB2716436)).
Do you know when this problem will be resolved
by Microsoft?
Work arrounds
I've also tried to install the RSClientprint.dll
every time automatically (without user interaction).
But this will be delayed the printing for more
than 4 seconds. This
is very annoying.
Another workaround is to generate a PDF and print the PDF. But this is also
a lot slower.
Uninstall the security patch. but I don't know the security risk. -
Print NOT working in SQL Server 2008
Hi Experts,
I am trying to debug my stored procedure with print statements but I dont see any print statements at the end of the execution of the code.
I even tried for the simplest code as below -
ALTER PROCEDURE [dbo].[test]
AS
BEGIN
print 'abdbd'
END
But still no luck. Can anybody let me know the issue with it?
Thanks a ton!
PrabhakarSo where are you looking?
And you did execute the procedure, didn't you?
I may help if you post some screenshots.
Erland Sommarskog, SQL Server MVP, [email protected] -
Is there a way to print a jpg picture using any of the quicktime products (preferably the pictureviewer) with the filename of the picture somewhere on the page?
Actually yeah i just tested on CS3 and its only the filename. Must be an oversite in CS4.
I thought about the Contact sheet thing as well but CS4 for some crazy reason dropped Contact Sheet 2. Ill have to reload it from a CS3 install.
Thanks for the reply!
J -
How to print filename as header/footer for lots of PDF?
I need to print a lot of PDF files that came from suppliers in order to file paper copies. It would help immensely if I can print (whether from Preview, Adobe or even something I must buy) in such a manner that the filename always appears on the printed copy. We're talking about a lever arch file, so going through them individually to create a new version of the PDF with the actual filename appearing in the PDF image is not really an option.
I'm a little surprised that there isn't such an option in Preview (or Adobe for that matter).
Would be much appreciated, thanksHi,
From what I understand of SAPScript, it's next to impossible to dynamically draw lines in the MAIN window. I guess this also applies to grey backgrounds since you'd need to define the exact position of a box.
Better use Smartforms or Adobe forms.
If you find out how to achieve this, I'm interested to know how you do this :-)
Good luck!
Best regards,
Zhou -
Designer6i: How change About Page template filename Web PL/SQL
Hi
how i can change the About Page template filename on Web Pl/Sql
Thank!!Hi,
Have you upgraded Apex?
I assume you use XE EPG.
Have you grant execute privilege on procedure to DAD user ANONYMOUS?
GRANT EXECUTE ON WOLF_22.HELLO_WORLD TO ANONYMOUS;Have you changed wwv_flow_epg_include_mod_local that it allow execute WOLF_22.HELLO_WORLD?
And write schema.procedure at upper case to function.
If you have not upgraded Apex, run as SYS or SYSTEM
CREATE OR REPLACE function FLOWS_020100.wwv_flow_epg_include_mod_local(
procedure_name in varchar2)
return boolean
is
begin
-- Administrator note: the procedure_name input parameter may be in the format:
-- procedure
-- schema.procedure
-- package.procedure
-- schema.package.procedure
-- If the expected input parameter is a procedure name only, the IN list code shown below
-- can be modified to itemize the expected procedure names. Otherwise you must parse the
-- procedure_name parameter and replace the simple code below with code that will evaluate
-- all of the cases listed above.
if upper(procedure_name) in (
'WOLF_22.HELLO_WORLD'
) then
return TRUE;
else
return FALSE;
end if;
end wwv_flow_epg_include_mod_local;
/Regards,
Jari -
Acrobat pdf export (printing) filename change
In exporting (printing) pdfs from my CAD programs (AutoCAD / Bricscad), how can I prevent acrobat from adding the layout name to the filename i.e. "Model"? If I am in a drawing with the filename 123456.dwg, printing thru acrobat results in 123456 Model.pdf- what I desire is 123456.pdf
I agree, particularly if you are using an "export" feature. If you use Acrobat then you would either use the PDF Maker option if available (typically called create PDF now) or would actually print to the Adobe PDF printer. I suspect you are using a feature of AutoCAD, but am not a user of that package to confirm this.
Maybe you are looking for
-
Problem importing Adobe Connect recording into Captivate 6.0
Hello, Not having found something about this via search, I'm asking the question. I am in tech support for University of Missouri-Extension and we use Connect and create many recordings for later share. I am able to import these FLV recordings into
-
Removing RAID card from MacPro (2006)
I have a Mac Pro 1,1 (2006) which had been used as a server. It has an Apple RAID card installed (the first version, blue one, part number A1247). I am now using this computer at home. The RAID card has failed. I'd like to remove it, reformat the dri
-
Problème d'acquisition des données pendant un temps fixé par l'utilisateur
Bonjour la communauté Labview, j'ai un problème d'acqusition et d'écrire des données dans un fichier .lvm Comme vous le montre le fichier pdf joint, en mode manuel toute se passe bien. Lorsque j'appuie sur le bouton acquisition, un nombre de données
-
UWCMail Channel Does Not Open Message in Communications Express
Hello, Our Communications Express Mail channel is not working as expected. When the user selects a mail message within the channel, a Communications Express window is opened, but the user's entire Inbox is shown, rather than the message they selected
-
Reg - J2sdk 1.4.2._09 64bit software
Dear Friends, I have plan to Install ECC 6.0 64 Bit OS - windows 2008 server (64 Bit) SAP version - ECC 6.0 Latest one (64 Bit) DB - MS SQL Server 2005. Now i want 64 bit J2sdk 1.4.2_09 to j2sdk 1.4.2._17. where can i get 64 bit j2sdk software. Rega