SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Aug 2003
    Location
    Richmond VA
    Posts
    62
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Exporting local sheet information to Excel

    Hi All,

    I am trying to write out the contents of the local sheet in QTP. I have been trying: DataTable.ExportSheet "C:\Book1.xls", Action1

    and the only thing that will do is just to write out the column header information. None of the data gets written out. Does anyone have a code snippet they can post to enlighten me on this?

    Thanks in advance.
    -Strudel

  2. #2
    Senior Member
    Join Date
    Oct 2001
    Posts
    189
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Exporting local sheet information to Excel

    If you see the QTP documentation for Export it says

    Saves a copy of the run-time data table in the specified location.

    So it works only if it is run-time data table, that means if you have created that data table during run time using import then you can export otherwise not.

  3. #3
    Junior Member
    Join Date
    Nov 2002
    Location
    bangalore
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Exporting local sheet information to Excel

    use DataTable.ExportSheet "C:\name.xls" ,1 to export the first sheet of the data table and change the number of the script to export the desired sheet from the datatable.

    ExataTable.ExportSheet "C:\name.xls" ,2
    ExataTable.ExportSheet "C:\name.xls" ,3

  4. #4
    Member
    Join Date
    Aug 2003
    Location
    Richmond VA
    Posts
    62
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Exporting local sheet information to Excel

    Hey thanks ya'll for the info. Works great.

  5. #5
    Junior Member
    Join Date
    Jun 2004
    Location
    ATL
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Exporting local sheet information to Excel

    How can you specify a relative path when exporting?

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.00%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 01:25 PM.

Copyright BetaSoft Inc.