Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

datatable.import

This is a discussion on datatable.import within the QTP forums, part of the Software Testing category; what is different between datatable.import and datatable.importsheet? If excel file has 7 sheets, if we use import method, then all the 7 sheets are imported into runtime datatable or not....

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 11-18-2007
Expert Member
 
Join Date: Sep 2007
Location: Hyderabad
Posts: 115
Thanks: 1
Thanked 19 Times in 15 Posts
rajaputra is on a distinguished road
datatable.import

what is different between datatable.import and datatable.importsheet?

If excel file has 7 sheets, if we use import method, then all the 7 sheets are imported into runtime datatable or not.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-20-2007
Junior Member
 
Join Date: Nov 2007
Location: pune
Posts: 3
Thanks: 0
Thanked 2 Times in 1 Post
Shwe30 is on a distinguished road
Re: datatable.import

Quote:
Originally Posted by rajaputra View Post
what is different between datatable.import and datatable.importsheet?

If excel file has 7 sheets, if we use import method, then all the 7 sheets are imported into runtime datatable or not.
DataTable.Import = Imports the specified Microsoft Excel file to the run-time Data Table.
DataTable.ImportSheet = Imports a sheet of a specified file to a specified sheet in the run-time Data Table. The data in the imported sheet replaces the data in the destination sheet

If excel file has 7 sheets, if we use import method, then all the 7 sheets are imported into the runtime datatable
Reply With Quote
  #3 (permalink)  
Old 11-20-2007
Expert Member
 
Join Date: Sep 2007
Location: Hyderabad
Posts: 115
Thanks: 1
Thanked 19 Times in 15 Posts
rajaputra is on a distinguished road
Re: datatable.import

You are right.

But when we are using datatable.import method, then first 2 sheets only imported into the runtime datatable. NOT ALL THE SHEETS.
Reply With Quote
  #4 (permalink)  
Old 06-27-2009
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,461
Thanks: 15
Thanked 150 Times in 141 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: datatable.import

hai Raj,

yes, for me while using Datatable.Import only first sheet value is getting imported.

Thanks
Deepa
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Create datatable in memory Geek_Guest C# 2 12-13-2007 01:08 AM
Import From Database rajaputra QTP 3 11-05-2007 01:23 PM
How to execute second record from run time datatable ? bharathi_ark QTP 1 08-02-2007 02:44 PM
How to place whole table in webpage onto datatable Geek_Guest QTP 0 05-13-2007 08:48 AM
How to assign the datatable values to a local variable in a script Geek_Guest QTP 0 05-13-2007 05:11 AM


All times are GMT -4. The time now is 06:23 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved