|
of_printreport
|
|
Full name
|
pfc_n_cst_dssrv_report.of_printreport
|
Access
|
public
|
Extend of
|
string
|
Return value
|
string
|
Prototype
|
public function string of_printreport(boolean,boolean)
|
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
ids_requestor.Print(ab_CancelDialog)
// Undo changes
ls_Return = of_Undo(1)
Return ls_Return
end function