lebans rtf2

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi !

I built the ocx into an application and everything works perfect but in the
runtime versions I cant insert pictures into the richtextbox.
I can past it from the clipboard but after saving and reloading the record
the control is emty.
I'm using Access 2003 on WinXP SP2 and a SQLexpress as Backend.

Any help would be nice. Maybe Stepan reads this.

Thanks Thomas
 
I don't see how this could be a Runtime issue. Are there no error messages
at all?

Perhaps, just perhaps, the MaxCharsAllowed property is not set high enough
on the runtime only systems to allow the Image to be inserted in the RTF
control. Remember, any image pasted is first converted to an uncompressed
Bitmap.
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Hi Stephen.

Youre right. It seems to be the imagesize. How can I catch if the picture
is to big and throw a message for the user ?

Thanks Thomas
 
There's several methods available to you:

1) Use a hidden Image control or a Hidden form containing an Image control
to initially load the selected Image. Compare the size of the Image
control's PictureData property to the current RTF2 control's MaxCharsAllowed
prop.

2) Since you are currently using the Clipboard, query the Clipboard object
for the current size of the copied Image it contains. This would require
some GDI coding but there is lot sof sample code out there.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Hi Stephen !

I'm back from holiday ;) !
I can reproduce the problem in an example database. It not only in
runtime systems.
I've uploaded an mdb to
http://www.file-upload.net/download_21.08.06_h4s89e.zip.html
Two fields with data.
With small pictures its ok with bigger not.
The maxcharacters paramter is set to 0.
If I cant get it to work I've to buy a commercial control and I've
already built so much code around your control.
Any help on this would be great.

Thanks Thomas
 
Back
Top