Report Color Problem

topo_scatenatotopo_scatenato Member Posts: 13
Hi

I wanted to have color background on the line of a report so i put an image in the body section but when i print it every ten line the background is missing, ten lines are printed in blue (the correct background) and one line are printed in white and so on.

To be sure that this not a problem of my report i do another report with integer table, put a blue image in the body section and the result is the same ten line appears in blue and one line remains in white ...

Thanks in advance.

Regards

Answers

  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    Can you provide more information about how you add the color? Is it a blobfield? Do you have some code you can share?
  • topo_scatenatotopo_scatenato Member Posts: 13
    It is not a BLOB field it is only the Image component from the toolbox, i have tested with a Blob and Picture Box component and the result are the same
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    The image component from the toolbox will show black on the print as far as I can remember and is thus unreliable.

    Can you share some code?
  • topo_scatenatotopo_scatenato Member Posts: 13
    The code of the simple report is :
    OBJECT Report 98000 Test blue book color
    {
      OBJECT-PROPERTIES
      {
        Date=20/01/10;
        Time=11:44:12;
        Modified=Yes;
        Version List=;
      }
      PROPERTIES
      {
      }
      DATAITEMS
      {
        { PROPERTIES
          {
            DataItemTable=Table2000000026;
            MaxIteration=200;
          }
          SECTIONS
          {
            { PROPERTIES
              {
                SectionType=Body;
                SectionWidth=19500;
                SectionHeight=423;
              }
              CONTROLS
              {
                { 1000000009;Image  ;0    ;0    ;19500;423  ;Bitmap=C:\TEMP\Compress\FondHorsn4.bmp }
                { 1000000000;TextBox;10650;0    ;4200 ;423  ;SourceExpr=Number }
              }
               }
          }
           }
      }
      REQUESTFORM
      {
        PROPERTIES
        {
          Width=9020;
          Height=3410;
        }
        CONTROLS
        {
        }
      }
      CODE
      {
    
        BEGIN
        END.
      }
    }
    
    
    
    

    And this a part of the first report
    SECTIONS
          {
            { PROPERTIES
              {
                SectionType=Body;
                SectionWidth=27600;
                SectionHeight=423;
              }
              CONTROLS
              {
                { 1000000130;Image  ;150  ;0    ;27300;423  ;Bitmap=C:\TEMP\Compress\FondHorsn4.bmp }
                { 1000000131;TextBox;21150;0    ;1950 ;423  ;Name=Book Value;
                                                             SourceExpr="Acquired USD Amount"  - "Amortization USD" }
                { 1000000132;Shape  ;27300;0    ;300  ;423  ;ShapeStyle=VertLine }
                { 1000000133;TextBox;23250;0    ;1950 ;423  ;SourceExpr=MarketValueN1 }
                { 1000000134;TextBox;25350;0    ;1950 ;423  ;SourceExpr=MarketValueN2 }
                { 1000000135;TextBox;19200;0    ;1800 ;423  ;SourceExpr=Percent }
                { 1000000141;TextBox;1650 ;0    ;4500 ;423  ;SourceExpr=Name }
                { 1000000142;TextBox;450  ;0    ;1050 ;423  ;SourceExpr="No." }
                { 1000000143;Shape  ;0    ;0    ;300  ;423  ;ShapeStyle=VertLine }
              }
               }
    
  • BeliasBelias Member Posts: 2,998
    edited 2010-01-20
    i just imported your integer report...no problems here, can you screenshot your bitmap image? i think that that is the problem...
    EDIT: My version is 4.01
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    It works fine in my 5.1 database.

    What version are you using?
  • topo_scatenatotopo_scatenato Member Posts: 13
    Ok thanks a lot it works fine now

    It was a problem with the bitmap
Sign In or Register to comment.