Serialization problems with RTF control and Access database


Author
Message
thegwill
thegwill
StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)
Group: Forum Members
Posts: 16, Visits: 177
I (reluctantly) have a requirement to use an MS Access database to store RTF textbox content and I'm having trouble with the data binding on a data maintenance form

I keep receiving Serialization errors in the Output window. Here's how things are set up:

  • MS Access table with a "OLE object" field to store the RTF
  • Business Object mapper maps this to a byte[] and is set to serialize = true
  • Strataframe RichTextbox control bound to table/column using .BusinessObject and .BindingField properties (just as I would any other data type). The BindingProperty value is the default "Rtf"

Whenever I try to add a record, edit an existing one or save a Serialization exception is thrown. I assume one or more of the above is incorrect - any help appreciated

thegwill
thegwill
StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)
Group: Forum Members
Posts: 16, Visits: 177
It's working now

I started again from scratch using a Memo field in the database (I did try this originally but without luck - that's why I ended up with byte arrays etc) and the binding all works fine

Smile

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Glad you got it working Smile
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search