473,408 Members | 2,030 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,408 software developers and data experts.

file creation

Hi,
In my application am using scrpting.dll to create folders and files.
using filesystemobject's createtextfile method am creating file. and am
displaying all the folders and their corrsponding files in the treeview
control. and when i select a file and dbl click this file it will list out
the file contents into richtextbox.
and for checking purpose i insertd an image into that file and while dbl
clicking that file it is displaying only the text not the image but i want
to display the image also.
How can i display hte file containg the image.

here am creating file using creattextfile.

can anybody tell me how to create a file so that if that file contins images
those must be displayed into rihtext box.

Plz tell its urgent
thanx inadvance
Nov 21 '05 #1
1 1075

"yoshitha" <gu**********@rediffmail.com> wrote in message
news:uq**************@TK2MSFTNGP11.phx.gbl...
Hi,
In my application am using scrpting.dll to create folders and files.
using filesystemobject's createtextfile method am creating file. and am
displaying all the folders and their corrsponding files in the treeview
control. and when i select a file and dbl click this file it will list out
the file contents into richtextbox.
and for checking purpose i insertd an image into that file and while dbl
clicking that file it is displaying only the text not the image but i want
to display the image also.
How can i display hte file containg the image.

here am creating file using creattextfile.

can anybody tell me how to create a file so that if that file contins images those must be displayed into rihtext box.

Plz tell its urgent
thanx inadvance

I suggest you read the help article "Accessing Files With FileSystemObject"
which says in part:
<quote>

The FSO model, contained in the Scripting type library (Scrrun.dll),
supports the creation and manipulation of text files through the TextStream
object; however, the FSO model does not support binary files. To manipulate
binary files, use the FileOpen Function with the Binary keyword.

<unquote>

I believe you need a binary file for the image? Also, it appears that you
won't be able to display an image directly within a Rich Text Box, but will
have to use a PictureBox or something similar, as a child of the RichTextBox
(in its Controls collection) to display the image

Just my best guess.
--
Peter [MVP Visual Developer]
Jack of all trades, master of none.
Nov 21 '05 #2

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

Similar topics

4
by: pdav | last post by:
Hi! Is there any solution to create a directory with one script with mkdir(), and then write a file (or move an uploaded file) in this directory with another script? The problem is, that the...
5
by: [ EuGeNe ] | last post by:
Hi all, I would like to write a script that downloads one file from a ftp server if the file creation date satisfy a condition. I can't figure out how to find from a ftp server what is the...
3
by: SK | last post by:
I have a file. i get the creation time using File.GetCreationTime. then i go and delete that file. and then create it again and print the File.GetCreationTime. It is giving me the old creation...
2
by: David Fickbohm | last post by:
People, I am trying to determine the creation date of files in a folder. I am using the following code to find the folder and confirm that files exist in the folder. If someone could give me an...
2
by: Robizzle | last post by:
Sorry, I must be blind but I can't seem to find it anywhere. What function will return the time a file was created? I see filemtime(...) returns the time that file was last Modified and...
7
by: Marius III | last post by:
Hi there, I want to get the file version of a file in PHP. Do somebody have the code for this? Thanks alot!
8
by: Eddie Suey | last post by:
I want to add a new line to the begining of a text file. I dont want to write over existing data. How do I do this? the file is about 7 mb.
1
by: Tim Failes | last post by:
This seems a trival question, but I cannot get it to work properly... Essentially my question is, how can I create a text file, and guarantee it is given the current date/time as the Creation Time?...
6
by: KoRnDragon | last post by:
I know about getlastmod() but is there one for created date? If not is there some other way of getting the created date of a file?
17
by: Peter Duniho | last post by:
I searched using Google, on the web and in the newsgroups, and found nothing on this topic. Hopefully that means I just don't understand what I'm supposed to be doing here. :) The problem: ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.