Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help Forums Windows Startup Programs Database Spyware and Malware Removal Guides Computer Tutorials Uninstall Database File Database Computer Glossary Computer Resources
 

Welcome Guest ( Log In | Click here to Register a free account now! )



Register a free account to unlock additional features at BleepingComputer.com
Welcome to Bleeping Computer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.
Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Important Announcement: We have a terrific contest still running on the site that I wanted all our members and guests to know about.

The chance to win two Seagate FreeAgent external hard drives. More information about this contest can be found here.

I suggest everyone submit an entry for them.

- BleepingComputer Management
 
Reply to this topicStart new topic
> Property setting in VB6, VB6 problem with OLE property setting
Al Coda
post Jun 17 2005, 01:55 AM
Post #1


New Member
*

Group: Members
Posts: 2
Joined: 17-June 05
Member No.: 23,778



I am a new programmer and wonder if anybody could tell me what I am doing wrong. I want to set the SourceDoc property for an OLE object at runtime and am using the following code: OLE1.SourceDoc = C:\ etc. being the path followed by a backslash and the file name. I have tried it with and without quotes around everything after the =. If I have set the SourceDoc property at design time, it's fine and if I include the above code, it does something because the OLE box becomes blank. It just doesn't do what I want it to. What I am trying to accomplish is enable the user to select a particular file for the OLE box at runtime with a file box which I would pass to the property with a variable. Anyway, any help with this would be appreciated.
Go to the top of the page
 
+Quote Post
Batchwood
post Jun 30 2005, 08:53 PM
Post #2


New Member
*

Group: Members
Posts: 1
Joined: 27-January 05
Member No.: 10,701



No one has been able to help you so you may find an article to give you some direction here:
http://www.findingfacts.com/L3/L3_2_28_33.php
Go to the top of the page
 
+Quote Post
eleazarmeza
post Jul 25 2005, 03:57 AM
Post #3


New Member
*

Group: Members
Posts: 1
Joined: 25-July 05
Member No.: 28,662



You should try to use Createlink method, i used it at runtime and it worked. thumbup.gif

Example:

ole1.createlink("c:\i_hope_this_will_be_useful_for_you.doc")

This is kind of funny i was looking for answers and I ended up trying to help someone else.


tongue.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 5th December 2008 - 12:55 PM


Advertise   |   About Us   |   Terms of Use   |   Privacy Policy   |   Contact Us   |   Site Map   |   Chat   |   Tutorials   |   Uninstall List
Discussion Forums   |   The Computer Glossary   |   Resources   |   RSS Feeds   |   Startups   |   The File Database   |   Malware Removal Guides

© 2003-2008 All Rights Reserved Bleeping Computer LLC.