eric.dizon
11th June 2014, 20:24
Is this possible and what command to use to either print a report in D60 or call its Print Dialog session.

Thanks.

mark_h
11th June 2014, 20:33
Not exactly sure what you are talking about exactly - but I use DLL's for all of my AFS code including reporting sessions. You can check AFS/OLE/DDC forum for how I do this.

eric.dizon
11th June 2014, 20:47
I create a General library under program scripts that is being used by my DAL. In the functions I am populating a Log file table that I need to display a D60 report when it has content.

My question basically then is how do I call a report or report session within a program script that is a General library?

mark_h
11th June 2014, 21:34
That is LN and out of my league - wait for one of the LN experts to appear. I am sure there is some fancy way(or better way) of doing this that us poor old 4c4 members do not have access to. :)

JaapJD
11th June 2014, 22:58
You don't need to create a print session to print a report. Just open the report with brp.open(), read your data and call brp.ready() and close it when you are ready with brp.close(). You can just do this in a DLL function.

But... calling this DLL function from a DAL is not a good idea. Then you are printing a report within the database transaction. Better is to call it from your session in the after.update.db.commit section.

eric.dizon
11th June 2014, 23:31
Thanks JaapJD and mark_h this had helped me in my issue.