I am creating a report with Stimulsoft. I have a GroupHeader Band and a GroupFooter Band which have a condition. The report works just fine but I need my report to print each Group on a separate Page. Is there any way to break the report into separate Pages based on different Groups ?
There is an easy answer to this question. On GroupHeader Band properties, we need to set "New Page Before" property to "True" so each Group will be printed on a separate Page. That's it !
You also can set the "New Page After" of Group Footer, to true
Related
I am using FastReport with Delphi. Now, I need to display sum value of each page.
I mean, I need sum value for current page on each page of the report.
How can I achieve that? Thanks
Solution:
You can use "Page Footer" band and "Text" object with SUM() function for that purpose.
Steps to follow:
put a PageFooter band (TfrxPageFooter) on you report page
put a memo (TfrxMemoView) on that band
set [SUM(<reportdataset."NumericColumn">, MasterData1)] as text, if you want to sum records only on current page
set [SUM(<reportdataset."NumericColumn">, MasterData1, 2)] as text, if you want to sum records from current page and previous pages.
Notes:
You can use "Report Summary" band if you want to show aggregate information after all rows of your report.
ColumnFooter1
[SUM(<frxUserDataSet1."user_total_1">,MasterData1)]
I have an issue in Crystal Report where in , I need to print on Crystal Report where values comes from three tables:
1-teach_details
2-MasterTeacherDetails
3-MasterTeacherSpecimenDetails
So, for this I have used data table which has all the fields necessary. On crystal Report, Report header section has teach_details values , on detail section MasterTeacherDetails and then MasterTeacherSpecimenDetails , for this I have query as :
Select teach_details.IdentityCode,IdentityName,dbo.fun_UniIdToUniName(UniId) as UniversityName,teach_details.Address+', '+dbo.fun_CityIdToCityName(teach_details.StateID, teach_details.CityID)+', '+dbo.fun_StateIdToStateName(teach_details.StateID)+', '+teach_details.PinCode as IdentityAddress, dbo.fun_GradeIdToGradeName(teach_details.Grade) as Grade, case when teach_details.TypeOfIdentity='College' then dbo.fun_StrIdToStrName(teach_details.Streams) else case when teach_details.TypeOfIdentity='Coaching' then dbo.fun_ExamIdToExamName(teach_details.Exam) else dbo.fun_StanderdIdToStanderdName(teach_details.Standerd) end end as Strm_Exam_Standard, TeacherName+'/'+MasterTeacherDetails.TeacherCode as TeacherName, case when MasterTeacherDetails.TypeOfIdentity='College' then dbo.fun_StrIdToStrName(MasterTeacherDetails.Stream) else case when MasterTeacherDetails.TypeOfIdentity='Coaching' then dbo.fun_ExamIdToExamName(MasterTeacherDetails.Exam) else dbo.fun_StanderdIdToStanderdName(MasterTeacherDetails.Standerd) end end as TeacherStr_Exm_Stnrd, case when SameAddress='True' then teach_details.Address+', '+dbo.fun_CityIdToCityName(teach_details.StateID, teach_details.CityID)+', '+dbo.fun_StateIdToStateName(teach_details.StateID)+', '+teach_details.PinCode else MasterTeacherDetails.Address+', '+dbo.fun_CityIdToCityName(MasterTeacherDetails.StateID,MasterTeacherDetails.CityID)+', '+dbo.fun_StateIdToStateName(MasterTeacherDetails.StateID)+', '+MasterTeacherDetails.PinCode end as TeacherAddress, MasterTeacherDetails.Mobile as TeacherMobileNo,MasterTeacherDetails.EmailID as TeacherEmailID,Case MasterTeacherDetails.DOB when '01/01/1900' then '' else Convert(varchar(10),MasterTeacherDetails.DOB,103) end as DOB,MasterTeacherDetails.Remark ,BookCode,BookCode as BookName,BookCode as AuthorName,DispatchThrough as Mode,Qty from teach_details inner join MasterTeacherDetails on teach_details.IdentityCode=MasterTeacherDetails.IdentityCode inner Join MasterTeacherSpecimenDetails on MasterTeacherDetails.TeacherCode=MasterTeacherSpecimenDetails.TeacherCode where (teach_details.TypeOfIdentity ='College' and (teach_details.CityID = 'GHAZIA')) order by IdentityName
Now, the problem here is that MasterTeacherDetails and MasterTeacherSpecimenDetails have different number of rows,Suppose
MasterTeacherDetails has a,b,c and MasterTeacherSpecimenDetails has d,e,f,g,h
So when I run it with data it shows me 5 lines of entry and MasterTeacherDetails rows repeats itself 5 times, like :
Rather it should display:
I cannot use sub report for showing specimen details section and main report for showing Teacher Details Section.
So please help, and please try to be least technical as I am not very efficient on C#.net yet.
From what I gather by reading your question and comments, it seems like you would like a summary, then also have the specimen listings on separate pages for each teacher so that you can separate the report and give them each their listing.
Also, it seems that you want to do this with only one SQL query, meaning one command table.
I would begin with grouping by teacher for both sections of the report.
For the specimen detail section, you can hide the group header and footer. Use the group expert paging settings to create a new page after each teacher group to get each teacher on different pages to distribute the sections of the report. Also, you'll probably want the page numbers to restart after this group. I don't think you can do this through group expert; you'll probably need to do this through section expert on the group footer paging settings.
For the teacher detail section, also use the grouping by teacher to show the "teacher detail" in the group header or footer, then suppress the detail section using section expert. This will eliminate your multiple lines. I would put the teacher details in a sub-report in the report header section, and use the section expert to create a new page after the report header section. This is like a dedicated front page.
Please use DataSet instead
DataSet dsReport = new DataSet();
dsReport.Tables.Add(dataTable1);
dsReport.Tables.Add(dataTable2);
yourReport.SetDataSource(dsReport)
I have a website which sells cloths under categories "Sarees" and "Dupattas".
I am trying to configure content grouping in Analytics, but it does not seem to be working.
e.g. I have set an extraction by page title /(.[Ss]arees)./
and some of the page which I was expcting to fall under this were:
http://dazzledori.com/Pure-Silk-Chanderi-catid-372030-page-1.html
http://dazzledori.com/Silk-Cotton-Chanderi-catid-372029-page-1.html
But when I go to my reports, I only see "not set" on the same page titles. Can somebody suggest if I am using this feature incorrectly, or there is gap in the regex? Thanks.
Edit: I just tried to convert my extraction into a rule.
So now I have created a single group called "Cloth products", and I created two rules inside it:
1) /(.[Dd]upatta)./
2) /(.[Ss]arees)./
Still not seeing any matches
I am trying to modify the WMSPickingList_OrderPick Report in Dynamics AX 2009.
I am attempting to move the InventDim group onto the same line as the actual Item Line, as it currently prints underneath.
I have tried manually moving the fields, in this case no data appears.
I have tried switching the parameters so that the item dimensions appear after or a part of the item number, in this case it still appears below.
I have also attemped to simply pick up the values in the Fetch statement and pass them to variables, I can see the values being picked up but on returning them in a display method no data appears?
Many thanks for your help in advance.
Go to Accounts receivables > Setups > Forms > Forms Setup
In the "General" tab > "Print item dimensions" group, Select the "Print item dimensions" as "After item number"
I am assuming it is currently set to "Under item line"
The problem with WMSPickingList_OrderPick report is the width of the design, the design doesnt have enough width to print the Inventory Dimensions, they dont appear when u put them in the same line because the columns overlap.
However, one very clean solution can be to use a Display method as datasource for the Item ID (i.e item number) and in that display method just append the dimension.
I don't know if its possible or not, but thought I'd ask. Many times reports need data grouping to have anchored to the bottom of the report some summary information, such as invoices. You don't want the totals shifting UPwards based on only 2 detail lines vs another with 20. I've tried working with using the Tablix bound to the data source for the output but couldn't get it quite right... It would either shift up, or force break and appear at top of following page.
So, if anyone has some ideas to help resolve that, that too would be great.
My second approach was to just use a simple report page footer. However, the overall "Report" page is not technically "BOUND" to any datasource. So, if I put a textbox in the footer and want it to show something, I can't pick "the most recent row from the datasource associated with the Tablix", it always requires an aggregate, such as
=First(Fields!SomeField.Value, "SomeDataSource" )
=Sum( ...
=Last( ...
etc...
I just want it to have whatever was the most recent... so I tried to use report variables to create one and was thinking to have it get updated per row being processed, so it always had whatever the "latest" value was and I could just dump that value at the bottom of the report.
Any suggestions to either would be great. Thanks.
I know this is an old question, but I had a very similar problem and came up with a unique solution. I had a statement that needed to have the payment slip print at the bottom of the page even if the statement line items wrapped over to another page. I solved it by:
Making all rows in the report a uniform height.
Calculating how many rows were required to fill the page (minus the height of my payment slip.
Getting the number of line items in the statement.
Calculating the remaining number of rows needed to push my payment slip to the bottom of the page.
Adding a sub-report with the calculated number of blank rows to pad out the necessary space between the line items and the payment slip.
The advantage of that approach was that I could generate bills for multiple customers, and since the padding is part of the group it would be customized for each customer's bill and bottom-justify the pay slip for each of them.
You can use a similar approach to push your "footer" info to the bottom of your page. Since it is still inside of your data group you'll have access to the data values you need as well.
In the footer you can refer to report item from report body, like this:
=ReportItems!myFooterValueTextBox.Value
The catch is that you can refer to only one report item in your footer, so you may need to add invisible footer row in your table and concatenate all your totals into one cell (myFooterValueTextBox) in that row:
=First(Fields!SomeField.Value, "SomeDataSource") + "|" +
Sum(...) + "|" + .... +
Last(...)
I used pipe as deliminator in my example, so then in the footer, I would split the string and place values in appropriate containers, like this:
=Split(ReportItems!myFooterValueTextBox.Value,"|")(0)