pfc_print


pfcmain.pbl   >   pfc_u_rte   >   pfc_print   

Full name pfc_u_rte.pfc_print
Access public
Extend of integer
Return value integer
Prototype event integer pfc_print()

Name Datatype
No Data

Name Datatype
li_rc integer
ls_pagerange string
lstr_printdlg s_printdlgattrib

event pfc_print;//////////////////////////////////////////////////////////////////////////////
//
//	Event:  pfc_print
//
//	Arguments:  none
//
//	Returns:  integer
//	 1 = success
//	-1 = error
//
//	Description:
//	Opens the print dialog to allow user to change print settings,
//	and then prints the RTE
//
//////////////////////////////////////////////////////////////////////////////
//	
//	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.
//
//////////////////////////////////////////////////////////////////////////////

integer	li_rc
string		ls_pagerange
s_printdlgattrib		lstr_printdlg

// Print dialog
li_rc = this.event pfc_printdlg (lstr_printdlg)
if li_rc < 0 then
	return li_rc
end if

// Reset page counters
il_currentprintpage = 0
il_currentinstance = 1

// Page Range
if lstr_printdlg.b_pagenums then
	ls_pagerange = String (lstr_printdlg.l_frompage) + "-" + String (lstr_printdlg.l_topage)
end if
li_rc = this.Print (lstr_printdlg.l_copies, ls_pagerange, lstr_printdlg.b_collate, true)

return li_rc

end event

     
Name Owner
No Data

     
Name Owner
richtextedit.print richtextedit
systemfunctions.string systemfunctions
pfc_u_rte.pfc_printdlg pfc_u_rte

     
Full name
s_printdlgattrib

     
Name Scope
No Data