3 messages in org.openoffice.fr.progUnable to create Content
FromSent OnAttachments
Teddy GestelFeb 22, 2007 8:00 am 
Bernard MarcellyFeb 22, 2007 12:06 pm 
emma...@fr.thalesgroup.comFeb 23, 2007 1:08 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Unable to create ContentActions...
From:Teddy Gestel (tedd@implicit.com)
Date:Feb 22, 2007 8:00:17 am
List:org.openoffice.fr.prog

Bonjour,

J’ai un petit soucis et je voudrais avoir votre avis sur ce bug :

Voici mon code :

Dim oFileAccessService, oTextOutputStream, outStream

Dim the_file

oFileAccessService = createUnoService("com.sun.star.ucb.SimpleFileAccess")

oTextOutputStream = createUnoService("com.sun.star.io.TextOutputStream")

the_file = convertToURL(sChem)

outStream = oFileAccessService.openFileWrite(the_file)

Quand j’execute ce code, à la dernière ligne oFileAccessService.openFileWrite(the_file) , j’ai le message :

Runtime Error BASIC

Exception

Type : com.sun.star.ucb.ContentCreationException

Message: Unable to create Content

Or le fichier existe bel et bien.

A quoi cela peut il correspondre ? Et comment peut on éviter cela ?

Merci pour votre aide