NavigationUser login |
Adding blocks to a .syr fileI need to print one of four logos beneath the page header on the PO Print. To accomplish this, I defined four blocks. Each block (named LOGO1 thru LOGO4) is four lines and contains TIG00544 (Bitmap) and TIG09462 (Blank-Line). In the program tippd10.csm I have logic to print one of the four blocks based on company (COMPANY-POMST). All of this is appears straight forward. When I test this the first logo prints ok. The rest of the logos, when that logic is triggered, cause the page header not to print as well as skipping the logo. The first text I see is the 'Please Direct Inquiries to:' line. Years ago when modifying the WO Package Print for BC Hydro I had a similar problem. For that I needed to delete the definition of all of the blocks, add my new lines and then define all of the blocks from top down. Also there was a limit of 500 lines for a .syr file. Does anyone know why the page header is only printing sporadically? By Anonymous | Adding the company bitmap to Purchase Orders | add new comment
Custom Code (Pt. 2)This worked. It didn't like underscores in the gif name though. Thanks a bunch!! By Anonymous | reply
syr bitmap valueHi, By Anonymous | reply
Case sensitive gif file nameThe case in AWB will always show uppercase...as will the extension (.GIF). In the Portal/J directory I needed a mixed case file name. For example, FILE.gif. So uppercase for the file name and lowercase for the .gif extension. By Anonymous | reply
|
Have program determine which gif to use
This was successful with PassPort ver 10.x with Portal/J 10.x.
Files of type gif exist in the Portal/J "gifs" directory.
Program tippd10.csm
****************************
* 1100-PROCESS-PAGE-HEADER.
*
*
****************************
1100-PROCESS-PAGE-HEADER.
*Custom code begin
MOVE SPACES to BITMAP-FLD.
IF PO-STATUS-POMST = 'PENDING'
MOVE 'web.gif' TO BITMAP-FLD
ELSE
MOVE 'tree40.gif' TO BITMAP-FLD
END-IF
*Custom code end