1 Replies - 887 Views - Last Post: 30 March 2010 - 03:09 PM Rate Topic: -----

#1 mrrusty  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 23-February 10

Printing multicolumns from listview

Posted 30 March 2010 - 01:34 AM

I have a listview which the user populates with data. The listview has 3 columns but I wish to print out just 2 of these columns. I can get the code to print both columns but they print in the same location on the page. I have tried to move the second column to the right but cannot get it to work. Any help would be appriciated.

Attached File(s)


Is This A Good Question/Topic? 0
  • +

Replies To: Printing multicolumns from listview

#2 vohom001  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 04-September 09

Re: Printing multicolumns from listview

Posted 30 March 2010 - 03:09 PM

From what I know....

The horizontal starting point of content (x position) is determined by the value of the e.MarginBounds.Left...in your code you have two variables that are assigned to that value so playing around with one of those should sort your problem out.....

In the DrawString parameters where you have '10' as the x position needs to be changed to one of the variables....for test try to put '50' into the first DrawString call and the value of '150' in the other DrawString call and you will see how that values affect the output...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1