of_printreport


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_report   >   of_printreport   

Full name pfc_n_cst_dwsrv_report.of_printreport
Access public
Extend of string
Return value string
Prototype public function string of_printreport(boolean,boolean)

Name Datatype
No Data

Name Datatype
ls_Return String

public function string of_printreport (boolean ab_convertheader, boolean ab_canceldialog);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_PrintReport
//
//	Access:  public
//
//	Arguments:
//	ab_ConvertHeader		True - change borders on header objects to be
//									underline.
//	ab_CancelDialog		True - display dialog enabling the user to cancel the
//									print job,
//									False - do not display the cancel dialog.
//
//	Returns:		String
//					The output of the Modify command (the error text or "").
//
//	Description:	Prepare a datawindow for printing, print it, and restore it to its original
//						state.  This function calls of_PrepPrint.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.0   Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
//	Copyright © 1996-1997 Sybase, Inc. and its subsidiaries.  All rights reserved.
//	Any distribution of the PowerBuilder Foundation Classes (PFC)
//	source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////

String	ls_Return

// Prepare for printing
ls_Return = of_PrepPrint(ab_ConvertHeader)
If ls_Return <> "" Then
	Return ls_Return
End if

// Print report
idw_Requestor.Print(ab_CancelDialog)

// Undo changes
ls_Return = of_Undo(1)

Return ls_Return

end function

     
Name Owner
pfc_n_cst_dwsrv_report.of_PrintReport pfc_n_cst_dwsrv_report

     
Name Owner
datawindow.print datawindow
pfc_n_cst_dwsrv_report.of_Undo pfc_n_cst_dwsrv_report
pfc_n_cst_dwsrv_report.of_prepprint pfc_n_cst_dwsrv_report

     
Full name
No Data

     
Name Scope
No Data