473,411 Members | 2,014 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,411 software developers and data experts.

Printing in vb.net 2005

129 100+
Hi guys,

I am dwadish a beginer in vb.net programing language and i am doing a project about a medical shop, while the project need printing reports.I am using datagridview control for reporting. I want to know how to print the datagridview contents in vb.net 2005.


any one can help me!

Thanx in advance
Oct 20 '07 #1
5 1171
kenobewan
4,871 Expert 4TB
I usually use print() with the DGV in a panel. HTH.
Oct 21 '07 #2
dwadish
129 100+
Can u Give the sample code to me

I am well tried with some codes but it is too longer and wider

Thanx in advance
Oct 21 '07 #3
dwadish
129 100+
.............................................
No one To Help me
............................................
............................................
Oct 25 '07 #4
kenobewan
4,871 Expert 4TB
You need to understand formating, that is why most documents on the web for printing are pdf. Now try rethinking how to approach this.
Oct 25 '07 #5
dwadish
129 100+
Expand|Select|Wrap|Line Numbers
  1.  
  2. I am using this code for printing
  3. str=listview.items(i).subitems(1).text
  4. e.graphics.drawstring(str,font,brush,rectangle)
  5.  
  6.  Actually this giving a smart way for printing.
  7.  
  8.  My listview Have column named "Price"
  9.  
  10. and need to print this column with format like this
  11. eg:- Itemname               Price
  12. -------------------------------------------------
  13.        aaa                           12.00
  14.        bbbb                       120.00
  15. ---------------------------------------------------
  16. I am getting like this Please help me to print the column with the above shown format
  17.  
  18. eg:- Itemname               Price
  19. -------------------------------------------------
  20.        aaa                         12.00
  21.        bbbb                       120.00
  22. ---------------------------------------------------
  23.  
  24.  
  25.  
Oct 27 '07 #6

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

Similar topics

1
by: mscir | last post by:
+--------------------------------------------------------------------+ | Printing XML: Why CSS Is Better than XSL | | from the anything-you-can-do-i-can-do-better dept. ...
7
by: Victor S. | last post by:
1. What is System.Windows.Forms.VisualStyles.TextMetricsCharacterSet good for? 2. Are the Indic scripts supported? Are all supported scripts fully supported? (for printing and fine measuring)...
4
by: Al Jones | last post by:
Well, hopefully that title get someones attention. In this old gwbasic program I've converted I *have* sucessuflly converted it to print to a file and the output is acceptable. From there I have...
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: Teemu | last post by:
I have an application created with VB6 and now I'm converting it to VB 2005. Conversion is not so simple because printing is so much different. In my app I have Timer-component, which is creates...
6
by: Siv | last post by:
Hi, I am getting into printing with VB.NET 2005 and want to implement the usual capability that a user can select a selection of pages. I have a report that is generated by my application that if...
2
by: pedestrian via SQLMonster.com | last post by:
I wonder is there any way I can turn off the "Documentation Feedback" section of the Books Online at the bottom of the pages... I'm printing some Books Online pages for own reference. Thanks in...
18
by: Brett | last post by:
I have an ASP.NET page that displays work orders in a GridView. In that GridView is a checkbox column. When the user clicks a "Print" button, I create a report, using the .NET Framework printing...
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: 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...
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
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,...
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
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...
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.