Many thanks, Rick.
Regards, saludos.
nageswaragunupudi wrote:Can you please try this function and provide your valuable feed-back?
- Code: Select all Expand view
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?
- Code: Select all Expand view
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.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 70 guests