Issue 82701 - dev guide example is wrong
Summary: dev guide example is wrong
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: jsc
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-17 10:06 UTC by maison.godard
Modified: 2013-02-24 21:10 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 maison.godard 2007-10-17 10:06:58 UTC
Hi

the code sample for storing is wrong
http://api.openoffice.org/docs/DevelopersGuide/OfficeDev/OfficeDev.xhtml#1_1_5_3_Storing_Documents

  // Build necessary argument list for store properties.
  // Use flag "Overwrite" to prevent exceptions, if file already exists.
 

  

  com.sun.star.beans.PropertyValue[] lProperties =
      new com.sun.star.beans.PropertyValue[2];
  lProperties[0]       = new com.sun.star.beans.PropertyValue();
  lProperties[0].Name  = "FilterName ";
  lProperties[0].Value = sFilter;
  lProperties[1]       = new com.sun.star.beans.PropertyValue();
  lProperties[1].Name  = "Overwrite ";
  lProperties[1].Value = new Boolean(true);

There should not be spaces at the end of the  lProperties[x].Name strings
Comment 1 jsc 2007-10-17 10:45:58 UTC
fixed in the not yet published wiki version of the DevGuide

jsc -> lgodard: please don't start a discussion when the guide will be
available. It' will be soon :-)
Comment 2 maison.godard 2007-10-17 11:29:04 UTC
;-)
thx Juergen
Comment 3 jsc 2008-05-29 09:27:16 UTC
closed