Integration with FastReport (TfrcGrid way).

edited 4:34PM in FastCube
Hi.

I have following problem:

I want to print contents of the fcGrid using this method

fcGrid (on form) -> frcGrid (on form) -> TfrcCrossView (on report page)

This all works kinda perfect (i really like that its uses sizes and alignment etc. etc. from fcGrid), but there is one problem.
I mean clBtnFace color (you know its gray in standard windows theme) while its look normal on form its looking not good on printed page.

I tried to use OnGetStyles event like you used in demo_olap sample but then i lose some other properties of original grid (row headers are always aligned to center, cell headers are always aligned to left).

I want to ask i there any way to do this without changing fcGrid style options before print (because this is kinda not elegant, and i can't use it in my case).

I think i would be generally good idea to add option to frcGrid to use other settings for colors from fcGrid (like you did with PaintSizes).

Greetings and great component(s) btw >

Comments

  • edited November 2009
    Hi.

    I fix frcCross.pas
    Now alignment are imported from grid if You use OnGetStyles.
    In future i plan to add property Styles: TfcGridStyles to TfrcGrid.

    Oleg.
  • edited 4:34PM
    Ok.

    Thank you for quick answer >

Leave a Comment