Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi,


On 26 June 2013 13:17, Fernand Vanrie wrote:
Frederik Schwarzer wrote:


There I had problems when using Open. A message box appears telling me that
there was a runtime error: Geräte-E/A-Fehler (German for something like
"Device I/O Error").

is a problem when "opening" or "saving" a file ( no file or no rights...)
give me the code i can have a closer look


you are right. When using the user's standard path
"C:\Users\MyUser\test.xml", it works fine.

Sub Export

Dim oSheet As Object
Dim iNumber As Integer
Dim outFile As String

oSheet = ThisComponent.CurrentController.ActiveSheet

outFile = "C:\Users\MyUser\test.xml"
iNumber = Freefile
Open outFile For Output As #iNumber
write #iNumber, oSheet.getCellByPosition(0,0).String

End Sub


Thanks for that hint. :)

Regards
Frederik


On 26 June 2013 13:17, Fernand Vanrie <sos@pmgroup.be> wrote:

Frederik Schwarzer wrote:

Hi,

I am trying to write something to a file when I press a button (first-time
LO Basic usere here :)).

There I had problems when using Open. A message box appears telling me
that
there was a runtime error: Geräte-E/A-Fehler (German for something like
"Device I/O Error").

is a problem when "opening" or "saving" a file ( no file or no rights...)
give me the code i can have a closer look


Strange thing is that I also get this error when just copying the example
from LO Help.

Any idea where to look for the cause of the problem?

Version is 4.0.4.2.

Thanks and regards
Frederik




-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.