Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. invalid system.string to system.drawing.image.
  2.  
  3. Dim ds As New DataSet
  4. Dim bs As New BindingSource
  5. ds.ReadXml("D:Project1people.xml")
  6. bs.DataSource = ds.Tables(0)
  7. Me.DataGridView1.DataSource = bs
  8.  
  9. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  10. <root>
  11. <record>
  12. <Id>1</Id>
  13. <Name>Jack</Name>
  14. <Dob>22-3-1991</Dob>
  15. <Function>Function1</Function>
  16. <Picture>D:PicturesJack.jpg</Picture>
  17. </record>
  18. <record>
  19. <Id>2</Id>
  20. <Name>Taylor</Name>
  21. <Dob>16-8-1976</Dob>
  22. <Function>Function2</Function>
  23. <Picture>D:PicturesTaylor.jpg</Picture>
  24. </record>
  25. <record>
  26. <Id>3</Id>
  27. <Name>Haley</Name>
  28. <Dob>8-1-1988</Dob>
  29. <Function>Function1</Function>
  30. <Picture>D:PicturesHaley.jpg</Picture>
  31. </record>
  32. </root>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement