Hai All,
I have two fields Serial Start No and Serial End No in my request form. My Data Item is Sales Line. I have Sales Line Header and Sales Line Body sections in my report. I have a field SLNo in my body section.
Now consider the following :
Serial Start No = 1
Serail End No = 10
Now I want both my header and body section to print 10 pages (depending on request form values) . And also SLNo field should be 1 in my first page and it should get incremented as per my pages.
Now if the Serial Start No = 2 and Serial End No = 10 then the report should have 9 pages. But here the SLNo will start from 2 and end at 10.
Can anyone tell me how I can achieve this. Any help would be really appreciated.
Thanks in advance.
0
Answers
Put appropriate filters in order to filter from 2 to 10 and you're done.
But maybe your report is not so simple
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Take Integer DataItem to show your fields...
1. Use the request form to input the "Serial Start No." and "Serial End No."
2. Take a Temperary SalesLine record variable and inert in the Onaftergetrecord
3. Use the Integer DataItem and Its sections to show the fields from the TempSalesline Rec.
4. To loop the Iteger DataItem use ("Serial End No." - "Serial Start No." + 1) value.
5. Instead of using CurrReport.PageNo take a seperate variable and increment it for each newpage.
textbox in header, sourceexpr = currreport.pageno(currreport.pageno + startNo - 1)
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
currreport.pageno(Expr);
Its simple and better.
Thanks for the idea Belias .
But how Can I print my body section,the times the value of the EndNo?
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
DataItem is Sales Line
Section is Body....
Yes the Header Section have the property like "Print on Every Page".But I want my Body section to be printed like say ,depending on the StartNo and EndNo.
I have a header section and body section in my report. Depending on the StartNo and EndNo values I want both my header and body section to be printed.
The Header Section have the property like "Print on Every Page".But I want my Body section to be printed like say ,depending on the StartNo and EndNo.
Kindly help....
As i mentioned earlier, Use the Tamp. record Variable to store in the Sales lines data, loop the Integer DateItem N times and show your fields in the Integer dataitem sections.
For reference how to use temp record and integer dataitem, go through the report 120 and have a look at Currncy loop.
I did that according to what u said. But my first page is printing blank rest are coming right......Dont know what is wrong......Can u please help me with this...
The following is my code,which i have written for looping:
I have also written the following code:
Kindly help me in finding my mistake........
Thanx in advance.....
IF Number MOD 1 = 0 THEN
CurrReport.NEWPAGE;
Thing (I point out that I have not already undertood the whole thing) :oops:
Condition "Number MOD 1 = 0" will always be true...
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Have u missed this :-k
Remove this code its not needed.
I didnt have a clue to achieve this first until I got the idea to use Integer from here. Thanx a lot guys .
This is what I did :
Thanx a lot for helping me out guys.............
Yup...Thanx a lot dude :?