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

Save process through commondialog

Can anybody help me to save a particular file from one system to another system through commondialog in vb6

Thanks

Abhijeet
Sep 11 '07 #1
2 1255
QVeen72
1,445 Expert 1GB
Hi,

it is :

Expand|Select|Wrap|Line Numbers
  1. CommonDialog1.ShowSave
  2.  
If any error occurs, then "Err" object is populated with number and description, u will have to take care of that.

REgards
Veena
Sep 11 '07 #2
Robbie
180 100+
After that, CommonDialog1.FileName will contain the filename which the user wants to save the file as.

It depends on your program how exactly you use this. For example, for saving some text to this file, you'd use:
Dim FileID As Integer
FileID = FreeFile
Open CommonDialog1.Filename For Output As FileID
(Write some stuff to it here)
Close FileID


If you simply wanted to make a copy of one file as this new filename, you'd use
FileCopy OrigFilename, CommonDialog1.Filename
Sep 11 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: D Wigg | last post by:
Hello all, I'm using VB6.0 to write an application which prints a report. The problem I have occurs when I try to allow the user to select the number of copies and which pages to print. Using...
2
by: rmunson8 | last post by:
What is the appropriate control or code to pop a "save as" dialog window to allow the user of a web page to save a document after they click on a link? All of the CommonDialog controls obviously...
2
by: SpotNet | last post by:
Hi Newsgroup, I have constructed highly customisable common dialog classes\objects. Decided to extend the Open\Save dialog options with the ability to change the text on all the controls. ...
2
by: Patrick Blackman | last post by:
I want to create my own custom common dialog derived from the base class"CommonDialog" to display my custom form any ideas how to accomplish this with an example. Thanks Patrick
1
by: Simon | last post by:
Does anyone have the definitive snippet of code for how to inherit from CommonDialog? I want to add an extra control into the OpenFileDialog. I know you cannot inherit from this or from...
3
by: Michael C# | last post by:
Anyone know of a good resource that details how to inherit from CommonDialog? Thanks.
25
by: yanivoliver | last post by:
Hey, I'm using the CommonDialog object to load a dialog which allows the user to select the files they want to upload. This solution works perfectly on computers that have some Visual Studio...
1
by: DMc | last post by:
Hi, I have been searching for tutorials and tips on how to create my own Dialog box using the CommonDialog abstract class, and I have not been able to find anything useful. Can anyone have any...
2
by: vbaDev | last post by:
Hi. I am using Access 2000 and in my code I'm exporting a table into an Excel file (creating it), then the code needs to export another query into the same file (a new worksheet). So I needed both a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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...
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...

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.