473,385 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

DSOleFile version 2 doesn't allow empty strings as value

Hi,
I'm trying to set CustomProperties through the newer version of the
DSOleFile (2.x) object for Word, Excel and PowerPoint documents. For some
reason it seems that when I'm trying to set a custom property to an empty
string ("") it will simply cause all the other existing properties including
the newly created on to disappear when trying to look at them by right
clicking on properties on the file in Windows the choosing the properties
tab. If I look at the custom properties through for example word on the file,
Word will crash. How come? In the previous version of DSOleFile I was able to
set a custom property to an empty string without any problem, and as I still
am in code in Word VBA for example (even though the GUI doesn't allow me to).

We have other macros depending on these values so we cant just store another
value without going through alot of code, and we don't want to launch a
officeprogram at this point to among other things conserve resources.

The environment is VS.NET 1.1 with Office 2003 and DSOleFile 2.x on Windows
Server 2003.

Also, if there isn't a solution for this, is there anyone that could
recommend some API or similar that would allow us to do the same thing
without too much efforts?

Any ideas would be greatly appreciated...
Jul 19 '06 #1
0 1248

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Keith | last post by:
Is there a function for comparing version numbers? E.g. 0.1.0 < 0.1.2 1.876b < 1.876c 3.2.2 < 3.4 Keith
7
by: kdc | last post by:
Hello, I would appreciate any help I can get from anyone who has experience using javascript. I have an html form containing a number of functions controlling the submission of data to our...
149
by: Christopher Benson-Manica | last post by:
(Followups set to comp.std.c. Apologies if the crosspost is unwelcome.) strchr() is to strrchr() as strstr() is to strrstr(), but strrstr() isn't part of the standard. Why not? --...
6
by: Chris Simmons | last post by:
I know that a String is immutable, but I don't understand why this piece of code fails in nUnit: // BEGIN CODE using System; class Test { public static void Main( String args )
3
by: Steve Lang | last post by:
Hi all, I am trying to use the DSOleFile.dll in my VB.NET application (that I am converting from VB6) to extract some property data from a Word document before the application processes the...
0
by: troutbum | last post by:
I am experiencing problems when one user has a document open through a share pointing to the web site. I use the dsolefile to read the contents of a particular directory and then display them in a...
4
by: Paul Bromley | last post by:
I have been pondering over this one all night!! I want to read the properties of a Word document WITHOUT opening it - notably the title document. Having read the newsgroups it seems that I neede to...
6
by: D. Yates | last post by:
Hi, I got bit by the fact that applications using library files that are NOT strongly named will use older versions of the library without generating an error, so........ Is there a way to...
0
by: ev951 | last post by:
I am not that familiar with XML or XSL and I am trying to sort application version number strings in an XML file that my team uses for application installations on our Linux servers. I have tried...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.