How to rearrange report section at print time in ActiveReports? - activereports

I need to print the report footer before the group header/footer in ActiveReports 6. My code in report footer requires calculation from the group header/footer, so instead of moving all the controls to report header and do massive changes to code, I wonder if there's a quick way to just rearrange the page at print time.
I currently have:
rhMain (reportheader) for report cover page
gfVehicle (groupfooter) for detail on each vehicle, summary data is also calculated and stored here for each vehicle to be used in report summary
rfMain (reportfooter) for report summary
What I need to be arranged:
rhMain cover page
rfMain summary page
gfVehicle detail on each vehicle
What I have tried is move all the summary stuff to rhMain and during rfMain_format, I change the value of the controls in rhMain. This failed probably because rhMain is already rendered at this point.
Any other ideas?

There is no way to rearrange the sections during printing. The sections are designed to be rendered in a specific order and it cannot be changed. If you can provide some detailed information about your use case we may try suggesting some workaround. You can post your questions to ActiveReports support forums.

Can you please explain your scenario so we can try to help based on it. In general a report footer is nothing but a "group-footer" for the whole report (that is not bound, so would it help to replace the report-header/footer with an outside group header/footer.
Please include an image of what you're trying to do so we help further.
Issam Elbaytam
Grapecity.

Related

Jaspersoft studio summary and subreport

I have a problem with jaspersoft studio, the problem is that I want to put the Subreport on the very last page in the document. So my idea was to put it in the summary, but then I got something strange...At the end of the PDF generation the subreport is on the last page, BUT the sub report is not complete there is stuff missing :/ It is just printing out the last values
Consider the following example:
I have 3 Parts, Part-1, Part-2, Part-3
After finishing the part-3 the subreport should be visualize with some of the information of part 1-3, but the subreport in the summary just contains information from the part 3
I use a XML Datasource
Can anyone help me, please?
You have to think of the context of the summary band and the sub report.
Is a variable from part 1 and part 2 being passed to the sub report? Is the same variable being passed from part 3? If so then it is being overwritten.
It really depends on the source of the information for the sub report, but the timing and context are likely the culprits here. You may need to create three sets of variables to contain what you want or just pass something into the sub report and let it gather the information for the three parts on its own.

In SSRS How not to split same column on 2 pages

I have 20 columns on report. We have provided user to exclude columns which don't want in report. So we made hidden.
Problem is when I get report then any last column on page gets appeared some part on 1 page & some part on another page.
Can you please help.
hi i hope i understand your question correctly. you want to avoid page breake for a tablix? mark the tablix go to properies and check the PageBreak Options for me tDisabled = True works to render all informations in one page.
if it is still not working check your pagelayout in report --> report properties
also i remember there was a InteractiveHeight Option somewhere that should be set to 0.

Display centered page header in a sub report which is placed in a multi column formatted section

More than a full day gone and i still can't find a solution...
I am creating a report which will be used to print out an exam paper(Crystal Reports with VS 2010). All exams have more than one related unit and all units have their own questions.
So i have created a sub report with the units and questions and added to the main reports' Details section which formatted as multicolumn. I have generated the report which seems like below.
http://www.avekon.com/tmp/examprintscreen0.png
Everything is fine until now. But when i want to add the unit titles (which are in the subreport),they are displayed as headers of each column. I want to display the unit title as centered on the top of each page, like below.
http://www.avekon.com/tmp/examprintscreen.png
Tried to add a header to main report and update it from subreport. NOT WORKED! Because the variables are not while the subreport is looping.
Tried to format other sections as multi column. NOT POSSIBLE as i see.
Tried to insert sub report into sub report. NOT POSSIBLE again.
and i have tried a lot of other logical and illogical ways but no success at the end. It should be easy but i can not find the right way. Please help, really important!
Remove the multi-column formatting from the main report and instead, format the sub-report as multi-column.
This should do the trick.

Having problem in rendering subreport existing in group footer

I have to fix a report designed by Acive report and I am fairly new to this. The problem occurs after converting this report from frame work 1 to 2 .Nothing is changed but sub report showing the total count does not show up.
I have a main report(RptReport.vb) having a group containg 6 subreports in its footer(GrpFooter).
It Has:
Report Header
Page header
GrpPageNumbering
Application's Icon
Report Name and....
GrpTotal
Detail
GrpTotalFooter
subLevel5
subLevel4
subLevel3
subLevel2
subLevel1
subLevelSubTotal
GrpPageNumberingFooter
PageFooter
ReportFooter
RptSubReport.vb is the subreport which is designed to be used in all of these 6 subreports.
It has
GrpTitle
It contains the deign of titles
grpHeader
grpAlternate
detail
grpfooterAlternate
It contains the field that should be shown up
grpFooter
It contains the total sum
GrpTitlefooter
For subLevel1 to subLevel5 grpfooterAlternate.visible = true and grpFooter.visible = false and
For subLevelSubTotal grpfooterAlternate.visible = False and and grpFooter.visible = true
This sets dynamically.
When i run the report with different criterira I get different results.
Some times grpFooter in sub report show up and sometimes it doesn't. I guess it depends on the amount of data showing up in the previous subreports.
It is good to mention that this report used to work correctly but after coversion from framework one to 2, This problem occurs.
I debugged the cases that total sub report show up and the cases that it does not . Both goes through the same events.
Any Body had an idea? I appretiate your help.
Thanks,
merryca,
I don't believe there is any dependency on FW on rendering of reports. That being said, is it possible that you can send us a project that will help us understand what is going on here. Trying to debug the issue based on your explanation is little bit difficult.
Please email support#grapecity.us.com and we will get you some help immediately.
thanks
raji
Rajnish Sinha,
GrapeCity, inc.

Crystal Reports Check if export in formula

I want to add some text (from a formula) to my crystal report.
the thing is: I want this text only to be visible if I export the report to HTML for instance.
I don't want to see the text if I print the report.
Can it be done?
bye Juergen
Short answer: no. Crystal Reports, even v2008, doesn't have a mechanism to distinguish when it is being printed.
You could use a parameter field to set the field's visibility, but this will be a manual process.
You might be able to write a user-function library (UFL) to use the Windows API to determine the state of the document and return it to the report. The challenge would be to 1) find an API that can determine a document's print state 2) determine the report's 'handle'. I would go the c/c++ route for building such a UFL.
I don't think it's possible. The simplest way around your issue is to make 2 different versions of your CR report, 1 for HTML and 1 for printing.
A little redundant, yes, but it gets the job done.