How to turn off frame

I'm using CBuilder XE & Fast Reports 4. I have looked though this forum & found this subject discussed before. But the answer isn't very clear. There is no ftnone option for frame.typ. Can someone show me some code for this?

Comments

  • gpigpi
    edited 8:40PM
    memo1->Frame->Typ = 0;
  • edited 8:40PM
    gpi wrote: »
    memo1->Frame->Typ = 0;

    Thanks for the answer but it doesn't work. And the format is Memo1.Frame.Typ. I have tried it this way also:
    Memo1.Frame.Typ = Memo1.Frame.Typ >> ftLeft
    which doesn't work either.

    This works for turning off the Bold:
    Memo1.Font.Style = Memo1.Font.Style >> fsBold;
  • gpigpi
    edited 8:40PM
    wrote:
    Thanks for the answer but it doesn't work
    No. Its works. See attach
  • edited 8:40PM
    OK, I stand corrected. I assumed that the frame was the same for a memo & a page. I was testing with page. How do you turn off the frame on a page? Some people using my app don't want to print the frame & some do.
  • gpigpi
    edited 8:40PM
    Use in main script procedure
    {
      Page1.Frame.Typ = 0;  
    }
    
  • edited 8:40PM
    Sorry but that doesn't work. I think I will give up on using a frame on the page & just put a rectangle around the page. That I can turn off & on via variables & code.
  • gordkgordk St.Catherines On. Canada.
    edited 8:40PM
    it works i would suspect you are trying to use it in the wrong event.
  • gpigpi
    edited 8:40PM
    See attach
  • edited 8:40PM
    OK, now I have my head back on my shoulders & out of the dark place!! ;-) It really does work. Thanks for all of the help!!

Leave a Comment