Search found 119 matches

by martindholmes
Sat Dec 20, 2008 5:18 pm
Forum: Support
Topic: DefStyleName not working?
Replies: 3
Views: 11242

That was the one I meant. I had assumed it would control the names given to new styles when they were created. That would be useful.

Cheers,
Martin
by martindholmes
Fri Dec 19, 2008 12:58 pm
Forum: Support
Topic: DefStyleName not working?
Replies: 3
Views: 11242

DefStyleName not working?

Hi there,

I have the following defined in my TRVStyle:

DefStyleName: п»їп»їп»їStyle_%d

However, when I paste text in with a new style, the style name seems to be set to "Font Style". Has anyone else seen this?

Cheers,
Martin
by martindholmes
Fri Dec 12, 2008 12:33 pm
Forum: Support
Topic: RVFSaveToStream problem
Replies: 3
Views: 11202

That did it! But I'm not sure why.

Cheers,
Martin
by martindholmes
Thu Dec 11, 2008 1:18 pm
Forum: Support
Topic: RVFSaveToStream problem
Replies: 3
Views: 11202

RVFSaveToStream problem

Hi Sergey, I'm having a very strange problem with a TRichViewEdit control. I load small documents into it from streams, and save them out to streams. Here's the problem: I load one of these documents, with colours and formatting, and it loads fine. Then I make a text style change (say I add underlin...
by martindholmes
Wed Dec 10, 2008 1:20 pm
Forum: Support
Topic: Loading and saving background colours to stream in RVF
Replies: 1
Views: 8166

Loading and saving background colours to stream in RVF

In my app, I save small documents to RVF streams and reload them when required, and when text is highlighted with a background colour, the colour is lost when the document is reloaded. The Help file says: rvfoSaveBack: If set, background (color and image) is saved in RVF.This flag affects only savin...
by martindholmes
Wed Oct 01, 2008 12:31 pm
Forum: Support
Topic: ExtractMetafilesBitmaps turned on, but TMetafiles appear
Replies: 1
Views: 8238

ExtractMetafilesBitmaps turned on, but TMetafiles appear

Hi there, When I load RTF files into a TCustomRichViewEdit with ExtractMetafilesBitmaps set to True, I still find that graphics appear as TMetafile. Is this right? Is there an easy way to convert each TMetafile to a TJPEGImage? When I'm saving out into a custom format, I need to turn TMetafiles into...
by martindholmes
Thu Sep 25, 2008 5:13 pm
Forum: Support
Topic: Preventing image loading from HTML with TRVHTMLImporter
Replies: 1
Views: 8431

Preventing image loading from HTML with TRVHTMLImporter

Hi there, I'm still using TRVHTMLImporter rather than the new component, and I'd like to know how to prevent images from being loaded when loading a document. I've tried doing various things in OnImageRequired2, but nothing seems to work; images are still imported. TRichViewEdit has IgnorePictures i...
by martindholmes
Thu Sep 25, 2008 4:19 pm
Forum: Examples, Demos
Topic: [How to] How to use PNG and GIF images in TRichView
Replies: 17
Views: 188353

Typo in documentation

The TRichView Help file has this:

Unit RVMisc.

procedure RV_RegisterPngGraphic(ClassType: TGraphicClass);

whereas the correct unit is CRVData, as you mentioned above.


Cheers,
Martin
by martindholmes
Tue Aug 12, 2008 12:11 pm
Forum: Support
Topic: Small Help file error
Replies: 1
Views: 8208

Small Help file error

The Help file says that TRVOfficeConverter.Stream is a TMemoryStream, but according to RVOfficeCnv.pas, line 94, it's a TRVMemoryStream.

Cheers,
Martin
by martindholmes
Thu Aug 07, 2008 3:33 am
Forum: Support
Topic: XHTML and li/@value attribute
Replies: 2
Views: 10496

The vast majority of lists start from 1, so I don't think there's much to lose there. Also, I think anyone using XHTML 1.1 doesn't care about IE6 (we don't support it in any of our projects, and we haven't for a long time), so I think removing the attribute in XHTML is definitely the right decision....
by martindholmes
Wed Aug 06, 2008 2:00 pm
Forum: Support
Topic: XHTML and li/@value attribute
Replies: 2
Views: 10496

XHTML and li/@value attribute

In CRVData.pas, TCustomRVData.SaveHTMLToStreamEx, this appears at line 3136: if marker.GetLevelInfo(RVStyle).HasNumbering then RVWrite(Stream,Format('<li value=%s', [RV_HTMLGetIntAttrVal(marker.Counter, Options)])) However, the "value" attribute is not allowed in XHTML 1.0 Strict or 1.1. I...
by martindholmes
Wed Jul 16, 2008 3:48 pm
Forum: Support
Topic: AppendRVFFromStream showing errors
Replies: 5
Views: 15321

I'm just in the process of doing that. I hadn't noticed the new release.

Thanks,
Martin
by martindholmes
Fri Jul 11, 2008 12:06 pm
Forum: Support
Topic: AppendRVFFromStream showing errors
Replies: 5
Views: 15321

An update on this:

Setting RichViewCompareStyleNames to True doesn't help; the same errors occur. So I'm still a bit stuck here. I guess I'll have to wait for the fix to be released.

Cheers,
Martin
by martindholmes
Sat Jun 21, 2008 9:48 pm
Forum: Support
Topic: AppendRVFFromStream showing errors
Replies: 5
Views: 15321

Thanks Sergey. I have to save with style names for another section of the application, where these mini-documents share two or three global styles, which must be changed centrally sometimes; so the streams I have are saved with stylenames. I don't need to use the style names when I append them all t...
by martindholmes
Fri Jun 20, 2008 12:36 pm
Forum: Support
Topic: AppendRVFFromStream showing errors
Replies: 5
Views: 15321

AppendRVFFromStream showing errors

I'm attempting to do this: I have a set of small RVF documents saved in TMemoryStreams. Each of these documents is complete, and works perfectly when I stream it into a TRichViewEdit. I need to combine these documents together in order to save them out as a single XHTML document. To do this, I'm cre...