Search found 100 matches

by vit
Tue Apr 09, 2019 9:39 am
Forum: ScaleRichView
Topic: Changing header/footer style in code
Replies: 1
Views: 43702

Changing header/footer style in code

Hi! What is the correct way of changing items style in header/footer? In an example https://drive.google.com/open?id=1hV-fSCEwajefjdGkqe3-q-swnvsbJBQs (compiled with v7.2.1 version of SRVE under XE6) try to do these steps: 1. Activate the Header and type any text 2. Deactivate the Header by dbl ...
by vit
Fri Nov 03, 2017 3:55 pm
Forum: Support
Topic: Columns width for procedure that sets best fit
Replies: 2
Views: 14684

Re: Columns width for procedure that sets best fit

Cell.BestWidth (when measured in pixels) does not include cell padding and border width. So, when the cell width is set by BestWidth, its full width is: Full-Cell-Width = (CellBorderWidth + CellHPadding) * 2 + BestWidth. In my proc I only have cell-content-width. So I need to calc Cell.BestWidth ...
by vit
Fri Nov 03, 2017 2:13 pm
Forum: Support
Topic: Columns width for procedure that sets best fit
Replies: 2
Views: 14684

Columns width for procedure that sets best fit

Hello! Related topic for this question is http://www.trichview.com/forums/viewtopic.php?f=2&t=8709 Now I want to implement SetTableBestFit for the table. As you can see from the source topic, some columns are wider than required and they should be make narrower. So my procedure calcs the content ...
by vit
Fri Sep 08, 2017 9:03 am
Forum: Support
Topic: Converting RTF into RVF using invisible RVE
Replies: 2
Views: 14765

Re: Converting RTF into RVF using invisible RVE

Thanks!
by vit
Thu Sep 07, 2017 4:14 pm
Forum: Support
Topic: Converting RTF into RVF using invisible RVE
Replies: 2
Views: 14765

Converting RTF into RVF using invisible RVE

Hi! This question is related to the question I've asked before http://www.trichview.com/forums/viewtopic.php?f=2&t=8850&sid=c1d1372459c31d388b15c4f307f83c2a . So I chose the second option with invisible form and converting RTF into RVF. The problem is initial styles in RTF differ from styles I get ...
by vit
Wed Sep 06, 2017 11:40 am
Forum: Support
Topic: Insert RTF at the current line in TRichView
Replies: 4
Views: 19379

Re: Insert RTF at the current line in TRichView

Ok, thanks!
by vit
Wed Sep 06, 2017 11:26 am
Forum: Support
Topic: Insert RTF at the current line in TRichView
Replies: 4
Views: 19379

Re: Insert RTF at the current line in TRichView

Or do you want to add RTF content to the end of existing paragraph?
Yes I ment that
by vit
Wed Sep 06, 2017 10:24 am
Forum: Support
Topic: Insert RTF at the current line in TRichView
Replies: 4
Views: 19379

Insert RTF at the current line in TRichView

Hi!

I need to insert RTF into TRichView at the current line, without a new line. In TRichViewEdit I use InsertRTFFromStreamEd and it works fine. But TRichView.LoadRTFFromStream does the new line. Do I need to adjust any settings to avoid inserting at the new line?

Thanks!
by vit
Mon May 15, 2017 9:27 am
Forum: Support
Topic: Set table columns best fit
Replies: 5
Views: 24002

Re: Set table columns best fit

Table behaves strangely, columns get very wide. I prepared a demo project that'll help you to see the table and what I'm trying to do. Could you look at it? Just be sure that file Table.rvf is placed at the same path as Project1.exe. Run it (you'll see the table in initial state) and push the ...
by vit
Sat May 13, 2017 12:20 am
Forum: Support
Topic: Set table columns best fit
Replies: 5
Views: 24002

Re: Set table columns best fit

Including rvpaoNoWrap in Options for the table's ParaStyle will put the cell's content in one line, which may make column wider, right? I do not want it for all cells, for example, I don't want it at first three columns. Does it mean that I should set rvpaoNoWrap for the all cells that don't contain ...
by vit
Fri May 12, 2017 8:11 am
Forum: Support
Topic: Set table columns best fit
Replies: 5
Views: 24002

Set table columns best fit

Hello!


I have a table that has columns much wider that it's necessary. Is there a way to reduce some of columns width (starting from index=3) so that a width on each of them is only enough to include a content w/o extra space?
TableBestFit.png
TableBestFit.png (9.49 KiB) Viewed 24002 times
Thanks!
by vit
Tue Jan 17, 2017 6:53 am
Forum: ScaleRichView
Topic: SRVE Changes page orientation after TsrvActionPrint executin
Replies: 9
Views: 91880

Not sure if it may help but I brought two files. First file is RVF I save just after opening a content in my SRVE http://webfiles.ru/files/45489279 . It's disappointing that when I open it in ActionTest the page orientation is Portrait. Despite of the fact that it was saved with the Landscape and it ...
by vit
Mon Jan 16, 2017 8:18 am
Forum: ScaleRichView
Topic: SRVE Changes page orientation after TsrvActionPrint executin
Replies: 9
Views: 91880

I do not understand why these orientations are different. When you load a file, the component first loads page properties in RichViewEdit.DocParameters, and then assigns them to PageProperty, so properties must be equal. Yes, it seems that orientations differ for some reason. I'm still unable to ...
by vit
Mon Jan 16, 2017 4:56 am
Forum: ScaleRichView
Topic: SRVE Changes page orientation after TsrvActionPrint executin
Replies: 9
Views: 91880

I've just tried it didn't help (both TrvActionSave and TsrvActionPrint are on a TDataModule)
by vit
Sun Jan 15, 2017 12:27 pm
Forum: ScaleRichView
Topic: SRVE Changes page orientation after TsrvActionPrint executin
Replies: 9
Views: 91880

SRVE Changes page orientation after TsrvActionPrint executin

Hi! 1. I load RVF in SRVE (document has landscape orientation) 2. Click Print button (use TsrvActionPrint action) 3. In Print dialog click OK 4. Now document orientation is Portrait. Not able to reproduce it in ActionTest but It happens in between 2. and 3. (I found it out with debugger) at the line ...