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

Printing a datagrid

Hello,
I'm trying to get some ideas on this. If you were going to have to print a
datagrid control (about 20 columns of data), how would you do it. I'm trying
to figure out how to get it to look like a spreadsheet when it prints. How
do you hook this up to a button?
I'm totally lost on this...any help would be greatly appreciated...
Thanks
Nov 15 '05 #1
3 1621
Have a look at my page:

http://www.mag37.com/projects/Printing/

You can either use the code presented on my page, or look at the examples at
the bottom of my page. The easiest example is entitled "Printing a
datagrid"
--
Mike Mayer
http://www.mag37.com/csharp/
mi**@mag37.com
"Randy" <rf*****@bellsouth.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hello,
I'm trying to get some ideas on this. If you were going to have to print a
datagrid control (about 20 columns of data), how would you do it. I'm trying to figure out how to get it to look like a spreadsheet when it prints. How
do you hook this up to a button?
I'm totally lost on this...any help would be greatly appreciated...
Thanks

Nov 15 '05 #2
Thanks Mike...that helps a lot...
"Michael Mayer" <mi**@mag37.com> wrote in message
news:em**************@TK2MSFTNGP12.phx.gbl...
Have a look at my page:

http://www.mag37.com/projects/Printing/

You can either use the code presented on my page, or look at the examples at the bottom of my page. The easiest example is entitled "Printing a
datagrid"
--
Mike Mayer
http://www.mag37.com/csharp/
mi**@mag37.com
"Randy" <rf*****@bellsouth.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hello,
I'm trying to get some ideas on this. If you were going to have to print a datagrid control (about 20 columns of data), how would you do it. I'm

trying
to figure out how to get it to look like a spreadsheet when it prints. How do you hook this up to a button?
I'm totally lost on this...any help would be greatly appreciated...
Thanks


Nov 15 '05 #3
Actually, I forgot to mention, there are some activities going on to format
the report data table in my library below based on a datagrid. I'm not
working on it myself, at the moment, but it should be interesting. Let me
know if you'd like me to update you when that is available.
--
Mike Mayer
http://www.mag37.com/csharp/
mi**@mag37.com
"Randy" <na*****@hotmail.com> wrote in message
news:uR**************@TK2MSFTNGP12.phx.gbl...
Thanks Mike...that helps a lot...
"Michael Mayer" <mi**@mag37.com> wrote in message
news:em**************@TK2MSFTNGP12.phx.gbl...
Have a look at my page:

http://www.mag37.com/projects/Printing/

You can either use the code presented on my page, or look at the examples
at
the bottom of my page. The easiest example is entitled "Printing a
datagrid"
--
Mike Mayer
http://www.mag37.com/csharp/
mi**@mag37.com
"Randy" <rf*****@bellsouth.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hello,
I'm trying to get some ideas on this. If you were going to have to
print a datagrid control (about 20 columns of data), how would you do it. I'm

trying
to figure out how to get it to look like a spreadsheet when it prints. How do you hook this up to a button?
I'm totally lost on this...any help would be greatly appreciated...
Thanks



Nov 15 '05 #4

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

Similar topics

2
by: JasmineC | last post by:
Hi there! I'm having some problems printing out my windows form. Here's what I need to do: I need to print a datagrid off a windows form, however the datagrid is bigger than screen. When I tried...
3
by: Randy | last post by:
Hello, I'm trying to print a dataGrid using PrintDocument control. My datagrid has about 23 columns so it is fairly wide. When I use the PrintControl, it prints only the part of the dataGrid that...
2
by: Newbie | last post by:
i have a c# asp.net webform that contains a datagrid. the datagrid has a vertical scroll. i need to give the user the ability to print the datagrid's entire content (all the rows). IE's print menu...
4
by: Jay | last post by:
Still can't seem to find a solution to printing a lengthy datagrid on multiple pages including datagrid headeron each page. I am not using Crystal Reports or Reporting Services or VStudio. Any...
5
by: ComputerStop | last post by:
I am attempting to print a datagridview. I have not found any method that works successfully. Has any one been successful with this?
4
by: Fred | last post by:
Hello, datagrids have GridLines, BorderWidth, BorderColor, ItemStyle.CssClass, ShowFooter ... properties, which can be used to customize the way they look when printed, how does one achieve the...
3
by: Jay | last post by:
Hi, I have this problem with DataGrid printing. I have a page which contains only DataGrid. When i try to print the page, only 1st page contains the verticle and horizontal lines of the...
0
by: Jay | last post by:
Hi, I have this problem with DataGrid printing. I have a page which contains only DataGrid. When i try to print the page, only 1st page contains the verticle and horizontal lines of the grid....
5
hussaini
by: hussaini | last post by:
please tell me any 1 printing code in datagrid in visual basic 6 in detail ----- Hello seniors members hope u will tell me ..... i have created a form in visual basic 6 so in the form there is a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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.