Many thanks, Rick.
Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Many thanks, Rick.
Regards, saludos.
nageswaragunupudi wrote:Can you please try this function and provide your valuable feed-back?
function PrintPDF( cPdf ) local oWord, oDoc, lVisible if Empty( cPdf ) .or. !File( cPdf ) MsgAlert( "Invalid File Name" ) return .f. elseif ( oWord := WinWordObj() ) == nil MsgAlert( FWString( "Word not installed" ) ) return .f. endif oWord:DisplayAlerts := .f. lVisible := oWord:Visible oWord:Visible := .f. oDoc := oWord:Documents:Open( truename( cPdf ), .f., .t. ) oDoc:PrintOut() oDoc:Close() oWord:Visible := lVisible return .t.
dutch wrote:Dear Master Rao & Karinha,
This code is not working. It prints unreadable text.
Thanks all.
nageswaragunupudi wrote:Can you please try this function and provide your valuable feed-back?
function PrintPDF( cPdf ) local oWord, oDoc, lVisible if Empty( cPdf ) .or. !File( cPdf ) MsgAlert( "Invalid File Name" ) return .f. elseif ( oWord := WinWordObj() ) == nil MsgAlert( FWString( "Word not installed" ) ) return .f. endif oWord:DisplayAlerts := .f. lVisible := oWord:Visible oWord:Visible := .f. oDoc := oWord:Documents:Open( truename( cPdf ), .f., .t. ) oDoc:PrintOut() oDoc:Close() oWord:Visible := lVisible return .t.