I don't know what you mean by formatting codes. How a database is mapped, can be unknowable. If it is SQL server and they have used things like foreign keys you might be able to have SQL create a picture of how your database is related. If all you have is the report, you can check its datasource, if they are just tables, it will show how each table is linked to others in the report. If it runs from a stored procedure, you can go into the database and look for the stored procedure, that will also tell you how the data is linked, unless they encrypted the stored proc. finally, if they use an XML file, like I do, you are completely out of luck, unless they use several and have to link them (I don't, so determining this would be completely hopeless).
Hopefully, one of the above will help you to figure out how the report works, which isn't to say that you can make it work the way you want, but, hopefully, it is a step in right direction.