473,883 Members | 1,665 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

save window form as file on local C drive

All,

I present some data on the window form, then I try to save window form as
file on the local C drive, like save word file, can anyone know how?

Thanks,
Martin
Dec 6 '07 #1
4 1949
On Dec 6, 9:30 am, martin1 <mart...@discus sions.microsoft .comwrote:
All,

I present some data on the window form, then I try to save window form as
file on the local C drive, like save word file, can anyone know how?

Thanks,
Martin
"Save the window form as a file"? Not sure what you mean by that. Do
you mean a visual representation of the form along with all of the
control's current contents? Or save the contents of all of the
controls?
Dec 6 '07 #2
save a visual representation of the form along with all of the control's
current contents.

Thanks

"za***@construc tion-imaging.com" wrote:
On Dec 6, 9:30 am, martin1 <mart...@discus sions.microsoft .comwrote:
All,

I present some data on the window form, then I try to save window form as
file on the local C drive, like save word file, can anyone know how?

Thanks,
Martin

"Save the window form as a file"? Not sure what you mean by that. Do
you mean a visual representation of the form along with all of the
control's current contents? Or save the contents of all of the
controls?
Dec 6 '07 #3
"martin1" <ma*****@discus sions.microsoft .comschrieb
save a visual representation of the form along with all of the
control's current contents.
Framework 2.0 and above: use the control's (Form's) DrawToBitmap methood:

Dim bmp As New Bitmap(Me.Width , Me.Height)

Me.DrawToBitmap (bmp, New Rectangle(Point .Empty, bmp.Size))

bmp.Save(...)
Armin
Dec 6 '07 #4
Thank you so much.

Martin

"Armin Zingler" wrote:
"martin1" <ma*****@discus sions.microsoft .comschrieb
save a visual representation of the form along with all of the
control's current contents.

Framework 2.0 and above: use the control's (Form's) DrawToBitmap methood:

Dim bmp As New Bitmap(Me.Width , Me.Height)

Me.DrawToBitmap (bmp, New Rectangle(Point .Empty, bmp.Size))

bmp.Save(...)
Armin
Dec 6 '07 #5

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

Similar topics

1
2053
by: Tommy | last post by:
Is it possible to write asp file which create some text file and then save in local drive automatically without human interaction? I haven't any idea. Thx.
2
13107
by: gnv | last post by:
Hi all, I am writing a cross-browser(i.e. 6 and netscape 7.1) javascript program to save an XML file to local file system. I have an xml string like below: var xmlStr = "<?xml version="1.0" encoding="UTF-8"?><a>some info</a>"; I want to save this xml file to local file system with JavaScript,
7
3813
by: Stan Sainte-Rose | last post by:
Hi, How can I save a page loaded with AxWebBrowser into a winform as an htm page ? Stan
11
19042
by: Thomas Magma | last post by:
I have a simple JavaScript application that will generate some text type data for the end user. Is it possible to have a button that will allow them to save this information to a text file? Thomas
0
1490
by: Hexman | last post by:
Hello All, Its a bit more complicated than the subject line implies. A website that I use for information allows me to click on a link and their .PDF displays in IE's browser window.. Since this data has a life-span of about a week (replaced by a newer updated one on a daily basis) and if I happen to miss a day viewing and recording the info I want, its gone forever. To solve this problem, I wrote a small app to retrieve their index...
0
1161
by: Hexman | last post by:
Hello All, Its a bit more complicated than the subject line implies. A website that I use for information allows me to click on a link and their .PDF displays in IE's browser window.. Since this data has a life-span of about a week (replaced by a newer updated one on a daily basis) and if I happen to miss a day viewing and recording the info I want, its gone forever. To solve this problem, I wrote a small app to retrieve their index...
6
24269
by: greg_e | last post by:
Is there a way to create a form in a local html file where the contents of the form are written to a local file when a 'save' button is selected? It would be nice if it was as easy as changing "somesite.com" to "file:///C:/whatever" and "post" to "save"... in the following form: <form action = "somesite.com" method="post"> <p<textarea name="Text" rows="20" cols="80"</textarea> <input value="Send" type="submit"><input type="reset"</p>...
3
4475
by: S_K | last post by:
Hi, I have a problem when I try to save a .CSV file from an ASP.NET web page and the client has Excel open already. The symptoms are: 1) The web page is currently displaying the Excel spreadsheet with the accurate data. 2) The .CSV file is saved from the server to the local hard drive of the client. 3) An Excel spreadsheet is already running on the client (version 2002
0
9778
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11112
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10730
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10833
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9559
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7959
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7114
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5784
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3228
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.