To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=74375
                 Issue #|74375
                 Summary|read file with fixed record len, missing bytes, 2 byte
                        |s offset
               Component|framework
                 Version|OOo 2.1
                Platform|All
                     URL|
              OS/Version|Windows XP
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|scripting
             Assigned to|npower
             Reported by|szodrow





------- Additional comments from [EMAIL PROTECTED] Fri Feb  9 12:45:28 +0000 
2007 -------
I have a DATEV file with fixed len records (256 Bytes) and want to read record
by record (in OO Basic). I open it in Random mode with block len 256. The
problem is that the first two bytes are skipped and all subsequent records have
2 bytes offset.

I expected bytes rec 1: 1 - 256, rec 2: 257 - 512, etc, but I get rec 1: 3 -
258, rec 2: 259 - 514

Something similar happens when writing this files in Random mode: the first two
bytes are "away" (I don't remember anymore, because writing the file in binary
mode solves the problem)

When reading the file in binary mode, the same applies. The first 2 bytes are
missing. When I do a subsequent get with a Byte Position (e. g. 2560), again the
first two bytes are missing (starts from 2562). Since I don't need the first two
bytes, I can program a workaround (in attached file), but that is enerving. I
tried, if this is a platform depending problem and did this also on Linux (OO
2.0, SuSE 9.3), but there the get command doesn't work at all (runtime error?!)

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to