Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #5013
| From | Alain Carpentier <alain.dot.carpentier@brutele.dot.be> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Problem with print. Somebody help!!!!!!!!!! |
| Date | 2013-04-03 22:59 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <kji580$fl7$1@speranza.aioe.org> (permalink) |
| References | (2 earlier) <f2def972-673b-4a6a-bd79-2be4184245c8@googlegroups.com> <kjeqd0$9g8$1@speranza.aioe.org> <16643773-2d14-43ca-bb65-87343dbda72e@googlegroups.com> <kjh5mk$lpa$2@speranza.aioe.org> <11ccf44c-96ac-4296-8a3a-39bfb007fa0b@googlegroups.com> |
Hi Georges,
With this Method, the PrintSetup window is displayed. Select the paper
size and orientation. The editing window is adjusted accordingly.
There is still work to adapt other Methods taking into account the
choice (FilePrinterSetup and FilePrint) for examples oPrinter as a
export variable of PadShellWindow and oRichEdit:Print(oPrinter) instead
of oRichEdit:Print().
METHOD RTFPageSetup() CLASS PadWin
LOCAL structDevMode as _WINDEVMODE
LOCAL oPrinter as OBJECT
LOCAL hDC as ptr
LOCAL pt is _WINPOINT
LOCAL liOldMapMode as LONG
oPrinter := PrintingDevice{}
IF oPrinter:IsValid()
if oPrinter:SetUp()
structDevMode := oPrinter:GetDevMode()
IF structDevMode.dmOrientation = DMORIENT_LANDSCAPE
self:nWidth := Integer(oPrinter:PaperHeight * 5.67)
ELSE
self:nWidth := Integer(oPrinter:PaperWidth* 5.67)
ENDIF
hDC := CreateCompatibleDC(null)
IF SendMessage(oDCRichEdit:Handle(), EM_SETTARGETDEVICE,
DWORD(_cast, hDC), self:nWidth) != 0
SetProp(oDCRichEdit:Handle(), String2Psz("TargetDC"), hDC)
ELSE
DeleteDC(hDC)
ENDIF
hDC := GetDC(self:Handle())
liOldMapMode := SetMapMode(hDC, MM_TWIPS)
pt.x := nWidth
pt.y := 0
LPtoDP(hDC, @pt, 1)
SetMapMode(hDC, liOldMapMode)
DeleteDC(hDC)
self:nWidth := int(pt.x * 1.181019332162)
self:RePaint()
ENDIF
ENDIF
return self
Regards
Alain
Le 3/04/2013 17:14, BGeorge a écrit :
> Alain,
>
> I have tested the application but PageSetup brings message "Not yet implemented."
> In RichEdit:PrintSetup prints without problem.
> Regards
> George
>
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Problem with print. Somebody help!!!!!!!!!! BGeorge21@in.gr - 2013-03-30 10:09 -0700
Re: Problem with print. Somebody help!!!!!!!!!! Alain Carpentier <alain.dot.carpentier@brutele.dot.be> - 2013-03-31 12:32 +0200
Re: Problem with print. Somebody help!!!!!!!!!! BGeorge <bgeorge21@in.gr> - 2013-04-02 01:04 -0700
Re: Problem with print. Somebody help!!!!!!!!!! BGeorge <bgeorge21@in.gr> - 2013-04-02 01:08 -0700
Re: Problem with print. Somebody help!!!!!!!!!! Alain Carpentier <alain.dot.carpentier@brutele.dot.be> - 2013-04-02 16:36 +0200
Re: Problem with print. Somebody help!!!!!!!!!! BGeorge <bgeorge21@in.gr> - 2013-04-03 02:23 -0700
Re: Problem with print. Somebody help!!!!!!!!!! Alain Carpentier <alain.dot.carpentier@brutele.dot.be> - 2013-04-03 14:01 +0200
Re: Problem with print. Somebody help!!!!!!!!!! BGeorge <bgeorge21@in.gr> - 2013-04-03 08:14 -0700
Re: Problem with print. Somebody help!!!!!!!!!! Alain Carpentier <alain.dot.carpentier@brutele.dot.be> - 2013-04-03 22:59 +0200
Re: Problem with print. Somebody help!!!!!!!!!! BGeorge <bgeorge21@in.gr> - 2013-04-04 12:23 -0700
Re: Problem with print. Somebody help!!!!!!!!!! BGeorge <bgeorge21@in.gr> - 2013-03-31 09:19 -0700
Re: Problem with print. Somebody help!!!!!!!!!! Gustavo Biasone <rosario.soft@gmail.com> - 2013-04-01 08:10 -0700
Re: Problem with print. Somebody help!!!!!!!!!! BGeorge <bgeorge21@in.gr> - 2013-04-01 08:18 -0700
csiph-web