is Rvstyle need and Page format problem

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
zekeriye
Posts: 32
Joined: Thu Sep 15, 2005 8:09 pm
Location: Turkey
Contact:

is Rvstyle need and Page format problem

Post by zekeriye »

Hi;

Some of documents all of them include one big table at A4 Paper. The table is full page of A4. My programs fill that table.

In the program we were found some text and replace it or fing a table and fill it.

we filling the documents change textsyle and para style. With using richview we do it with using rvstyle component.
1)
How can I change textsyle and parastyle of current documents add or change ? (dinamic)

2) When th documents is full A4 with a table inserting another full page table we saw two page data on the one page view. (We always using zoom factor %100, paper size A4.)

3) Some of documents are orentation is portrait, some of them landscape.
We change paper orentation onshow events of editor form and sometimes paper orientation does not change. ? How can we solve this problem. (On the richview we used RVprint component's event for this)
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

As for (1), you can still use RVStyle object accessible as SRichViewEdit1.RichViewEdit.Style

As for the rest of question, Ilya will answer later.
I am not sure that I understand the problem (2). Can you create a screenshot and send to [email protected] ?
proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Post by proxy3d »

3) Some of documents are orentation is portrait, some of them landscape.
We change paper orentation onshow events of editor form and sometimes paper orientation does not change. ? How can we solve this problem. (On the richview we used RVprint component's event for this)


In the document which you have sent, DocParameters. Orientation = 2. This value - out of bounds (poPortrait = 0; poLandscape = 1). How do you assign value to Orientation? Please reassign value in PageSetup and save document.
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

What version of Delphi/C++Builder and TRichView do you use?
zekeriye
Posts: 32
Joined: Thu Sep 15, 2005 8:09 pm
Location: Turkey
Contact:

Post by zekeriye »

We use Delphi7 Enterprise with Trichview v10 (25.03.2008 date)

We set page orientation using this code;


// XXMARGIN is a record and store page setup paramaters from database

procedure TFORMRTF.FormShow(Sender: TObject);
begin
IF XXMARGIN.YATAY=0 THEN
SCALERV.PageProperty.Orientation := poPortrait
ELSE
SCALERV.PageProperty.Orientation := poLandscape;
//
SCALERV.SetMarginMM(XXMARGIN.SOL,XXMARGIN.UST,XXMARGIN.SAG,XXMARGIN.ALT);
//
SclRVRuler1.Scrolled;
SclRVRuler2.Scrolled;
SCALERV.FORMAT;
SCALERV.REPAINT;
//

end;


After adding
SCALERV.FORMAT;
SCALERV.REPAINT;
those lines all of documents page orientation is correct.

after this code;
SCALERV.SetMarginMM(XXMARGIN.SOL,XXMARGIN.UST,XXMARGIN.SAG,XXMARGIN.ALT);

we have to write those two lines code. But yours action test does not include them.
Post Reply