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

Printing A DataGrid Contents..

51
hey,

Could anyone guide me as to how to go about printing a Datagrid contents..

I have a print button on a web page.
On the click of this button "ONLY " the contents of the datagrid from the WebPage must b printed.

Waiting for the reply...
Thanx a lot.
Apr 16 '07 #1
3 1379
Expand|Select|Wrap|Line Numbers
  1. for i=0 to datagridview.rows.count-1
  2. if datagrindview.rows.count>0 then
  3. p(10)=new point(10,250)
  4. e.graphics.drawstring(datagridview(columnindex,i),font,drawbrush,p(10))
  5. end if
  6. next
  7.  
Apr 16 '07 #2
aspamit
38
Expand|Select|Wrap|Line Numbers
  1. for i=0 to datagridview.rows.count-1
  2. if datagrindview.rows.count>0 then
  3. p(10)=new point(10,250)
  4. e.graphics.drawstring(datagridview(columnindex,i),font,drawbrush,p(10))
  5. end if
  6. next
  7.  

What is 'p' in the code?
I am using c#
I have declared p as a point.
Help me.
Thnks.
Apr 17 '07 #3
Smish
51
What is 'p' in the code?
I am using c#
I have declared p as a point.
Help me.
Thnks.

Am really sorry to ask this question but cant help it....
How hard i tried nt able to get graphics class..
so please could u elaborate it ..
thanx a lot
Apr 18 '07 #4

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

Similar topics

7
by: Dennis C. Drumm | last post by:
I was wondering if someone could suggest were/how I could get started with setting up printing of a collection of text that includes tables from a grid and other supporting information about the...
11
by: Junkguy | last post by:
I need some help programmatically causing a row in a DataGrid to "flush" its contents to its bound data (in Visual Studio 6 using Windows Forms with C#). My issue is I want to send an update to...
0
by: Michelle Keys | last post by:
I am trying to call a print function to print a string from a database using javascript. Which is RC_DATA of Varchar2(2500). This is a javascript is not being used. I have a thing that needs to...
1
by: kscdavefl | last post by:
Is it possible to print the contents of a webform datagrid and if so how? Thanks, Dave
3
by: Tina | last post by:
Is there any utility or tool or function to print the contents of a web datagrid in report form? If not, does the new 2.0 framework/vs.net have such a capability? Thanks, T
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...
0
by: Geoff Jones | last post by:
Hi Can anybody tell me how to print the contents of a DataGrid in VB.net? Geoff
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?
2
by: mcmahon | last post by:
Hi, I need to be able to print the contents of a datagrid view. I have the printdialog, printdocument and printpreview dialog controls put on my form.. Here is my code so far: Private Sub...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.