473,321 Members | 1,708 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,321 software developers and data experts.

This Printing Thing

Call me thick, but I am still having a problem with the Print Concept. It
just never came up.
What I guess I need, is a step by step explination starting with a dataset,
and ending with a text document written to the hard drive. I have looked at
alot of sample code, and I get each piece, but I don't know how to put them
together.

If anyone can point me in the right direction, or has seen such an example
in a book, please let me know.
Thank You,
David
Nov 16 '05 #1
2 1337
check articles here http://www.c-sharpcorner.com/Printing.asp

Av.

"David" <dm*******@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Call me thick, but I am still having a problem with the Print Concept.
It
just never came up.
What I guess I need, is a step by step explination starting with a
dataset,
and ending with a text document written to the hard drive. I have looked
at
alot of sample code, and I get each piece, but I don't know how to put
them
together.

If anyone can point me in the right direction, or has seen such an example
in a book, please let me know.
Thank You,
David

Nov 16 '05 #2
David,
Are you talking about printing or about creating a text file? These are
two different things in .NET. For printing you will be drawing information
on a set of pages to be sent to the printer. To create a text file you will
be using System.IO to write strings to a file.

To put a dataset to a text file I would iterate through the tables
putting a header out for each table followed by a set of column headers for
each column. Then iterate through the rows using either the raw DataTable
or a DataView with sorting that you would like and write each row to the
text file using a matching format for the column headers.

Ron Allen
"David" <dm*******@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Call me thick, but I am still having a problem with the Print Concept. It just never came up.
What I guess I need, is a step by step explination starting with a dataset, and ending with a text document written to the hard drive. I have looked at alot of sample code, and I get each piece, but I don't know how to put them together.

If anyone can point me in the right direction, or has seen such an example
in a book, please let me know.
Thank You,
David

Nov 16 '05 #3

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

Similar topics

2
by: David Isaac | last post by:
I'd like to try personal financial management using Python. I just found PyCheckbook, but it does not support check printing. Is there a Python check printing application kicking around? Thanks,...
19
by: dcrespo | last post by:
Hi all... Is there a way to print a PDF file directly from Python without having Acrobat installed? I know about ReportLab. It's a python module that lets you create almost any PDF document, but I...
5
by: rd | last post by:
Has anyone else noticed a problem when printing html with fieldsets in them? Whenever I print even the simplest document with a fieldset, the amount of data sent to the printer jumps from a few K...
11
by: Curious Angel | last post by:
Hi, I have a version of my resume that is (almost) web ready and I'm pleased with its appearance on the screen (well, sort of heh heh, it's my first HTML). I also created a tighter, scaled-down...
0
by: Thomas Miskiewicz | last post by:
Hi! I'm using the page-break-before:auto thing with my IE 6.0.2600.0000 and it works fine. However when I go into printing preview and printing it's showing adding a empty row by the end of...
8
by: Chris | last post by:
Hello all, I wish to automate printing of PDF documents in a C# application. Is there an Adobe .net object? I tried to create a reference to the COM Object Adobe Type Library, but I get error...
2
by: Dan | last post by:
We are running into trouble when trying to print proprietary formats (ie; .pdf, .xls, .doc, etc.) from our VB.NET application. Binary files generate garbage when printed. We have no trouble...
1
by: Wes | last post by:
I have created a form with a print button on the form so the user can click it and print out the form just as it looks on the sreen, and it has to have every thing that was typed in the textboxes.
8
by: Daniel | last post by:
Hi, Does anyone know if it is possible to put an aspx page inside of another? OR run an aspx page and capture the output as a string and then write this out to a page.... So for example say...
21
by: array7 | last post by:
I have been reading a lot of archived threads about "page-break- inside: avoid" not supported by IE5, IE6 IE55, IE7 and Firefox (Mozilla), which creates a really unpleasant-looking printout with...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.