Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 13th, 2004, 02:39 AM
Authorized User
 
Join Date: Feb 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Printing a ListViewItems

My problem is that i can't print the second row in ListView.Here is my code:
      Dim str As String
        Dim str1 As String
        Dim str2 As String
        Dim str3 As String
        Dim str4 As String
        Dim str5 As String

        str = lstPodaci.TopItem.SubItems(0).Text
        e.Graphics.DrawString(str, tableFont, Brushes.Black, X1, Y)
        str1 = lstPodaci.TopItem.SubItems(1).Text
        e.Graphics.DrawString(str1, tableFont, Brushes.Black, X2, Y)
        str2 = lstPodaci.TopItem.SubItems(2).Text
        e.Graphics.DrawString(str2, tableFont, Brushes.Black, X3, Y)
        str3 = lstPodaci.TopItem.SubItems(3).Text
        e.Graphics.DrawString(str3, tableFont, Brushes.Black, X4, Y)
        str4 = lstPodaci.TopItem.SubItems(4).Text
        e.Graphics.DrawString(str4, tableFont, Brushes.Black, X5, Y)
        str5 = lstPodaci.TopItem.SubItems(5).Text
        e.Graphics.DrawString(str5, tableFont, Brushes.Black, X6, Y)
How can i get this to print second row?
Please help me!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Help about printing Fahim Crystal Reports 0 November 12th, 2006 11:14 PM
Printing Arunachalam Beginning VB 6 2 October 12th, 2006 07:44 AM
Printing uchkid Pro Visual Basic 2005 1 September 7th, 2006 03:37 AM
capturing printing settings when printing reports nikolaosk Access VBA 0 February 8th, 2005 04:14 AM
Printing NiNe ADO.NET 5 April 7th, 2004 04:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.