Hello,
I'm looking for a simple way to print with richedi5 a memofield on two pages
I Added a print-button to the sample-collector for printing samples.
Just a textsplitting is needed ( max 2 pages nothing special )
I couln't find any sample.
One page printing of imported topics

regards
Uwe
I'm looking for a simple way to print with richedi5 a memofield on two pages
I Added a print-button to the sample-collector for printing samples.
Just a textsplitting is needed ( max 2 pages nothing special )
I couln't find any sample.
One page printing of imported topics
STATIC FUNCTION PRINTTOPIC( lPreview, oTCode, cTopic, cTAuthor, cTLink )
LOCAL oPrn
LOCAL aRTF := { 0, 100 } 聽// { nFrom, nTop }
DEFINE FONT oBold NAME "Arial" SIZE 0,-56 BOLD
DEFINE FONT oMono NAME "Arial" SIZE 0,-12
DEFAULT lPreview := .f.
IF lPreview
聽 聽 PRINT oPrn NAME "FWH SAMPLE FILE" PREVIEW
ELSE
聽 聽 PRINT oPrn NAME "FWH SAMPLE FILE"
ENDIF
IF EMPTY( oPrn:hDC )
聽 聽 聽 聽 聽MsgStop( "Printer not ready!" )
聽 聽 聽 聽 聽RETURN NIL
ENDIF
PAGE
聽 聽 聽 聽 聽CURSORWAIT()
聽 聽 聽 聽 oPrn:InchSay( 0.40, 0.95, cTopic, oBold )
聽 聽 聽 聽 oPrn:InchSay( 0.50, 0.95, cTAuthor, oBold )
聽 聽 聽 聽 oPrn:InchSay( 0.60, 0.95, cTLink, oBold )
聽 聽 // 聽 nFrom := REPrintBox5( ::hWnd, hDC, ::IsSelection(), ;
聽 聽 // 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽nTop, nLeft, nRight, nBottom, nFrom )
聽 聽 聽 聽 聽aRTF := REPrintBox5( oTCode:hWnd, If( lPreview, oPrn:hDCOut, oPrn:hDC ), ;
聽 聽 聽 聽 聽 聽 聽 聽 oTCode:IsSelection(), ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 aRTF[ 2 ] + 500, 聽500, 3500, aRTF[ 2 ] + 5500, aRTF[ 1 ] )
聽
聽 聽 聽 聽 聽CursorArrow()
ENDPAGE
ENDPRINT
oBold:End()
oMono:End()
RETURN NIL
regards
Uwe
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
i work with FW.
If you have any questions about special functions, maybe i can help.

