Please suggest solution to this printing problem

Hi,
I did a small project using forms and reports 6i. Now i prepared a repor that will calucalate the sum(expenditure)per report level. Now the problem is i want to print the sum which is in number form , in words. That is if the sum is 50000 then i want to print "fifty thousand". For this conversion from number to figure i wrote a small programme , which successfully compiled and created a function.
Now I want to create a field in the report and in which I want to call this plsql function and perform the number conversion of sum(expenditure)per report field. Please describe in detail how to make reference between these two fields i.e sum(expenditure)per report and field in which I want to run plsql code and thereby converting the sum into figures.
Thanks in advance
Prasanth a.s.

hi,
use this code
it works !!
regards
sandy
CREATE OR REPLACE FUNCTION NUMBER_CONVERSION(NUM NUMBER) RETURN VARCHAR2
IS
A VARCHAR2(1000);
B VARCHAR2(20);
X NUMBER;
Y NUMBER := 1;
Z NUMBER;
LSIGN NUMBER;
NO NUMBER;
BEGIN
X:= INSTR(NUM, '.');
LSIGN := SIGN(NUM);
NO := ABS(NUM);     
IF X = 0 THEN
SELECT      TO_CHAR(TO_DATE(NO, 'J'), 'JSP') INTO A FROM DUAL;
ELSE
SELECT      to_char(to_date(SUBSTR(NO, 1,
          NVL(INSTR(NO, '.')-1, LENGTH(NO))),
               'J'), 'JSP') INTO A FROM DUAL;
SELECT     LENGTH(SUBSTR(NO, INSTR(NO, '.')+1)) INTO Z FROM DUAL;
A := A ||' POINT ';
WHILE Y< Z+1 LOOP
     SELECT TO_CHAR(TO_DATE(SUBSTR(NO, (INSTR(NO, '.')+Y), 1), 'J'), 'JSP')
     INTO B FROM DUAL;
          A := A || B ||' ';
          y :=y+1;
END LOOP;
END IF;

Similar Messages

  • Please suggest solution to this report printing problem

    Hi,
    I did a small project using forms and reports 6i. Now i prepared a repor that will calucalate the sum(expenditure)per report level. Now the problem is i want to print the sum which is in number form , in words. That is if the sum is 50000 then i want to print "fifty thousand". For this conversion from number to figure i wrote a small programme , which successfully compiled and created a function.
    Now I want to create a field in the report and in which I want to call this plsql function and perform the number conversion of sum(expenditure)per report field. Please describe in detail how to make reference between these two fields i.e sum(expenditure)per report and field in which I want to run plsql code and thereby converting the sum into figures.
    Thanks in advance
    Prasanth a.s.

    Create a formula column that calls your procedure to get the value in words. Create a field based on this formula column.

  • I need a solution of this complicated problem to finalize my final project

    Introduction
    This project revolves around an important text processing task, text compression. In particular, you will be required to encode a sequence of words read from a source file into binary strings (using only the characters 0 and 1). It is important to note that text compression makes it possible to minimize the time needed to transmit text over a low-bandwidth channel, such as infrared connection. Moreover, text compression is helpful in storing large documents more efficiently. The coding scheme explored in this project is the Huffman Coding Scheme. While standard encoding schemes, such as Unicode and ASCII, use fixed-length binary strings to encode characters, Huffman coding assigns variable-length codes to characters. The length of a Huffman code depends on the relative frequency of its associated character. Specifically, Huffman coding capitalizes on the fact that some characters are used more frequently than others to use short codewords when encoding high-frequency characters and long codewords to encode low-frequency characters. Huffman coding saves space over state of the art fixed-length encoding and is therefore at the heart of file compression techniques in common use today. Figure 1 shows the relative frequencies of the letters of the alphabet as they appear in a representative sample of English documents.
    Letter     Frequency     Letter     Frequency
    A     77     N     67
    B     17     O     67
    C     32     P     20
    D     42     Q     5
    E     120     R     59
    F     24     S     67
    G     17     T     85
    H     50     U     37
    I     76     V     12
    J     4     W     22
    K     7     X     4
    L     42     Y     22
    M     24     Z     2
    Figure 1. Relative frequencies for the 26 letters of the alphabet.
    Huffman coding and decoding
    Huffman’s algorithm for producing optimal variable-length codes is based on the construction of a binary tree T that represents the code. In other words, the Huffman code for each character is derived from a full binary tree known as the Huffman coding tree, or simply the Huffman tree. Each edge in the Huffman tree represents a bit in a codeword, with each edge connecting a node with its left child representing a “0” and each edge connecting a node with its right child representing a “1”. Each external node in the tree is associated with a specific character, and the Huffman code for a character is defined by the sequence of bits in the path from the root to the leaf corresponding to that character. Given codes for the characters, it is a simple matter to use these codes to encode a text message. You will have simply to replace each letter in the string with its binary code (a lookup table can be used for this purpose).
    In this project, you are not going to use the table given in Figure 1 to determine the frequency of occurrence per character. Instead, you will derive the frequency corresponding to a character by counting the number of times that character appears in an input file. For example, if the input file contains the following line of text “a fast runner need never be afraid of the dark”, then the frequencies listed in the table given in Figure 2 should be used per character:
    Character          a     b     d     e     f     H     i     k     n     O     r     s     t     u     v
    Frequency     9     5     1     3     7     3     1     1     1     4     1     5     1     2     1     1
    Figure 2. The frequency of each character of the String X.
    Based on the frequencies shown in Figure 2, the Huffman tree depicted in Figure 3 can be constructed:
    Figure 3. Huffman tree for String X.
    The code for a character is thus obtained by tracing the path from the root of the Huffman tree to the external node where that character is stored, and associating a left edge with 0 and a right edge with 1. In the context of the considered example for instance, the code for “a” is 010, and the code for “f” is 1100.
    Once the Huffman tree is constructed and the message obtained from the input file has been encoded, decoding the message is done by looking at the bits in the coded string from left to right until all characters are decoded. This can be done by using the Huffman tree in a reverse process from that used to generate the codes. Decoding the bit string begins at the root of the tree. Branches are taken depending on the bit value – left for ‘0’ and right for ‘1’ – until reaching a leaf node. This leaf contains the first character in the message. The next bit in the code is then processed from the root again to start the next character. The process is repeated until all the remaining characters are decoded. For example, to decode the string “0101100” in the case of the example under study, you begin at the root of the tree and take a left branch for the first bit which is ‘0’. Since the next bit is a ‘1’, you take a right branch. Then, you take a left branch (for the third bit ‘1’), arriving at the leaf node corresponding to the letter a. Thus, the first letter of the coded word is a. You then begin again at the root of the tree to process the fourth bit, which is a ‘1’. Taking 2 right branches then two left branches, you reach the leaf node corresponding to the letter f.
    Problem statement
    You are required to implement the Huffman coding/decoding algorithms. After you complete the implementation of the coding/decoding processes, you are asked to use the resulting Java code to:
    1.     Read through a source file called “in1.dat” that contains the following paragraph:
    “the Huffman coding algorithm views each of the d distinct characters of the string X as being in separate Huffman trees initially with each tree composed of a single leaf node these separate trees will eventually be joined into a single Huffman tree in each round the algorithm takes the two binary trees with the smallest frequencies and merges them into a single binary tree it repeats this process until only one tree is left.”
    2.     Determine the actual frequencies for all the letters in the file.
    3.     Use the frequencies from the previous step to create a Huffman coding tree before you assign codes to individual letters. Use the LinkedBinaryTree class that we developed in class to realize your Huffman coding trees.
    4.     Produce an encoded version of the input file “in1.dat” and then store it in an output file called “out.dat”.
    5.     Finally, the decoding algorithm will come into play to decipher the codes contained in “out.dat”. The resulting decoded message should be written to an output file called “in2.dat”. If nothing goes wrong, the text stored in “in1.dat” and the one in “in2.dat” must match up correctly.

    jschell wrote:
    I need a solution of this complicated problem to finalize my final project The solution:
    1. Write code
    2. Test code3. If test fails, debug code, then go to step 2.

  • PDF file is not opening in ipad mini,pdf file does not show any containts in file ,tried all options , please suggest solution

    Hi Friends
    i am not able to read some of the important  pdf from ipad mini,pdf is opening but not showing any containts,i tried all suggestion priviously given in discussion forum (reinstallation,formatting,system upgrade,mailing pdf document  )
    can any one kindly suggest solution for above problem ?

    Try and install free Adobe Reader to save and read your PDF files.
    https://itunes.apple.com/sg/app/adobe-reader/id469337564?mt=8

  • Please suggest logic to this

    create table testlog(lnum number, col1 number, col2 number, col3 number)
    insert into testlog values (1234,1,1,1)
    insert into testlog values (1233,2,8,1)
    insert into testlog values (5233,2,8,4)
    I am about to add a new column to this table, ctr, which should keep track of number of times a lnum is modified...
    alter table testlog add (ctr number)
    can anyone please suggest a way to do this ? I am sure I have to go for a before update trigger, but how do I keep track of the lnum ?
    lnum is the primary key and so is unique
    should I create a procedure and call that in a trigger ?
    CREATE OR REPLACE TRIGGER trig_testlog
    BEFORE
    UPDATE
    ON testlog
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    BEGIN
    IF UPDATING ('col1')
    THEN
    -- call a procedure which takes lnum
    as input parameter and in that, we have
    logic to increment ctr column to 1
    each time the loan is modified. But how
    to keep track of ctr for each lnum ? The table
    has lakhs of rows.
    END IF;
    IF UPDATING ('col2')
    THEN
    -- call a procedure which takes lnum
    as input parameter and in that, we have
    logic to increment ctr column to 1
    each time the loan is modified. But how
    to keep track of ctr for each lnum ? The table
    has lakhs of rows.
    END IF;
    IF UPDATING ('col2')
    THEN
    -- call a procedure which takes lnum
    as input parameter and in that, we have
    logic to increment ctr column to 1
    each time the loan is modified. But how
    to keep track of ctr for each lnum ? The table
    has lakhs of rows.
    END IF;
    END;
    /

    Hi,
    Is this you require??
    After creating table and inserting values I altered the column as you posted.
    Then,
    SQL>  select * from testlog;
          LNUM       COL1       COL2       COL3        CTR
          1234          1          1          1
          1233          2          8          1
          5233          2          8          4
    SQL> create or replace trigger trig_testlog BEFORE UPDATE ON testlog
      2  REFERENCING NEW AS NEW OLD AS OLD
      3  FOR EACH ROW
      4  BEGIN
      5  If :new.ctr is null then
      6   :new.ctr:=1;
      7  else
      8   :new.ctr:=:old.ctr+1;
      9  end if;
    10  End;
    11  /
    Trigger created.
    SQL> update testlog
      2  set col2=9
      3  where lnum=1234;
    1 row updated.
    SQL> select * from testlog;
          LNUM       COL1       COL2       COL3        CTR
          1234          1          9          1          1
          1233          2          8          1
          5233          2          8          4
    SQL> update testlog
      2  set col3=9
      3  where lnum=1234;
    1 row updated.
    SQL> select * from testlog;
          LNUM       COL1       COL2       COL3        CTR
          1234          1          9          9          2
          1233          2          8          1
          5233          2          8          4
    SQL>
    SQL> update testlog
      2  set col1=19
      3  where lnum=1233;
    1 row updated.
    SQL> select * from testlog;
          LNUM       COL1       COL2       COL3        CTR
          1234          1          9          9          2
          1233         19          8          1          1
          5233          2          8          4Let us know if I failed to understand your requirement.
    Twinkle

  • Please find solution for this problem ...pl/sql table problem

    Hi
    I am using forms 6i. Now i am having a form to insert purpose. which contain 70 fields to enter. that is there are 10 screens contain 10 fields each. Each screen contains two buttons 'next' and 'previousscreen'. Now what my problem is after entering the 20 fields and i am entering 27th field in 3rd screen i noticed that i did a mistake in 2nd field value which is in 2nd screen. when i moved from third scrren to first screen by using pushbutton previous screen. all data in second and third screen has gone. For this i used a pl/sql table and put the code in 'nextscreen' button. the code is
    declare
    type emptabtype is table of :emp%rowtype
    index by binary_integer;
    emptab emptabtype;
    begin
    insert into emptab values(:emp.eno,:emp.ename.....so on);
    commit;
    end;
    The above is the approach i used. but not successful. Is the approach followed by me is correct (I strongly believe that some mistake is there). If not, pls tell me what to do for my problem. What my ultimate requirement is i should not loss the data entered in the fields even when i modify any data on any screen.
    I hope you people understand my problem
    Thanks in Advance,
    bigginner in forms
    prasanth a.s.

    Hi there,
    I have a form which has over 150 fields (from 4 tables). I have used a tab-canvas form to handle all the input - 2 screens for the fields from the first table and 1 screen each for the remaining 3 tables. I can navigate between the tabs without trouble. When everything is done, the contents of the screens are saved to the database via a menu item. Most of the fields are database items.
    My point is that Oracle Form has no problems in handling
    such processing and I am only using its normal default capabilities.
    What type of canvas are you using? There should be no reason to use buttons to navigate betweeen screens if you are using a tab-canvas form. You should not have to use PL/SQL table to handle the data if the fields are normal database columns.
    Regards,
    John

  • NO SOLUTIONS FOR THIS FREQUENT PROBLEM!!!!

    Re: Centris 610
    Re: Centris 610
    Mounting failedwhen i try to download command and conquer generals demo i got a failed download becasue of "mountingfailed" Any ideas -Josh
    Author:
    Josh Galindo
    Date:
    Dec 11, 2005
    Location:
    iBook
    Bookmarks:
    0
    Likes:
    0
    Latest activity:
    Dec 11, 2005
    Tags:
    ibook_g4
    Re: downloading adobe flashplayer, mounting failedokay - PPC G4
    Author:
    ohlisa
    Date:
    May 17, 2011
    Location:
    Safari
    Bookmarks:
    0
    Likes:
    0
    Latest activity:
    May 17, 2011
    Downloads - Mounting FailedMounting Failed - Reason: Too many Processes I tried to download Itunes, and that didn't work. I also tried to download some Icons and msn Messanger. The same thing happened. I would Really appreciate some help.
    Author:
    ambi
    Date:
    Mar 4, 2006
    Location:
    Mac OS X v10.3 and earlier
    Bookmarks:
    0
    Likes:
    0
    Latest activity:
    Mar 4, 2006
    downloads keep saying "mounting failed"every time i download anything it end up at mounting failed can some one please help me!!
    Author:
    bri22
    Date:
    Sep 17, 2009
    Location:
    iMac (PPC)
    Bookmarks:
    0
    Likes:
    0
    Latest activity:
    Sep 17, 2009
    Tags:
    using_imacppc imac_g5
    Mounting FailedEverytime i try to download something from Safari 3.1.1 on my ibook, such as itunes, shockwave or adobe reader it always says mounting failed. Whats going on? How do i fix this?
    Author:
    David Russell2
    Date:
    Jun 3, 2008
    Location:
    Safari
    Bookmarks:
    0
    Likes:
    0
    Latest activity:
    Jun 3, 2008
    Tags:
    safari_windows mac
    Mounting Failed?I have iMovie '08 and wanted to download iMovie HD '06 when I did and it completed it said Mountingfailed...What does this mean and is there a way to fix it? ~yin
    Author:
    Yin_Yo
    Date:
    Mar 12, 2008
    Location:
    iMovie
    Bookmarks:
    0
    Likes:
    0
    Latest activity:
    Mar 12, 2008
    Tags:
    imoviehd6
    Printer driver download - mounting failedI downloaded the printer driver for my HP deskjet 6980 and when it finished downloading it said thatmounting failed. Why would this be?
    Author:
    Kat2007
    Date:
    Oct 21, 2008
    Location:
    Mac OS X v10.4 Tiger
    Bookmarks:
    0
    Likes:
    0
    Latest activity:
    Oct 21, 2008
    Tags:
    mac_os_x_v.10.4
    dmg's not mountingAnytime I try to open a dmg it says the mounting has failed due to a "broken pipe." I don't really have any idea of how to go about fixing this. Suggestions?
    Author:
    RamosL
    Date:
    Mar 19, 2007
    Location:
    Mac OS X v10.4 Tiger
    Bookmarks:
    0
    Likes:
    0
    Latest activity:
    Mar 19, 2007
    Tags:
    mac_os_x_v.10.4
    mounting
    Author:
    q-ban
    Date:
    Oct 2, 2008
    Location:
    Final Cut Express HD
    Bookmarks:
    0
    Likes:
    0
    Latest activity:
    Oct 2, 2008
    Re: Mounting failedNo idea why files are not mounting on your desktop. Hmm, have you tried all the various fixes?
    Author:
    ds store
    Date:
    Jun 4, 2006
    Location:
    Mac OS X v10.4 Tiger
    Bookmarks:
    0
    Likes:
    0
    Latest activity:
    Jun 4, 2006
    Tags:
    installation_setup_macosx_v10.4 mac_os_x_v.10.4
    Mounting failed on downloadsWhen ever I try to download things on this iBook it won't because it says mounting failed. I went to the finder and got where I had downloaded Firefox and clicked file and then open with and it popped up there DiskMounting (default) on the other forourms I have read it told me to do all those steps and set to mount in the disk mounting part. Please help Message was edited by: jmeach22
    Author:
    jmeach22
    Date:
    Feb 9, 2011
    Location:
    iBook
    Bookmarks:
    0
    Likes:
    0
    Latest activity:
    Feb 9, 2011
    Tags:
    ibook_g3_dual_usb
    Re: 10.4.10 Mounting FailedUnplug all external devices then run the Combo Updater again ...
    Author:
    iVmichael
    Date:
    Jun 27, 2007
    Location:
    MacBook Pro
    Bookmarks:
    0
    Likes:
    0
    Latest activity:
    Jun 27, 2007
    Tags:
    using_macpro macbookpro
    Re: Centris 610

    Looking quickly at that site it appears to aggregate feeds that are generally available on the web and in differing formats.
    Some chosen station may be in a particular format, or may be in a choice of formats. The site seems to provide feeds that use RealPlayer Windows and Flash player.
    It is probably required to register & sign in to use the site and that is not something I am interested in doing at the moment.

  • Suggestions for debugging my printing problem

    I have a home network with three computers.
    I have a desktop computer running Ubuntu Linux (9.10) and that is the computer to which my printer (HP Photosmart C4200 series) is connected. There is also a laptop running Windows XP, as well as my aluminum Macbook that I bought last year.
    I have recently upgraded to Snow Leopard.
    I cannot print from my Macbook to the printer which is connected to the Linux box. I can print from the XP laptop to that printer without any problem. I can "see" the Linux box from my Macbook, and I can copy files between the two computers. When I try to print, I get the following results:
    "Network host 'ubuntu-computer' is busy, will retry..."
    If I try to connect to the printer using the Printer Utility, I get:
    "Photosmart is currently unavailable. Please check if it is turned on and connected, or try again later."
    Can anyone recommend a way to debug this problem? I have been trying for several days to get this simple thing to work.
    Thanks for any advice you can give

    Thank you for your reply.
    I cannot add the printer using the Windows option or the Default option. The printer does not appear in the list of printers (there are no printers in these lists, because this is a small home network with only one printer).
    Using the Windows option, I can see the workgroup in the pane to the left, and I can see the Ubuntu computer listed in the middle pain but, the printer is not listed. I cannot type in anything in the search box when Windows option is chosen.
    When I choose the Default option, I can type the printer name in the search box but, nothing is found.
    I have made sure that printer sharing is selected in my system preferences.
    Previously, I was using the IP option to add the printer, and I experimented with using the three options:
    1) Line Printer Daemon - LPD
    2) Internet Printing Protocol - IPP
    3) HP Jetdirect - Socket
    The IP option would allow me to type the address of the printer, and go that route but, it doesn't work.
    From the Ubuntu side of things, I have selected: "Publish shared printers connected to this system".
    There is an "Allow printing from the internet" option in the Ubuntu print configuration dialog. Maybe I should try that. But that seems a little weird.
    Also, I just ran an update on the Ubuntu machine and there were some CUPS updates listed. But I haven't noticed any difference in behavior.
    I am sure this is something basic/simple that I am just missing.

  • Please, answer me about this AWT problem!!

    Hi everybody,
    this is the problem: how can I exit from an AWT window without writing
    System.exit(0);
    I'm working with JES and it obviously crashes after this command,
    please, help me !!
    Thank's in advance,
    Bye!
    Stefano Moro
    Turin, Italy

    Hi everybody,
    this is the problem: how can I exit from an AWT window
    without writing
    System.exit(0);
    I'm working with JES and it obviously crashes after
    this command,
    please, help me !!
    Thank's in advance,
    Bye!
    Stefano Moro
    Turin, ItalyCreate a top-level window from the Window class. Then use Frames as child windows. To remove the frame-window from the screen use "framename.setVisible(false)".
    I hope this helped a bit. If you need anymore help you can contact me at [email protected]

  • Please help me in this tough problem in Java...im just new in Java program

    my teacher give this as a problem. so tough. we are just starting and we are now in control structures. please help me to finish this problem. And my problem is...
    Write an astrology program. The user types in his or her birthday(month,day,year),
    and the program responds with the user's zodiac sign, the traits associated with each sign
    the user's age(in years,months,day), the animal sign for the year(e.g., Year of the Pig,
    Year of the Tiger), the traits associated with each animal sign, and if the year is a leap
    year or not. The dates covered for each sign can be searched through the horoscope section
    of a newspaper or through the internet. Then enhance your program so that if the user is one
    or two days away from the adjacent sign, the program outputs the nearest adjacent sign as well
    as the traits associated with the nearest sign. The month may be entered as a number from 1 to 12
    or in words, i.e.,January to December. Limit the year of the birthday from 1900 to 2010 only.
    The program should allow the user to repeat the entire process as often as desired.
    You can use:
    import java.text.DateFormat;
    import java.util.Date;
    import java.util.Calendar;
    please...those who are genius out there in java program...help us to pass this project. Im begging! thanks!

    Frowner_Stud wrote:
    According to the second commandment: Thou shall not use the name of the Lord in vain.Is this not the definition of ironic, Mr. Morality?
    i am not cheating. And more of the same.
    we all know that an assignment is an assignment. a homework. homework means you can raise other help from somebody so that you will know the answer.You're not asking for "help" bucko, because you've been given decent help but have chosen to ignore it. No, you're asking for someone to do the work for you, and you may call it what you want, but in anyone else's book, that's cheating.
    dont be fool enough to reply if you dont know the reason why i am typing here Don't be fool enough to think that you can control who can or can't respond.
    because if you are in my part and if i know the answer there is no doubt that i will help you as soon as possible! Just because you have low morals doesn't mean that the rest of us do.
    Thanks for time of reading and God bless you including you family!and to you and yours. Have a blessed day.

  • Please suggest correction in this pl and sql code

    Hi,
    Please find the error in following PL/Sql code and suggest the corrections.
    I want to use this code on form-trigger level to display error messages in middle of the screen.
    When I compile this code in ONERROR trigger, it is showing compiling errors.
    Code:
    ERR_VAL NUMBER(5):= NVL(ERR_IN,ERROR_CODE);
    MSG VARCHAR2(150) := NVL(MSG_IN,SUBSTR(' '||ERROR_TYPE||'-'
    ||TO_CHAR(ERR_VAL)||': '||ERROR_TEXT,1,150));
    Compilation time errors:
    Error 103 at line 1,column9
    Encountered the symbol “NUMBER” when expecting one of the following:
    := [ @ %
    the symbol “=” was substituted for “NUMBER” to continue
    Error 103 at line 1, column 27
    Encountered the symbol”=” when expecting one of the following:
    .[=%=.+</> in mod not rem an exponent(**)
    <> or !=~=>=<=<> and or like between is null is not ||
    is dangling
    the symbol “ was inserted before”=” to continue.
    Error 103 at line2, column5
    Encountered the symbol “VARCHAR3” to continue.
    Error 103 at line2,column 20
    Encountered the symbol”=” when expecting one of the following:
    .[=%=.+</> in mod not rem an exponent(**)
    <> or !=~=>=<=<> and or like between is null is not ||
    is dangling
    the symbol “ was inserted before”=” to continue.
    thanks in advance
    prasanth

    Is this the whole content of your trigger? In PL/SQL you have to declare variables under the declare section and then to make the program under begin:
    declare
    VAR1 xxxxxx;
    VAR2 xxxxxx;
    begin
    /* assignments */
    end;
    I am not sure if it is possible to make your assignments with error_code etc. in the declaration. Where you are calling the message-box?
    Can you give us the complete content of your form-trigger?

  • Pleas help me with this printing problem

    Hey
    I have an application that add pages to a serten class, that holds up to 4 pages per obj.
    this class is printable and it is the obj of this class that i add to a book.
    this book i then print out to the printer.
    All things is working fine, the positioning, printing 1-4 pages on one paper and so on.
    but the problem is when a page is bigger then the are, then it will only print that area that fitts on a paper.
    Say we whant to print 4 pages on one paper, one of the pages that we add is containing so much information that it need not only one page but several. The problem is that the program will only print out the first area that fits into the page are, after this page have been printed, it goes on to the 3 other pages on the sam paper.
    am i doing any wrong? do i have to keep track of this thing my self, i mean do i have to theck the size of the page and then add it to so many pages in the book that it requaries, or shold the printer self manage this?
    I am not using any standard printing option where you chose page nrs and so on. Maby this is the problem?
    //Jimmy

    Read the API documentation section java.print.Printable
    int the printing method you can get the maximum prontable area if you draw something outsite the area it will not be printed.

  • Please help me understand this memory problem

    Good day to all.
    I have an application that reads email messages. The Message object holds a StringBuffer. If I run my app for a long time, 10,000 email messages, I get an out of memory error. I am using -Xrunhprof to try to track down the problem. I can see that if I process 50 messages, there are 45 still live at the end of the program. At least that is what I think is happening. Based on the output below is this assumption correct?
              percent         live       alloc'ed  stack class
    rank   self  accum    bytes objs   bytes objs trace name
        1 40.94% 40.94%   873760   37 1267904   50   789 [C
    // Trace info
    TRACE 789:
         java.lang.StringBuffer.<init>(<Unknown>:Unknown line)
         com.PCM.SnifferMessageTools.MessageObject.<init>(MessageObject.java:46)
         com.PCM.SnifferMessageTools.MessageSnifferAutoRuleProcessor.main(MessageSnifferAutoRuleProcessor.java:118)If this assumption is correct I have some other questions. I'll wait to ask.

    Post the source code where its happening and please use code tags (see Formatting help)
    I can probably help. I have a theory or 2.

  • Please help out solve this small problem.

    I am using j2sdk1.4.1. I am getting this error whenever i am trying to connect oracle8i:-
    Exception in thread "main" java.sql.SQLException: 20
    at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:407)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:152)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:214)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:193)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at Employee.main(Employee.java:9)
    Can u please guide me to getsolved this problem?
    Thanks in advance.
    shrikanth

    How about posting some of you code. It might help to see why you are getting an error.

  • Please suggest solution for deletion of  all rows in table at a time

    Suggest me pl/sql code for a push button in form to ‘delete entire rows’ in a table.
    BEGIN
    LOOP
    DELETE
    FROM mytable(say table name)
    WHERE ROWNUM < 20000;
    EXIT WHEN SQL%ROWCOUNT = 0;
    COMMIT;
    END LOOP;
    END;
    I wrote this code but not deleted .
    Execute immediate ‘truncate table <tablename>’; this code too not working.
    What my need is ‘ I don’t want to put entire block fields in the form, just I want to put a push button and when I pressed it must delete all rows in a particular table.
    That I want to delete all rows form builder runtime not by entering sql.8.0 and then there delete the rows.
    thanks in advance
    prasanth a.s.

    to delete all records in a table, if you want to get good performance, then use:
    FORMS_DDL('TRUNCATE TABLE your_table_name');
    It is better than use DELETE FROM TABLE_NAME. But if you have condition in where clause, then you have to use DELETE FROM ...

Maybe you are looking for

  • How to take out the Hard Drive...

    My logic board died on my 12' iBook G4 and the information on there is critical to get back. I can't start my ibook up in target mode, but I would like to take the Hard Drive out and put it in a case. Can someone point me to a current link, step by s

  • HELP! Export indd- epub AUTOMATION. How to Implement! thanks!

    Hi. In need some help. Im an intermidiate .net programmer. i need  some help on how to implement a simple automation on exporting indd to epub. What language suitable to use? do i need indesign server ion this simple automation? Thanks!

  • Wired guest access on WLC 4400 with SW 7.0.240.0

    Hello, after we upgrade our Wlan-controller 4400 from software 7.0.116.0 to 7.0.240.0 wired guest access don't work anymore. All other things works fine, incl. WLAN guest access! When we try wired guest access, we get the web-authentication page and

  • Can I download IOS 6 to my ipod touch o 3rd generation?

    I can't download IOS 6 to my ipod 3rd generation... and so many aplications needs of this system... anybody knows if I can download IOS 6 to my IPOD TOUCH 3rd generation?

  • Purchased song isn't availale for download

    I previously purchased a song and accidentally deleted it. When I do a check for available downloads, the song doesn't download. If I go back and try to purchase it again, iTunes recognizes that I have already purchased the song and says to check for