Hi
Can someone tell me how to write the data from a TextBox (txt) or Label
(lbl) to a text file to be printed. I have read the info from
msdn.microsoft. com/library on "Writing Text to a File", and it only offers a
solution for writing a text string and the system date.
Help!!!!! I'm at a lost!
Thanks
D. 3 10352
yello,
It would be easier to give you an answer to your problem, if you mentioned
what
you wanted to do with the textbox stings that you are going to save.....
eg: trying to write a csv file?
eg2: trying to save what the textboxes hold, so that the next time you
open the app, the data will return?
"CsharpNewcomme r" wrote: Hi
Can someone tell me how to write the data from a TextBox (txt) or Label (lbl) to a text file to be printed. I have read the info from msdn.microsoft. com/library on "Writing Text to a File", and it only offers a solution for writing a text string and the system date.
Help!!!!! I'm at a lost!
Thanks D.
Thanks TheMadHatter,
First let me say I am a beginner with C#, so there are some bascis I haven't
learned yet. But having said that, I have written a small app that basically
processes a payroll.
After all the calculations, I write all the fields (both txt and lbl) from
the windows form to the database. And what I really would like to do is print
that exact form for a pay statement (pay stub), but I don't know how to print
it.
All the print examples I've seen so far print from a text file. So I figured
maybe I should write the form information to a file and then print.
So that's what I'm doing with the text fields.
Thanks,
D.
"TheMadHatt er" wrote: yello,
It would be easier to give you an answer to your problem, if you mentioned what you wanted to do with the textbox stings that you are going to save.....
eg: trying to write a csv file? eg2: trying to save what the textboxes hold, so that the next time you open the app, the data will return? "CsharpNewcomme r" wrote:
Hi
Can someone tell me how to write the data from a TextBox (txt) or Label (lbl) to a text file to be printed. I have read the info from msdn.microsoft. com/library on "Writing Text to a File", and it only offers a solution for writing a text string and the system date.
Help!!!!! I'm at a lost!
Thanks D.
Well everyone here except I apparently uses crystal reports for
reporting. If you want to print the entry form as you would in a RAD
database app you can download my controls and try them. If it works for
you I can send you a special version that prints without a license
message. http://www.geocities.com/jeff_louie/windows_forms.htm
Regards,
Jeff
*** Sent via Developersdex http://www.developersdex.com *** This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Igor Shulgin |
last post by:
Hi!
What is standard and direct way (within Oracle 9.2 stored procedures)
for
writing binary data from Oracle to external file on disk?
We have tried to use UTL_FILE package, but it operates on files
consisting out of "line" of size no more than 32767 bytes and adds new_line
symbol upon closing files.
Also we checked out interMedia types and packages for writing BLOB to
disk but now we get stuck with some strange error messages.
|
by: Daniel |
last post by:
when writing out a file from .net, when is the file created? after the bytes
are all written to the hard drive or before the bytes are written to the
hard drive?
|
by: Yunus's Group |
last post by:
Yunus's Group May 23, 3:36 pm show options
Newsgroups: microsoft.public.dotnet.languages.vb
From: "Yunus's Group" <yunusasm...@gmail.com> - Find messages by this
author
Date: 23 May 2005 12:36:14 -0700
Local: Mon,May 23 2005 3:36 pm
Subject: Writing to text file
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Remove | Report Abuse
|
by: James Wong |
last post by:
Hi,
I have some XML config file in my VB project.
When I use clickonce to publish my project, the execute files and the xml
data files are not in the same folder of the client computer. How can I get
the real path of my xml data files? Thanks
for example,
execute file path:
|
by: psbasha |
last post by:
Hi,
Is it necessary in Python to close the File after reading or writing the data to file?.While refering to Python material ,I saw some where mentioning that no need to close the file.Correct me if I am wrong.
If possible could anybody help me with sample code for reading and writing a simple text file.I have seen there are many ways to read /write the data in Python.But I want to use the effective way of reading or writing the data...
| |
by: Terry Olsen |
last post by:
I need to be able to write to a file simultaneously from approximately 4
different threads. I'm working on a program that will download parts of a
file and combine the parts. Each thread will have an offset from zero and a
length to write. None of the threads will overlap in the file position.
Is it possible to have the file open (shared) by multiple threads? I'm
guessing that i'd use a filestream with some sort of sharing. Looking for...
|
by: Gilles Ganault |
last post by:
Hello
I'm stumped as to why PHP fails writing into a text file, with the
script being called through Apache:
==============
# pwd
/usr/local/www/data/
==============
# ll
|
by: bpejman |
last post by:
I have a Perl-driven website on a windows 2003 server. I have configured the IIS and have set the permissions on the Home Directory tab to Read, Write and my Execute Permissions are set to "Scripts and Executable."
I have gotten the site to work but my problem is, when I run the below code from my web browser, I do not see a file called "data.txt" in the same directory. When I execute this from the console, it works just fine. What am I...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
|
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...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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...
| |