473,396 Members | 1,722 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,396 software developers and data experts.

Names of OLE objects

I have a form that allows the user to either drag-and-drop or
copy-and-paste OLE objects into a data view table. When they do that
the OLE Object field always appears as something like "Microsoft Word
File" or "Package". Is there any way to capture the actual name of the
file? I've seen a number of posts related to this subject but none of
them seemed to quite answer my question.

Dave
Nov 12 '05 #1
3 2102
headware wrote:
I have a form that allows the user to either drag-and-drop or
copy-and-paste OLE objects into a data view table. When they do that
the OLE Object field always appears as something like "Microsoft Word
File" or "Package". Is there any way to capture the actual name of the
file? I've seen a number of posts related to this subject but none of
them seemed to quite answer my question.

Dave


Personally I prefer creating a Hyperlink field in the table. Then I can
use the FileOpen() function found at Dev's site (under Api's) at
http://www.mvps.org. I then have the name of the file. I can store a
description to describe the action and the filename path of the object
to open. Then you simply click on the object to open/view it. See
HyperLinkPart() in help. It keeps your table size down. I see no
benefit to storing the object in the table.
Nov 12 '05 #2
I agree that storing the objects themselves in the database is not a
good idea, but I have no choice in this particular matter. That's the
way they want it done.

Salad <oi*@vinegar.com> wrote in message news:<_J*****************@newsread1.news.pas.earth link.net>...
headware wrote:
I have a form that allows the user to either drag-and-drop or
copy-and-paste OLE objects into a data view table. When they do that
the OLE Object field always appears as something like "Microsoft Word
File" or "Package". Is there any way to capture the actual name of the
file? I've seen a number of posts related to this subject but none of
them seemed to quite answer my question.

Dave


Personally I prefer creating a Hyperlink field in the table. Then I can
use the FileOpen() function found at Dev's site (under Api's) at
http://www.mvps.org. I then have the name of the file. I can store a
description to describe the action and the filename path of the object
to open. Then you simply click on the object to open/view it. See
HyperLinkPart() in help. It keeps your table size down. I see no
benefit to storing the object in the table.

Nov 12 '05 #3
headware wrote:
I agree that storing the objects themselves in the database is not a
good idea, but I have no choice in this particular matter. That's the
way they want it done.


I would either suggest they open the file, before appending, via a
FileOpen you provide or don't allow the saving of the record unless you
get the file name.

Also, check out google....maybe there is some code somewhere to help you
out.

Nov 12 '05 #4

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

Similar topics

4
by: Julian Yap | last post by:
Hi all, I'm trying to get some ideas on the best way to do this. In this particular coding snippet, I was thinking of creating a dictionary of file objects and file names. These would be...
3
by: Ron_Adam | last post by:
Hi, Sometimes it just helps to see what's going on, so I've been trying to write a tool to examine what names are pointing to what objects in the current scope. This still has some glitches,...
3
by: Michael | last post by:
Hi everyone, I am trying to change the field names for a table that is being exported via Excel. Its a spreadsheet that our National Office sends us but even after promise after promise they...
5
by: Sakcee | last post by:
python provides a great way of dynamically creating fuctions calls and class names from string a function/class name can be stored as string and called/initilzed e.g def foo(a,b): return...
4
by: Steven Smith | last post by:
Hello all, I have a vb6 (not .NET) program using MS Access as the backend. As part of an import form, I need to allow the user to select the table containing the data to be imported. How can I...
34
by: davehowey | last post by:
I have a problem. I'm writing a simulation program with a number of mechanical components represented as objects. When I create instances of objects, I need to reference (link) each object to the...
5
by: fireball | last post by:
please help newbie I need to create a lot of objects the same type (let's say: schemas) I wish to use paramerized block in loop to do so. - how to put names of my objects to such control-flow? ...
16
by: per9000 | last post by:
Hi, I recently started working a lot more in python than I have done in the past. And I discovered something that totally removed the pretty pink clouds of beautifulness that had surrounded my...
7
by: bukzor | last post by:
I was trying to change the behaviour of print (tee all output to a temp file) by inheriting from file and overwriting sys.stdout, but it looks like print uses C-level stuff to do its writes which...
9
by: dhtml | last post by:
I have written an article "Unsafe Names for HTML Form Controls". <URL: http://jibbering.com/faq/names/ > I would appreciate any reviews, technical or otherwise. Garrett --...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.