Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Table
-------
code int //Account ID
tdate datetime
Invno nvarchar(50)
Remarks nvarchar(250)
debit decimal(18,2)
credit decimal(18,2)


I want create report look like example blow:

Date Inv# Narration DR CR Balance
B/F Balance : 50
1/1/18 1 Tea bill 30 0 80
3/1/18 6 A4 Paper Rim 320 0 400
--- ---
350 0

Closing Balance Rs. 400


Please help any expert to create this report
Thanks

What I have tried:

Help to create account statment report
Posted
Updated 7-Jun-18 19:02pm
v2

1 solution

The correct answer depends on several factors, depending on how you store & get the data & if you intend to use sub reports or formulas etc
For instance, you could use a stored procedure that exposes the data to the report & requires the Start & End Date & Account identifier as parameters. In this case you could include the opening balance in the result data repeated on each data row & use a formula variable to calculate the closing balance for each line & overall - Crystal Reports cannot not see multiple tables in a Stored Procedure output.
Another option is to use Views in your DB & use these to get your opening & closing balances & transactions.
Alternatively you could use sub reports that get the closing and opening balance & then calculate each line.
How you do it is up to you.

The following link contains Crystal Reports Samples & should assist you; SAP Crystal Reports Samples[^]

Kind Regards
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900