Abort Printing

forum.reportbuilder (2000-2005) & forum.td.reportbuilder (2005-2010)
NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

Abort Printing

Post by NewsgroupServer » 30 Aug 2007, 01:38

 Posted by:  Chris Tsui 

Is there a way to abort priniting? In my prograom, I call the function
SalReportPrint. This sends the SAM_ReportStart message. Within
SAM_ReportStart, I execute sql statmentst. If there is an error in the sql
statement, the program will contrinue to run and the report will get
generated with no/incorrect data (Note that I have overrided the
SAM_SqlError message so users don't have the option to Halt).

Thanks and Regards

Chris Tsui

NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

Abort Printing

Post by NewsgroupServer » 30 Aug 2007, 08:30

 Posted by:  Mirko BONANNO 

Hi Chris,

use SAM_ReportFetchInit instead of SAM_ReportStart (hol says "Gupta ignores
SAM_ReportStart's return value") and Return FALSE if there is an error !!!

HTH
Mirko

Return to “td.reportbuilder”

Who is online

Users browsing this forum: Ccbot [Crawler] and 0 guests