English
Source / code snippets

Print Rtf Rtfprn

 

CompileMarkSeparation
 {$cleq}
 {$pushkeyword R_*}
 $U RTFHandling.pcu=R_'RTF-PCU einbinden
 $U objects.pcu=R_
window 0,0-%maxx,%maxy
var rtf_dll&= R_INTITFORCREATERTF()'DLL laden mit PCU
var RichEdit&=R_CREATERICHEDIT(%hwnd,"",10000,0,0,0,0)' Richedit erstellen mit PCU
var rtf_hdc&=R_PREPAREFORLINEBREAK(RichEdit&)' Device Context erzeugen mit PCU
R_Init_object(RichEdit&)'Zum Bildempfang vorbereiten
RTF("LoadRTF",RichEdit&,"Bilder-Album.rtf")
startprint "*xx"
RTFPrn(RichEdit&)
endprint
R_DEINITRTF(RichEdit&,rtf_hdc&,rtf_dll&)'RTF-Aufräumen
R_DeInit_object()'RTF-Aufräumen
End

proc RTFPrn

    Parameters wnd1&
    SetMapMode(&pdc,1)
    var iWidthTwips&=Int((GetDeviceCaps(&pdc,8)/GetDeviceCaps(&pdc,88)))*1440
    var iHeightTwips&=Int((GetDeviceCaps(&pdc,10)/GetDeviceCaps(&pdc,90)))*1440
    declare fr#
    dim fr#,48
    long fr#,0=&pdc,&pdc,GetDeviceCaps(&pdc,PHYSICALOFFSETX),GetDeviceCaps(&pdc,PHYSICALOFFSETY),iWidthTwips&,iHeightTwips&
    SendMessage(wnd1&,EM_SETSEL,0,-1)
    SendMessage(wnd1&,EM_EXGETSEL,0,addr(fr#)+40)
    var cpMin&=0

    while 1

        cpMin&=SendMessage(wnd1&,EM_FORMATRANGE,1,addr(fr#))
        case cpMin&>=long(fr#,44) :break
        long fr#,40=cpMin&
        nextPage
        SetMapMode(&pdc,1)

    wend

    dispose fr#
    SendMessage(wnd1&,EM_FORMATRANGE,0,0)

endproc

 
10/13/10  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.839 Views

Untitledvor 0 min.
Uwe Starke11/17/23
Uwe Lang06/20/23
RudiB.01/18/22
Torben Nissen01/27/21
More...

Themeninformationen

this Topic has 1 subscriber:

iF (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie