+ Reply to Thread
Results 1 to 4 of 4

Thread: BOLDing cells from an ILE-RPG program.

  1. #1
    Guest.Visitor Guest

    Default BOLDing cells from an ILE-RPG program.

    Robert,
    I think you would go in way over your head trying to create an Excel spreadsheet object from RPG.
    You have a couple of options here, and since you are really creating an ASCII/Tab-Delimited file and not a spreadsheet the answers are pretty much all in Excel.
    1. Create a spreadsheet that downloads it's data directly from the AS/400 viaan ODBC data driver, Client Access has one. Set up the resulting data fields to conditionally format a cell based upon it's contents.
    2. Create a macro that reads the tabbed file and then conditions the formatting of the cell for each record you read in.
    I have done both and I think #1 is easier.
    Bill
    I have created an ile rpg program that creates a Microsoft Excel spreadsheet(tab separated) from an AS/400 file. The users love it, but(and you just knew there would be one) they would like me to highlight(BOLD) certain cells if they exceed certain conditions. I have tried highlighting(BOLD) some fields in an existing spread sheet, copying that from the IFS to a database file on the 400 to see if I can find the control codes that cause highlighting(BOLD) in Excel. I am not sure I can do this. Does anyone have any experience with such things?


  2. #2
    Guest.Visitor Guest

    Default BOLDing cells from an ILE-RPG program.

    Hi Bill, Thanks for the reply. You are correct about the problems associated with creating a formatted Excel document. Way too much work for a small return. I naively thought that there would be a hex character(suffix/prefix/both) that would allow such BOLDing. Of the 2 options you presented, I also agree that option 1, odbc makes more sense , but unfortunately not the environment I am currently working in. A long story that I won’t bore you with. Because the decision must be made on BOLDing these cells at the time the record is being created, my fall back position is to concatenate a special character (say an *) to the prefix and suffix of the value of the cell. This is not perfect but should allow easy identification of the field value that caused this record to be reported(aka net change). Thanks again for your reply. Bob.

  3. #3
    Guest.Visitor Guest

    Default BOLDing cells from an ILE-RPG program.

    Bob,
    I recommend you take a look at the conditional formatting in the Excel help documentation. You can even ask the "Paper Clip" expert about it. It will do what you are needing to do.
    Bill
    Because the decision must be made on BOLDing these cells at the time the record is being created, my fall back position is to concatenate a special character (say an *) to the prefix and suffix of the value of the cell. This is not perfect but should allow easy identification of the field value that caused this record to be reported(aka net change).


  4. #4
    Guest.Visitor Guest

    Default BOLDing cells from an ILE-RPG program.

    Hi All, I have created an ile rpg program that creates a Microsoft Excel spreadsheet(tab separated) from an AS/400 file. The users love it, but(and you just knew there would be one) they would like me to highlight(BOLD) certain cells if they exceed certain conditions. I have tried highlighting(BOLD) some fields in an existing spread sheet, copying that from the IFS to a database file on the 400 to see if I can find the control codes that cause highlighting(BOLD) in Excel. I am not sure I can do this. Does anyone have any experience with such things? Thank you Bob.

+ Reply to Thread

Similar Threads

  1. What program caused Exit program call?
    By Guest.Visitor in forum CL
    Replies: 0
    Last Post: 08-21-2005, 01:50 PM
  2. convert RPG interactive program to batch program
    By Guest.Visitor in forum RPG
    Replies: 8
    Last Post: 06-28-2002, 07:07 AM
  3. Replies: 0
    Last Post: 12-12-2001, 08:20 AM
  4. Call a Java program from a COBOL program?
    By Guest.Visitor in forum Application Software
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM
  5. Call a Java program from a Cobol Program?
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts