Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 6:22 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Writing Data to an Excel file.
PostPosted: March 7th, 2005, 10:34 am 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
I am creating an application for scanning (using a barcode scanner) part numbers and serial numbers into an Excel spreadsheet. I have set up the database links, but when I run the application, it says I do not have permission to write to the file. I can't find out what's going wrong.
I want to check that Opus can actually do this???


Top
 Profile  
 
 Post subject:
PostPosted: March 7th, 2005, 11:24 am 
Offline

Joined: October 25th, 2004, 12:27 pm
Posts: 526
Location: Digital Workshop
Hi,

Thank you for your enquiry.

Is the .xls file set to Read Only? Try right-clicking on the original .xls file, select Properties and click on the General. Now ensure that the Read Only option is disabled and click OK.

Now try previewing your publication and see if the Add Record action now operates as expected.

I hope this helps. Please do not hesitate to contact me if you have any further queries.

Kind regards,

_________________
Robin Garrett
Digital Workshop Technical Support


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 15th, 2005, 11:44 am 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
Thanks Robin, I found a tick box in the DSN set up which had been set to prevent update of the file, so it works OK now.

I use INSERT NEW RECORD to add data to an Excel file, however Each time I run the application, it adds the new record to the bottom of the existing data. Is there some way of resetting the pionter which must be stored somewhere so it always adds the data starting at row 2 of the spreadsheet.. I have tried clearing the spreadsheet of all data, but it still inserts where the last INSERT finished.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: March 15th, 2005, 12:43 pm 
Offline

Joined: October 25th, 2004, 12:27 pm
Posts: 526
Location: Digital Workshop
Hi,

Thank you for your reply.

This is a known limitation of the Excel ODBC driver, and is highlighted in the following article:

http://support.microsoft.com/default.as ... bContent=1

As this article states, 'the [Excel ODBC] driver will not support DELETE, UPDATE, or ALTER TABLE statements. While it is possible to update values, DELETE statements will not remove a row from a table based on an Excel spreadsheet. These operations are not supported. Basically, you can only append (insert) to a table.'

If you wish to have direct control over the updating and deleting of rows from your data source, I would recommend using an Access database.

Kind regards,

_________________
Robin Garrett
Digital Workshop Technical Support


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 15th, 2005, 1:13 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
Thanks Robin---I will just have to live with it just now. At least I now know it can't be done.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 72 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group