Search found 17 matches

by jp
Fri Jun 27, 2008 1:10 pm
Forum: Support
Topic: LoadRVFFromStream and problems with bullets
Replies: 13
Views: 29300

I thought that I had solved the problem, I just did a free and nil for the RVEdit and created him again - every one happy. But that was only until another functionality did work any more. It look like that creating the RVEdit in code initialize some thing in the Styles and I have tried every thing I ...
by jp
Mon Jun 02, 2008 12:48 pm
Forum: Support
Topic: LoadRVFFromStream and problems with bullets
Replies: 13
Views: 29300

Sergey Tkachenko I have solved my problem. I found that very deep in the code that the Richview editor object destroyed and a new where created. In the create process I believe that some proproties where set that did that the styles where initialized. And just for this piece where I had the troubles ...
by jp
Fri May 30, 2008 3:12 pm
Forum: Support
Topic: LoadRVFFromStream and problems with bullets
Replies: 13
Views: 29300

Dear Sergey That I can't set the ListNo before loading the rvf sound logical :oops: (I presume that ListNo = ListStyle number?) Yes I'm sure that "i := RVStyleText.ListStyles.Count;" > than 0 is. i := RVStyleText.ListStyles.Count; n := RVStyleText.ListStyles[0].Levels.Count; x := RVE.Style.ItemNo; y ...
by jp
Fri May 30, 2008 11:36 am
Forum: Support
Topic: LoadRVFFromStream and problems with bullets
Replies: 13
Views: 29300

I'm not getting any further. I can not send you the file, it's incorporated in bigger project file. But I can show you the code wher I get the error. In the component TRVStyle we have defined 3 ListStyles and they each got 3 Levels. In code between the "//----------" I count the ListStyle and Levels ...
by jp
Wed May 28, 2008 1:09 pm
Forum: Support
Topic: LoadRVFFromStream and problems with bullets
Replies: 13
Views: 29300

Dear Sergey of some one else I'm not getting any further - I have tried all what I could think off. I think your are right in that the old rvf is saved whit out any styles. But the user can set the numbering and the indent. I think that this result in that his saving these styles and by rereading ...
by jp
Tue May 27, 2008 8:45 pm
Forum: Support
Topic: LoadRVFFromStream and problems with bullets
Replies: 13
Views: 29300

I thought that I maybe could set the rvfoConvUnknownStylesToZero option
this way:

RVE.RVFOptions := RVE.RVFOptions + [rvfoConvUnknownStylesToZero];

But ir doesn't seems to help - Anny suggestions?

JP
by jp
Tue May 27, 2008 8:31 pm
Forum: Support
Topic: LoadRVFFromStream and problems with bullets
Replies: 13
Views: 29300

Thanks

The RVFWarnings is [rvfwConvUnknownStyles] :oops: I should have thought of that my self.

Now the question where can I find where hi loads the Styles :-)

JP
by jp
Tue May 27, 2008 7:30 pm
Forum: Support
Topic: LoadRVFFromStream and problems with bullets
Replies: 13
Views: 29300

LoadRVFFromStream and problems with bullets

I'm working on a old project where the Richview component is used. I have a problem when I try to load a stream with LoadRVFFromStream. The LoadRVFFromStream function returns False some time, but not all the time. It seems that it's when I have used indent or bullets/numbering in the richview. Is ...
by jp
Wed May 14, 2008 9:04 am
Forum: Support
Topic: Detection af aan jpeg in a TMemorystream for a RichView
Replies: 11
Views: 25727

Thanks Sergey This great - I can now wrtie a function witch can handle all types Images. Only two more questions: Are I right in assuming that the header, Item name, Image Class are items that RichView is setting in the stream? And how can I best read backwards in the stream? I mean how do I come ...
by jp
Fri May 09, 2008 1:22 pm
Forum: Support
Topic: Detection af aan jpeg in a TMemorystream for a RichView
Replies: 11
Views: 25727

Thanks Sergey, One remark. If the jpeg have been resized in ActionTest2007 the width and height is set between the TJPEGImage and the FF D8(the hex for the begin of the jpeg) I have made it so that I look up the FF D8 in the stream en then set the position back -4. Then I read the size with Source ...
by jp
Thu May 08, 2008 3:32 pm
Forum: Support
Topic: Detection af aan jpeg in a TMemorystream for a RichView
Replies: 11
Views: 25727

Tanks Sergey,

Could give me a hint how to read the size. I have tried all what I could think off but nothing works.

Code: Select all

GetMem(Buf, 4);
Source.Read(Buf[0], 4);
S := Copy(Buf, 1, 4);
But how doe get as a Integer?

JP
by jp
Tue May 06, 2008 6:59 am
Forum: Support
Topic: Detection af aan jpeg in a TMemorystream for a RichView
Replies: 11
Views: 25727

Thanks Sergey I realize that this is not a RichView problem. But if any one can help it would be appreciated very much. I need to copy a section of a memorystream an present this in a RichView. The stream, from where I have to copy this section, is made in the richviewactions demo. Each section ...
by jp
Tue Apr 29, 2008 4:06 pm
Forum: Support
Topic: Detection af aan jpeg in a TMemorystream for a RichView
Replies: 11
Views: 25727

Thanks Sergey

Your right - I have a problem if the user type in TJPEGImage. But do you se another options?

JP
by jp
Tue Apr 29, 2008 2:57 pm
Forum: Support
Topic: Detection af aan jpeg in a TMemorystream for a RichView
Replies: 11
Views: 25727

Detection af aan jpeg in a TMemorystream for a RichView

How can ik locate a jpeg in a TMemoryStream. I have to copy part of this stream to be shown in a RichView. I copy this part op basis of a token - $$name$$ content $$. But if there is a jpeg in this part of the stream there are a big chance that also ´$$´ are in the binery of the jpeg. I looking for a ...
by jp
Fri Apr 25, 2008 8:37 am
Forum: Support
Topic: Corupted image in RichEdit
Replies: 5
Views: 17640

Thanks Sergey and Pieter for helping me out.

I have found the reason for this behavior. I was copying a part out of a stream on basis of an token and this token was also found in the binary from the jpeg :-(

Thus no problem with Richview :-)

Thanks

JP