Issue 13497 - MS Access memo field CR LF corrupted by OO Text Box
Summary: MS Access memo field CR LF corrupted by OO Text Box
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.3
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: marc.neumann
QA Contact: issues@dba
URL:
Keywords:
Depends on:
Blocks: 26561
  Show dependency tree
 
Reported: 2003-04-16 09:32 UTC by kelvine
Modified: 2006-05-31 14:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description kelvine 2003-04-16 09:32:28 UTC
When updating MS Access fields using OO Text Box control on a Form, the CR
LF is replaced with a LF, which effectively corrupts the memo field.

The memo field is not a problem to OO until it is edited.  When just viewing
the memo field it is displayed correctly.

Determining how to handle a memo field in advance would be a difficult
programming problem.

It occurred to me however that perhaps one work around for this, is to have
the Text Box control provide a property which allows the developer to select
in the Text Box control how to handle line ends.

For example: Enter to insert CR LF or LF.  The default could be LF which is
what it currently does.

Hope this helps.

Kelvin
Comment 1 Frank Schönheit 2003-05-27 07:57:47 UTC
Kelvin, do you access the MS access database via ADO or ODBC? Which
version of MS Access did you use to create the database?
Comment 2 kelvine 2003-05-27 13:34:00 UTC
I use ODBC version 4.00.6019.00
The MS Access version is MS Access XP.

I only use ODBC. No particular reason.  It is just that it generally 
works.

I'm happy to extend this testing to ADO as well if necessary.

Comment 3 Frank Schönheit 2003-05-30 10:25:15 UTC
confirming, grabbing, targeting
Comment 4 Frank Schönheit 2003-10-13 09:20:25 UTC
accepting
Comment 5 hans_werner67 2004-02-02 12:20:14 UTC
change subcomponent to 'none'
Comment 6 Frank Schönheit 2004-03-22 16:31:55 UTC
fixed in CWS dba09
Comment 7 Frank Schönheit 2004-03-22 16:38:29 UTC
for completeness:

The behavior encountered here is a bug in the ADO implementation: When
*requesting* text from the driver, it is always returned with *unix-like* line
ends (which is a line feed character only). When *writing* text, it is
completely irritated if you use uni-like line ends - it then corrupts the text.
However, when writing DOS-like line ends (carriage return character, followed by
a line feed), this is accepted (and funnily returned with unix-like line ends
next time you ask for it).

A solution is now implemented as described in
http://dba.openoffice.org/specifications/forms/multiline_line_ends.sxw (which
also fixes issue 14649).
Comment 8 Frank Schönheit 2004-04-29 09:38:10 UTC
fs->msc: please verify in CWS dba09
Comment 9 marc.neumann 2004-05-05 12:45:07 UTC
fixed in CWS dba09
Comment 10 marc.neumann 2004-05-05 13:57:13 UTC
verified in CWS dba09
Comment 11 Frank Schönheit 2004-11-26 08:44:21 UTC
seems to have made it into the master