Alaska Software Inc. - New page in XbpRTF
Username: Password:
AuthorTopic: New page in XbpRTF
Piotr DziurlaNew page in XbpRTF
on Sat, 09 Oct 2010 22:36:45 +0200
Hi,
how can I insert a page-break into edit RTF text? It's possible to control 
how the edited RTF-text will fill an print-page?
Piotr
AUGE_OHRRe: New page in XbpRTF
on Sun, 10 Oct 2010 05:28:36 +0200
hi,

> how can I insert a page-break into edit RTF text?

cRTFtext += "\page"

> It's possible to control how the edited RTF-text will fill an print-page?

your need a Preview, but XbpRTF() based on RichTX32.OCX does not have it.

you can show RTF with XbpMLE and oMLE:Format = 3
see more source\samples\basics\RtfHelp
also @ Alaska Website you will find this 
ftp://ftp.alaska-software.com/acsn/rtf150.zip

Codejock Commandbar have a RTF Preview, but i can not show Picture with it.

greetings by OHR
Jimmy
Piotr DziurlaRe: New page in XbpRTF
on Sun, 10 Oct 2010 14:22:51 +0200
Many thanks, Jimmy, I will test it.
Piotr
Piotr DziurlaRe: New page in XbpRTF
on Mon, 11 Oct 2010 11:19:26 +0200
Hi Jimmy
inserting "\page" works only in 50%  Editing with MS Word visualing a page 
break and print with page break. Wordpad have not visible page break, 
however print with page break. With XbpRtf  page brak is not visible and, 
big problem!, not work with print() method. Any idea?
Piotr
James Loughner Re: New page in XbpRTF
on Mon, 11 Oct 2010 13:24:13 -0400
RTF control sequences are prefixed with an esc character

Jim


On 10/11/2010 05:19 AM, Piotr Dziurla wrote:
> Hi Jimmy
> inserting "\page" works only in 50%  Editing with MS Word visualing a page 
> break and print with page break. Wordpad have not visible page break, 
> however print with page break. With XbpRtf  page brak is not visible and, 
> big problem!, not work with print() method. Any idea?
> Piotr
> 
> 
>
Piotr DziurlaRe: New page in XbpRTF
on Tue, 12 Oct 2010 09:29:49 +0200
Hey Jim,

using XbpRtf the control sequence "\page" not work. What you mind with an 
"esc" prefix?

I insert an chr(27)+'\page' text - work not too. How can I send information 
about page break

into XbpRtf():print() method?



Piotr
AUGE_OHRRe: New page in XbpRTF
on Thu, 14 Oct 2010 02:39:34 +0200
hi,

> inserting "\page" works only in 50%  Editing with MS Word visualing a 
> page break and print with page break. Wordpad have not visible page break, 
> however print with page break. With XbpRtf  page brak is not visible and, 
> big problem!, not work with print() method. Any idea?

every Line in a RTF File end with "\par"
Wordpad will print new Page after "\page\par"

you can not "see" Control Sequence in Editor.
what you "see" ist just the Result e.g. Color Text

Wordpad / RichTX32.OCX does "show" any "visual" Page Frame
like Word, it is like Notepad all in one Frame.

Wordpad have a Preview, but RichTX32.OCX have not, so you
can not "see" it in Preview with XbpRTF() which is based
on RichTX32.OCX

do not forget "Size" of Page depend on your Printer so it might
be better to Count Lines and add empty Lines ( FOR -> "\par" -> NEXT )

Printer "Size" most have Margin on Top / Bottom, so these "non printable"
Lines can be used for "Dummy" in your Source Text to show a Seperator
between Pages.

in c:\ALASKA\XPPW32\Source\samples\activex\editor\rtf.prg
METHOD RtfForm:Refresh()

you will find Line "Counter" ::oRTF:GetLineFromChar( ::oRTF:SelStart )
here you can start to modify into Page/Line/Col

greetings by OHR
Jimmy
Piotr DziurlaRe: New page in XbpRTF
on Thu, 14 Oct 2010 16:39:40 +0200
Jimmy,
many thanks for your great answer.I need page-break, while in edited text 
can be an bitmap or photo (JPG) inserted. In this way counting a lines give 
wrong result. And I want, that edited text will be printed independ on 
choiced printer.
Visuality of inserted page-break be a not problem, I can replace "\page\par" 
text with an line with text "Page break" when I load a RTF-text to edit, and 
replace with "\page\par" sequence when it will be saved.
Jimmy, what you mean, it's possible to find an library or ActiveX program, 
which is more functionally than XbpRTF class? I thing above possibility 
margin settings, print-previev, but like a XbpRTF class possibility to edit 
memory variable (not only a file) and adding functions-buttons on toolbar?
Greetings
Piotr


Uytkownik "AUGE_OHR" <AUGE_OHR*AT*WEB.DE> napisa w wiadomoci 
news:446670ff$2128cf2d$84911@news.alaska-software.com...
> hi,
>
>> inserting "\page" works only in 50%  Editing with MS Word visualing a 
>> page break and print with page break. Wordpad have not visible page 
>> break, however print with page break. With XbpRtf  page brak is not 
>> visible and, big problem!, not work with print() method. Any idea?
>
> every Line in a RTF File end with "\par"
> Wordpad will print new Page after "\page\par"
>
> you can not "see" Control Sequence in Editor.
> what you "see" ist just the Result e.g. Color Text
>
> Wordpad / RichTX32.OCX does "show" any "visual" Page Frame
> like Word, it is like Notepad all in one Frame.
>
> Wordpad have a Preview, but RichTX32.OCX have not, so you
> can not "see" it in Preview with XbpRTF() which is based
> on RichTX32.OCX
>
> do not forget "Size" of Page depend on your Printer so it might
> be better to Count Lines and add empty Lines ( FOR -> "\par" -> NEXT )
>
> Printer "Size" most have Margin on Top / Bottom, so these "non printable"
> Lines can be used for "Dummy" in your Source Text to show a Seperator
> between Pages.
>
> in c:\ALASKA\XPPW32\Source\samples\activex\editor\rtf.prg
> METHOD RtfForm:Refresh()
>
> you will find Line "Counter" ::oRTF:GetLineFromChar( ::oRTF:SelStart )
> here you can start to modify into Page/Line/Col
>
> greetings by OHR
> Jimmy
>
>
>
>
>
>
>
>
>
>
AUGE_OHRRe: New page in XbpRTF
on Thu, 14 Oct 2010 18:10:44 +0200
hi,

> Jimmy, what you mean, it's possible to find an library or ActiveX program,
> which is more functionally than XbpRTF class? I thing above possibility
> margin settings, print-previev, but like a XbpRTF class possibility to
> edit memory variable (not only a file) and adding functions-buttons on
> toolbar?

TX Text Control Pro ActiveX
http://www.textcontrol.com

greetings by OHR
Jimmy
Piotr DziurlaRe: New page in XbpRTF
on Tue, 19 Oct 2010 22:15:16 +0200
Jimmy,
have you more experience with TxText Control? I have download an demo, 
generally looks great.
However I have problem with fonts-pulldown-menus (type and size) on the 
TxButtonBar. It's work not properly - pull down, but after a choice from 
this, it's don't pull up. The same is with a demo TxWord.EXE. I observe this 
on computer with Windows2000. On WindowsXp this work good.
Any idea?
Greetings
Piotr

Uytkownik "AUGE_OHR" <AUGE_OHR*AT*WEB.DE> napisa w wiadomoci 
news:2034d44e$5782078e$8bdca@news.alaska-software.com...
> hi,
>
>> Jimmy, what you mean, it's possible to find an library or ActiveX 
>> program,
>> which is more functionally than XbpRTF class? I thing above possibility
>> margin settings, print-previev, but like a XbpRTF class possibility to
>> edit memory variable (not only a file) and adding functions-buttons on
>> toolbar?
>
> TX Text Control Pro ActiveX
> http://www.textcontrol.com
>
> greetings by OHR
> Jimmy
>
>