Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #5892

NewRichEdit control problem with print.

Newsgroups comp.lang.clipper.visual-objects
Date 2013-10-03 09:40 -0700
Message-ID <d87e4c66-e9e8-41ea-821f-e186b23eccdc@googlegroups.com> (permalink)
Subject NewRichEdit control problem with print.
From George Tritsos <GeorgeTritsos@yahoo.gr>

Show all headers | View raw


I use the NewRichEdit control (downloaded from www.piko.com).

My code:
Class MyDlgPrint AS DIALOGWINDOW
    PROTECT oPrinter  AS PrintingDevice

METHOD BtnPrint() CLASS MyDlgPrint
  LOCAL strucDevMode  AS  _WINDEVMODE
  
  oPrinter:=PrintingDevice{}
  structDevMode:=oPrinter:GetDevMode()
  structDevMode.dmOrientation:=2
  structDevMode.dmCopies:=2
  *
  oPrinter:UpdateDevMode()
  oDCRichEdit1:TextValue:=PrintText
  oDCRichEdit1:Print(oPrinter)
RETURN NIL

1)After oPrinter:UpdateDevMode() i 've checked the properties and its ok for orientation and copies but printing always orientation=1 and copies=1, i also checked NewRichEdit Print method with debugger and the printing device has the right properties. 

2)And how to print from Page 1 to 2 or from 2 to 3.

Thanks in advance
George

Back to comp.lang.clipper.visual-objects | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

NewRichEdit control problem with print. George Tritsos <GeorgeTritsos@yahoo.gr> - 2013-10-03 09:40 -0700
  Re: NewRichEdit control problem with print. George Tritsos <GeorgeTritsos@yahoo.gr> - 2013-10-03 09:42 -0700

csiph-web