Skip a page and print on the back using PL/SQL?

Morning people,
Greetings from Toronto. I have a report that was written in PL/SQL (not Oracle or SQL reports * most) and its job very well. The totals are correct and I have two sets of totals. A total for the Department in particular and, finally, a total of the entire company. The user of course wish the two totals for each same Department if he or she chooses to print only service (using a setting). So, it's not a problem.

I just want to be the total final (company-wide) on the last page. Now, it is relatively simple in the reports of the Oracle, as well as SQL * more reports where I could probably use Skip. Y at - it a simple way to do or what I must count lines based on pagesize? So, for example, if the size of my page is 53 and my last record Department stops at line 35, I have to insert empty rows using UTF_FILE. Put_line in a FOR loop. This method would probably work ut I wonder if there's ways more interesting or easier to do?

This issue does not have to decide at this moment and I know its Monday. :-) Any help would be appreciated.

Concerning
REDA

Published by: Raj404261 on June 8, 2009 10:22

Try:

    -- etc --
    UTL_FILE.FFLUSH (id);
    UTL_FILE.PUT_LINE(id,CHR(12));
    -- Write totals:
    -- etc --

: p

Tags: Database

Similar Questions

  • drop and re-create the table using dynamic sql

    The following procedure should drop the table and re-create it. Currently, I get the dbms_output of the query. If I run the query only, it works well. but through the procedure, it does not work. Please help me

    PROCEdure emp_backup is
    sql_txt varchar2(10000);
    begin
         begin
         EXECUTE IMMEDIATE 'drop table emp_backup ' ;
         exception
         when others then
         null;
    
         sql_txt:= 'CREATE TABLE emp_backup as ' ||
                     'select * from emp  '||
                     'where dep_no=10 ' ;
         dbms_output.put_line(sql_txt);
         EXECUTE IMMEDIATE sql_txt;
    Exception
    when others then
    Null;
    
    End;

    Daniel wrote:
    I'm getting following error ORA-01031: insufficient privileges

    What is the command to grant privileges to this

    GRANT CREATE TABLE TO <>
    

    Detaching Frank, however, and echoing my previous comment, let them down and to re-create the tables makes no sense. It is logical to truncate a table if you test a load. If you build a data warehouse, it makes sense to delete and re-create a partition if you rerun a load for a particular date and that you have daily partitions. Deletion and recreation of a table in a stored procedure is not a reasonable way to test a system (nor is there a reasonable way to approach change control issues that will inevitably produce when you need to change the structure of a table).

    Justin

  • Print page order - front to the back not back forward

    My printer works well - the only problem I have is that it prints before backward, so I have to gather all the documents by hand.  What is the appropriate attitude of use then it displays back first?

    Thank you

    Hello

    Since iam a guy from windows not well abreast of the MAC, but the link below, should help change the print settings.

    http://support.HP.com/us-en/document/c01368574

    Also found this helpful.

    Under the orientation of the page and controls of the scale, select "paper handling".

    Now, in the popup "Page Order" select what you need: 'Reverse' or 'Normal '.

  • I replaced a HP with an Epson Stylus all-in-one printer and cannot get the printer to print more than one page when printing from the computer.

    Original title: new printer

    I replaced a HP with an Epson Stylus all-in-one printer and cannot get the printer to print more than one page when printing from the computer.  The printer works fine when printing from a laptop or ipad!

    Start by going here--> http://www.epson.com/cgi-bin/Store/support/supDetail.jsp?UseCookie=yes&oid=232591&prodoid=63099059&infoType=Downloads&platform=nodetect

    If the web page has not correctly detected your operating system, select it by using the drop-down list.  Rather than using the "Combo package" recommended but huge, expand the "Drivers" section and download driver printer v2.32 to a location that you will remember later.

    • Click on the ORB start and go into devices and printers.
    • Select (click) the icon of your Epson printer.
    • Once you have selected the printer, a button labeled "Print server properties" will appear in the toolbar.  Click on this button.
    • Click the "Drivers" tab on the print server properties dialog box.
    • Select the Epson printer in the list of installed printer drivers, and then click 'remove '.
    • In the context menu, select "Remove driver and driver package" and click OK
    • Click Yes, and then delete
    • Once the removal process is complete, restart the computer (probably not really necessary, but can't hurt)
    • Install the driver and the software using the file that you downloaded earlier

    At this point, your printer should work fine.  However, if you want the ability to print by emailing a file to your printer, you may need to install both 'Remote Printer Driver v1.65' in the category 'Pilot' and "v1.30 utility Configuration of printer Epson Connect" in the "Utilities" category

  • How to print on the back of the photo paper and it will dry.

    I need to print on the back of some pictures I have. I use a HP Officejet Pro 8500 with the help of Windows 7. I tried to print on these photos, but the ink not dry not.

    The book that I use is brilliant all the days of 4 x 6 photo paper.

    What should I change in the settings to get the ink dry?

    Hello

    most of the Photo book you will only print on one side.

    Unless the Photo paper is designed for double-sided printing, you will not be able to print on the back of the paper.

    There is no different parameters to one side, it only depends of the medium used.

    Kind regards

    Shlomi

  • Deskjet F4480: software update, now there is no option to see a preview of printing or print on the back

    Software update does not provide the option to display a preview of the document or to print on the back of the muliple pages.

    Try the complete features & software driver. (link)

  • LaserJet P1102: Installed drivers, showing that this page is printing but the printer usually take measures

    Hello

    my printer of seams run very well on old runing computer dell laptop win 7. Now I switched to OSX Yosemite, MacBook Air and I have problems with printing. I have instaled nessesery pilots, even been updated for them, but I can't find a way to print something.

    When I turn on my printer, conect to the laptop via the usb port, press to print the page, I can see that the document is on the queue and also the State of ptinting. Driver is actually showing me the wrong results, as printer prints pages and how much left, but the printer will take no action.

    I don't know what can be the problem, because my printer works. It may be a driver, but I think it's an official for this printer so I'm stuck.

    Best regards

    Milan Radojevic

    Hey @iznogud92,

    Welcome to the Forum from HP Support.

    I see that you are unable to print from the Mac using your HP LaserJet Pro P1102 printer.  I want to help you with this.  I have some suggestions that might help.

    Try the following steps:

    1. Uninstall the printer - click here for instructions.
    2. Fix permissions of the disc on your Mac - click here for instructions.
    3. Once you have finished running the utility above, restart your computer.
    4. Finally, click here to reinstall your printer.

    You are able to print from Mac now?  If not,

    You can add the printer manually and use a generic driver built-in.  Here's how:

    • Click on the black Apple
    • Click on System Preferences
    • Click Print & Fax, print & Scan or Printers & Scanners

    • Click the Plus (+)
    • If the Mac detects the connection of your printer (either via usb or wireless) click on 'Use' as shown below
    • Select the generic driver printer PCL

    Note that this installation method is not guaranteed, but it could serve as a basic solution.  Please let me know the result of your troubleshooting by responding to this post.  If I helped you to solve the problem, feel free to give me a virtual h.o.t. by clicking the "Thumbs Up" icon below and by clicking to accept this solution.

    Thanks for posting in the Forum from HP Support.  Have a great day!

  • I do my job to the computer on a MAC computer. I want to create a document using Pages and then convert the document to PDF and send a group email. I want to send the PDF using the pdf for each receiver icon must click the icon to open t

    I do my job to the computer on a MAC book PRO. I want to create a document using Pages and then convert the document to PDF and send a group email. I want to send the PDF using the pdf for each receiver icon must click the icon to open the document. My problem is the document does not show the icon, but rather the document is already open. I spoke with 2 Apple. 'Experts' care and can help me. Can someone tell me what to do?

    It's a question of how the recipients e-mail programs deal with attachments. Many e-mail programs will open all the files they can handle, including files jpg and PDF, by default, and if the recipient has not changed that there is nothing you can do about it. The only solution is to the compress first, then it will be delivered as an attachment, allowing the recipient to decompress and open it.

  • Dialog box confirm boxes are too wide for the page and disappear on the right side in the sites we develop. It's new. How to fix?

    In Windows and Mac confirmation dialog boxes are open now too wide. It extends on the right side of the page and therefore mask the user action buttons. The site has no horizontal scroll bar.

    When you resize the browser window, the dialog box has scaled to the correct size. As website developers, how can we prevent what happens?

    May be this bug:

    • bug 686469 - tab-modal alert can extend beyond the browser window

    (please do not comment in bug reports)

  • My iPhone 4 takes ages to load the battery is swelling and burst on the back of the phone

    My iPhone 4 takes ages to load the battery is swelling and burst on the back of the phone

    First of all, stop plugging him. Then, make an appointment at the Genius Bar at your local Apple Retail Store or contact Apple to arrange for your sent phone service.

  • in any case to allow drag and drop on the BACK window?

    How to enable drag and drop on the BACK window?
    THX

    Hi fs - ab,

    You can use 3rd party tools that replace or enhance the Explorer.

    FileMenu Tools - free - adds many functions
    http://www.LopeSoft.com/en/fmtools/info.html

    I hope this helps.

  • I received a message on my email that my live hotmail is about to be eliminated, and information is required and click on the back with my information. True or phishing?

    I received a message on my email that my live hotmail is about to be eliminated, and information is required and click on the back with my information.  True or phishing?

    Hello

    This is a phishing scam.

    Don

  • Cannot connect to the local file and print when the domain controller is not available because the network connection

    Hi all
    Having problems for local users, connection to a file and print server in one of my satellite offices.
    When my t1 connection is disrupted (problem of local carrier) my users when the connection is down to connect to the file room and print and always have access to their files and the local printer.
    The domain controller is off site in my main office.
    Environment:
    All local desktop clients are windows machines 7.
    Printing and local file is a windows 2003 server.
    DC is window 2008
    Note that we recently changed all 2003 to all domain controllers the PDC 2008, suspect that it may cause the problem, but just cannot know where it track.
    Any help or thoughts would be appreciated.
    Thank you

    Hello trj'hwma,

    Thank you for the question!

    It's discouraging to know that have problems you with the local file and print. As I understand well you cannot connect to the local file and print when the domain controller is not available because the network connection.

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums. You can follow the link to your question:

    Windows 7 IT Pro category

    Answer to us if you have problems with the local files and print or any other issue of Windows, and I'd be happy to help you again and try to correct the problem as soon as possible.

    Good day!

    Hope this information helps.

  • Read reads aloud just one page and stops; 'Read the document' does not work

    My Adobe Reader X software! worked very well in the function "Read Out Loud". I just downloaded Acrobat Reader DC and am disappointed by the Read Out Loud feature. It will read a single page and then stop; The "read at the end of the document" will not work. The player will stop after reading a page. Help!

    Hi Evona,

    I recommend to Open (ctrl + k) Reader preferences and uncheck 'Enable protected at Startup Mode' in the category '(enhanced) Protection' and restart the CD player. Let me know how it goes.

    Kind regards
    Rahul

  • I am trying to download CS2 to a new IMAC (no access to the old) I was on the download page and have all the instructions, but not able to actually download?

    I am trying to download CS2 to a new IMAC (no access to the old) I was on the download page and have all the instructions, but can't see a way to actually download?

    See the following...

    CS2: Error: unavailable activation server | CS2, Acrobat 7, hearing 3 -.

    l http://helpx.adobe.com/x-productkb/Policy-Pricing/Creative-Suite-2-activation-end-Life.htm

    https://helpx.Adobe.com/Creative-Suite/KB/CS2-product-downloads.html

Maybe you are looking for

  • Qosmio G40-10 lights when it's on battery

    OK, I just bought a G40-10 and in the last few days have been using it on sector, with a couple of the battery. Anyway, today I tried to turn on the pc without the connected socket. It does, which is strange, I know, that it has been plugged in all d

  • My system can be updated for the GeForce 9 Series cards?

    Original title: my computer is: Pentium 4 2.66 Ghz, 512 MB of SDRAM, NVIDIA GEFORCE 4 MX 4000 DDS. Now, I would like to know if I can upgrade the card graphic like the GEFORCE 9 series or not.

  • hp5610: unable to print from the internet regardless of search engine

    I'm unable to print from the internet regardless of internet search engine. I ran the impression scanning hp doctor who shows no match port, I don't know what that means. What I've tried is; power off printer, internet modem and usb ports restarted,

  • user profile service sign on refused

    When I try to sign on everything I get now, it is a message OF THE PROFILE SERVICE service USER has NOT THE CONNECTION, user profile could not be loaded, I updated windows Visa yesterday with the automatic update, I have three accounts on computor an

  • How to delete songs to mp3 using windows mediam player

    How to remove data on mp3 using vista - Media Player. There should be a way