Problem with CrossView

edited 1:46PM in FastReport 4.0
I'm a newbie here.In my report I have 1 Reportitle,1 Pageheader(header of the table) 1 Masterdata band with 1 CrossView with manual build.After that I need a more band (Reportsummary or Footer..).
The problem is that,after printing the CrossView it do not update the CurY so the next band do not print under the Crossview.I need to count the Height of the masterdata band to update the CurY but it's not very nice.Do you have any solution?Sorry for my bad english.

Comments

  • edited 1:46PM
    1. Make this MasterBand stretched and at design time put the whole CrossView WITHIN the band.
    If you create Crossview at runtime make sure its height is less than height of the band.

    2. Add ChildBand to MasterBand and lay all the information you need for summary etc.

    Have a look at attached example.

    Mick
  • edited 1:46PM
    Mick.pl wrote: »
    1. Make this MasterBand stretched and at design time put the whole CrossView WITHIN the band.
    If you create Crossview at runtime make sure its height is less than height of the band.

    2. Add ChildBand to MasterBand and lay all the information you need for summary etc.

    Have a look at attached example.

    Mick
    Thank you for answering my question but my problem is the height of the Crossview (at runtime) is unknown (it maybe in some pages).Do you have any solution?
  • edited 1:46PM
    I understood your issue was to have another BAND below the crosstab - which is a dynamic component in most times.
    And my suggestion was to help you get this result without any need to use CurY [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Did you TRY to make change of your report according to my suggestion or not? Can you attach an example (PDF, JPG) of your prepared report after adding to it changes I mentioned? This will be usefull for me to search for more solutions. Mick[/img]
  • edited 1:46PM
    Mick.pl wrote: »
    I understood your issue was to have another BAND below the crosstab - which is a dynamic component in most times.
    And my suggestion was to help you get this result without any need to use CurY [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Did you TRY to make change of your report according to my suggestion or not? Can you attach an example (PDF, JPG) of your prepared report after adding to it changes I mentioned? This will be usefull for me to search for more solutions. Mick[/img]
    I have tried to do as you surgested but it didn't work.I don't attach the file because it's not in english,sorry.I think problem only is...when I add the value to Crosstab with function AddValue it doesn't update the CurY
  • edited 1:46PM
    OK [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> My idea is not to use[/img]CurY at all. If I put a CrossView object on a band, and add childband to it then I always get what I want.
    I mean - childband is always positioned below the CrossView no matter how big it becomes at runtime.
    wrote:
    I don't attach the file because it's not in english

    Language doesn't matter [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> But you can attach this piece of your code where you create CrossView and fill it with data at runtime. Mick[/img]
  • edited 1:46PM
    Mick.pl wrote: »
    OK [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> My idea is not to use[/img]CurY at all. If I put a CrossView object on a band, and add childband to it then I always get what I want.
    I mean - childband is always positioned below the CrossView no matter how big it becomes at runtime.
    Mick.pl wrote: »
    I don't attach the file because it's not in english

    Language doesn't matter [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> But you can attach this piece of your code where you create CrossView and fill it with data at runtime. Mick[/img]
    Oh,thank Mick,it works now....need to deselect "Print down then cross" on CrossView's properties

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.