Results 1 to 3 of 3

Thread: [VB6] ListView Export/Import Class

  1. #1

    Thread Starter
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Wink [VB6] ListView Export/Import Class

    This is one of a few methods of exporting a ListView and the ability to import it also. This method goes a little further, it will export/import all of the following:

    1. ListItems and their SubItems to include forecolor, boldness, icons for both the main item & its subitems (ReportIcon property), tooltips, tags, all properties.

    2. ColumnHeaders to include their formatting and icons

    3. ListView appearance to include borders, background picture, colors, font, and all style attributes (i.e., checkboxes, gridlines, etc)

    4. Any of the ImageLists used by the Listview, including image list properties like image width/height, useMaskColor, etc. Also included will be any keys/tags used by any of the images.

    You can choose to import/export parts/combinations of the above listing. The example project is very basic and not well documented, but the code is not that complex either, with the exception of extracting picture objects for saving to file and converting their file contents to stdPicture objects for importing into an imagelist control.

    Feedback welcomed. I have not nearly tested all the possible combinations of properties to be imported/exported, so a couple of bugs may exist.

    After a fair tryout by you guys/gals, if there is an interest in a similar class to manage TreeView controls, I will consider that too. Also considering adding Import/Export to/from XML functionality
    Name:  Screenshot.jpg
Views: 6842
Size:  22.2 KB
    Attached Files Attached Files
    Last edited by LaVolpe; Feb 14th, 2009 at 09:11 AM.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  2. #2
    New Member
    Join Date
    Jan 2006
    Posts
    6

    Re: [VB6] ListView Export/Import Class

    I know this was placed here quite some time back, but if you've done anything further on this I'd be very interested.

    I'm very interested in reading from and writing to XML from both a listview and a treeview in VB6.

    Thanks,

    gregw

  3. #3

    Thread Starter
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: [VB6] ListView Export/Import Class

    GregW.

    I haven't taken the time to write the XML export/import functions. Doing so would require some rethinking on writing binary data (images for example). Whether it should be written as binary or Base64 encoded is another question to be addressed.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width