Unable to implement Constructor Overloading in an inherited class. Plz Help

Please do compile the program in in order to notice the error.
class EmpDet
int id,age;
String name;
String gender;
  EmpDet(int id1,String name1,int age1,String gender1)
    this.id = id1;
    this.name= name1;
    this.age= age1;
    this.gender = gender1;
   void Id_Name()
   System.out.println("EmpId : "+id+" and Name : "+name);
   void Gender_Age()
    System.out.println("Employee is a "+gender+" and is "+age+" years old.");
  class Employee extends EmpDet
       String locality;
    Employee(int a,String b,int c,String d)
         super(a,b,c,d);
    Employee(String locality1)// Constructor overloading. My problem.
         this.locality = locality1;
  void locality()
    System.out.println("The employee resides at "+locality);
   void DiplayStmt()
        System.out.println("DISPLAYING EMPLOYEE DETAILS..");
        System.out.println("******************************");
   public static void main (String[] args)
    Employee det = new Employee(010,"John",32,"M");
    Employee addr = new Employee("Tambaram");
    addr.DiplayStmt();
    det.Id_Name();
    det.Gender_Age();
    addr.locality();
  }

Hey Thanks.. I guess what you said makes sense.
I was fiding it hard to agree that there needs to be a match between the Constructors of the Base Class and the Sub Class. I altered the program by adding a constructor in the Base class and using the super(0 function in the Sub class and that seems to work..
class EmpDet
int id,age;
String name;
String gender;
EmpDet(int id1,String name1,int age1,String gender1)
     this.id = id1;
this.name= name1;
this.age= age1;
this.gender = gender1;
EmpDet(String addr)
     System.out.println("Address is implemented in SubClass");
void Id_Name()
System.out.println("EmpId : "+id+" and Name : "+name);
void Gender_Age()
System.out.println("Employee is a "+gender+" and is "+age+" years old.");
class Employee extends EmpDet
     String locality;
Employee(int a,String b,int c,String d)
     super(a,b,c,d);
Employee(String locality1) // Constructor Overloading
     super(locality1);
     this.locality = locality1;
void locality()
System.out.println("The employee resides at "+locality);
void DiplayStmt()
     System.out.println("DISPLAYING EMPLOYEE DETAILS..");
     System.out.println("******************************");
public static void main (String[] args)
Employee det = new Employee(010,"John",32,"M");
Employee addr = new Employee("Tambaram");
addr.DiplayStmt();
det.Id_Name();
det.Gender_Age();
addr.locality();
Message was edited by:
3402102

Similar Messages

  • HT4489 i am unable to import my Vcard: to my icloud contacts plz help

    i am unable to import my Vcard: to my icloud contacts plz help

    How did you create the vCard file, how are you importing to iCloud, what is your operating system.

  • I am unable to update my iphone 3gs i am new  plz help

    hi
    i am unable to update my iphone 3gs i am new  plz help

    Hi harshp123,
    Thanks for using Apple Support Communities.  This article has steps to take if you're unable to update your iPhone 3gs:
    iOS: Unable to update or restore
    http://support.apple.com/kb/ht1808
    Please note that the following hardware can update to iOS 7:
    iPhone 4 and later
    iPad 2 and later
    iPad mini
    iPod touch (5th generation)
    This information was found here:
    iOS 7
    http://support.apple.com/kb/DL1682
    Cheers,
    - Ari

  • Hello i m unable to restore my system preferences which is frozen plz help

    m new mac user n at the start system preferences freezez i m unable to find soloution plz help if any one find it ...

    See Here...
    Unable to Update or Restore
    http://support.apple.com/kb/HT1808

  • Unable to connect database by DataSource in tomcat5.5 plz help to me

    hi,
    i want to connect Database through DataSource in Tomcat5.5 with mysql
    i wrote one servlet , made change in server.xml, web.xml.
    when i access it show exception
    java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.org.apache.tomcat.dbcp.collections)
            at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
            at java.security.AccessController.checkPermission(AccessController.java:427)
            at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
            at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1512)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)The servlet
    * DataSourceAccess.java
    * Created on August 22, 2005, 3:14 PM
    package officecom;
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    import javax.naming.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.sql.*;
    * @author Paramasivam
    * @version
    public class DataSourceAccess extends HttpServlet {
        /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
         * @param request servlet request
         * @param response servlet response
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            /* TODO output your page here
            out.println("<html>");
            out.println("<head>");
            out.println("<title>Servlet DataSourceAccess</title>");
            out.println("</head>");
            out.println("<body>");
            out.println("<h1>Servlet DataSourceAccess at " + request.getContextPath () + "</h1>");
            out.println("</body>");
            out.println("</html>");
            out.println(" got connection ?  "+getDataConnnecion());
            out.close();
        public boolean getDataConnnecion(){
            try{
                System.out.println(" INFO : getConnection called     ");
                Context initContext = new InitialContext();
                Context envContext  = (Context)initContext.lookup("java:/comp/env");
                DataSource ds = (DataSource)envContext.lookup("mysql");
                Connection con = ds.getConnection();
                if( con != null ){
                    return true;
                }else
                    return false;
            }catch(Exception e){
                e.printStackTrace();
                return false;
        // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        /** Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        /** Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        /** Returns a short description of the servlet.
        public String getServletInfo() {
            return "Short description";
        // </editor-fold>
    }Changes in server.xml
    <GlobalNamingResources>
          <Resource
          name="mysql"
          auth="Container"
          type="javax.sql.DataSource"
          password=""
          driverClassName="com.mysql.jdbc.Driver"
          maxIdle="2"
          maxWait="5000"
          username="root"
          url="jdbc:mysql://localhost:3306/sushi?autoReconnect=true"
          maxActive="4"/>
      </GlobalNamingResources>changes in web.xml
      <resource-ref>
               <description>Tomcat DBCP</description>
               <res-ref-name>mysql</res-ref-name>
               <res-type>javax.sql.DataSource</res-type>
               <res-auth>Container</res-auth>
    </resource-ref> 

    You might have more answers if you post this same question in the Sun Java Studio Enterprise forum...
    http://swforum.sun.com/jive/category.jspa?categoryID=90

  • Unable to download SAP NetWeaver 7.01 using IDM - Plz help

    Hi All,
    I tried downloading SAP NetWeaver 7.01  - ABAP Trial using IDM but it failed after downloading 70% of it.
    I tried it 4 times but it failed showing the message  "server doesn't responded".
    Is there any other way downloading it or should i download it without using a download manager.
    Those who have downloaded it plz help.
    Thanks & Regards,
    Nitin kumar.

    Hi Prashant,
    U were right. I t was bcoz connection used to break while downloading. I need to download it where I can get a speed of 1 mbps.
    My connection provide a sped of 60 kbps so due to long downloading time connection broke.
    Thanks,
    Nitin Kumar

  • Is this constructor overloading??

    class A
    A(){
    System.out.println("A is instantiated");
    public void A(){
    System.out.println("inside the method A of class A");
    class B extends A
    B(){
    System.out.println("B is instantiated");
    public void B(){
    System.out.println("inside the method B of class B");
    public static void main(String[] args) {
    A a = new A();
    a.A();
    B b = new B();
    b.A();
    b.B();     
    since i hav given same names to constructor and method in class A and also in class B....i hav doubt whether is constructor overloading or not?

    Try compiling this code:
    class ObjectOne {
        ObjectOne() {}
        ObjectOne(int n) {
            System.out.println(n);
    class ObjectTwo extends ObjectOne {
        public static void main(String[] args) {
            ObjectTwo obj = new ObjectTwo(9);
    }The very first line of any constructor is a call to super. Even if you do not type it, that line is explicitly inserted by the compiler.
    So this:
    class Foo extends Bar {
        Foo() {
            System.out.println("Foo");
    }becomes
    class Foo extends Bar {
        Foo() {
            super();  // explicit call to super
            System.out.println("Foo");
    }

  • Implementing constructor outside class implementation..

    REPORT  ZTUSH.
    CLASS counter DEFINITION.
      PUBLIC SECTION.
        METHODS CONSTRUCTOR.
        CLASS-METHODS: set IMPORTING value(set_value) TYPE i,
                 increment,
                 get EXPORTING value(get_value) TYPE i.
       PRIVATE SECTION.
       CLASS-DATA count TYPE i.
    ENDCLASS.
    METHOD CONSTRUCTOR.
    WRITE:/ 'I AM CONSTRUCTOR DUDE'.
    ENDMETHOD.
    CLASS counter IMPLEMENTATION.
    METHOD set.
        count = set_value.
      ENDMETHOD.
    ENDCLASS.
    DATA cnt TYPE REF TO counter.
    START-OF-SELECTION.
      CREATE OBJECT cnt.
      CALL METHOD counter=>set EXPORTING set_value = number.
    I THOUGHT WE CAN DEFINE CONSTRUCTOR METHOD OUTSIDE CLASS IMPLEMENTATION AS IN JAVA. But when I do that I get an error, method can be implemented only withing class. Why?

    Hello Rajesh
    I do not fully understand what you mean by "I THOUGHT WE CAN DEFINE CONSTRUCTOR METHOD OUTSIDE CLASS IMPLEMENTATION AS IN JAVA". However, if you mean that we can create an object without having an explicit CONSTRUCTOR method defined then this is possible in ABAP like in Java (see coding below).
    Regards
      Uwe
    REPORT ztush.
    *       CLASS counter DEFINITION
    CLASS counter DEFINITION.
      PUBLIC SECTION.
    *METHODS CONSTRUCTOR.
        CLASS-METHODS: set IMPORTING value(set_value) TYPE i,
        increment,
        get EXPORTING value(get_value) TYPE i.
      PRIVATE SECTION.
        CLASS-DATA count TYPE i.
    * NO explicit constructor
    *METHOD CONSTRUCTOR.
    *WRITE:/ 'I AM CONSTRUCTOR DUDE'.
    *ENDMETHOD.
    ENDCLASS.                    "counter DEFINITION
    *       CLASS counter IMPLEMENTATION
    CLASS counter IMPLEMENTATION.
      METHOD set.
        count = set_value.
      ENDMETHOD.                    "set
      METHOD get.
      ENDMETHOD.                    "get
      METHOD increment.
      ENDMETHOD.                    "increment
    ENDCLASS.                    "counter IMPLEMENTATION
    DATA cnt TYPE REF TO counter.
    START-OF-SELECTION.
    * Implicit constructor is called
      CREATE OBJECT cnt.
      CALL METHOD counter=>set
        EXPORTING
          set_value = 5.
    END-OF-SELECTION.

  • Trying to implement the Builder pattern with inheritance

    This is just a bit long, but don't worry, it's very understandable.
    I'm applying the Builder pattern found in Effective Java (J. Bloch). The pattern is avaiable right here :
    http://books.google.fr/books?id=ka2VUBqHiWkC&lpg=PA15&ots=yXGmIjr3M2&dq=nutritionfacts%20builder%20java&pg=PA14
    My issue is due to the fact that I have to implement that pattern on an abstract class and its extensions. I have declared a Builder inside the base class, and the extensions specify their own extension of the base's Builder.
    The abstract base class is roughly this :
    public abstract class Effect extends Trigger implements Cloneable {
        protected Ability parent_ability;
        protected Targetable target;
        protected EffectBinder binder;
        protected Effect(){
        protected Effect(EffectBuilder parBuilder){
            parent_ability = parBuilder.parent_ability;
            target = parBuilder.target;
            binder = parBuilder.binder;
        public static class EffectBuilder {
            protected Ability parent_ability;
            protected Targetable target;
            protected EffectBinder binder;
            protected EffectBuilder() {}
            public EffectBuilder(Ability parParentAbility) {
                parent_ability = parParentAbility;
            public EffectBuilder target(Targetable parTarget)
            { target = parTarget; return this; }
            public EffectBuilder binder(EffectBinder parBinder)
            { binder = parBinder ; return this; }
        // etc.
    }And the following is one of its implementation :
    public class GainGoldEffect extends Effect {
        private int gold_gain;
        public GainGoldEffect(GainGoldEffectBuilder parBuilder) {
            super(parBuilder);
            gold_gain = parBuilder.gold_gain;
        public class GainGoldEffectBuilder extends EffectBuilder {
            private int gold_gain;
            public GainGoldEffectBuilder(int parGoldGain, Ability parParentAbility) {
                this.gold_gain = parGoldGain;
                super.parent_ability = parParentAbility;
            public GainGoldEffectBuilder goldGain(int parGoldGain)
            { gold_gain = parGoldGain; return this; }
            public GainGoldEffect build() {
                return new GainGoldEffect(this);
        // etc.
    }Effect requires 1 parameter to be correctly instantiated (parent_ability), and 2 others that are optional (target and binder). Implementing the Builder Pattern means that I won't have to rewrite specific construcors that cover all the combination of parameters of the Effect base class, plus their own parameter as an extension. I expect the gain to be quite huge, as there will be at least a hundred of Effects in this API.
    But... in the case of these 2 classes, when I'm trying to create the a GoldGainEffect like this :
    new GainGoldEffect.GainGoldEffectBuilder(1 , locAbility).goldGain(5);the compiler says "GainGoldEffect is not an enclosing class". Is there something wrong with the way I'm trying to extend the base Builder ?
    I need your help to understand this and find a solution.
    Thank you for reading.

    The GainGoldEffectBuilder class must be static.
    Otherwise a Builder would require a GainGoldEffect object to exist, which is backwards.

  • Use CAST to check if an instance belongs to inherited classes.

    Dear all.
    I have got a method called GET_LINKS which is supposed to give back all references in an internal table which are of a given class or belong to classes being inherited.
    ( I do not have both - access to the internet and our R3 at once that is why I only provide pseudo code)
    Example:
    think of follwing structure:
      cl_object
         cl_class1
            cl_class11
         cl_class2
            cl_class21
            cl_class22
    so if check against cl_objets the method should give back all references .... if cl_class1 only those who belongs to cl_class1 or class11...you got the idea.
    so My method looks somewhat like following.
    method get_links.
    * changing  ch_instance type ref to object.
    * returnning re_links (table of instances)
    loop at ait_links into lwa_links.
      catch system-exception - move_cast_error
       ch_instance ?= lwa_links-instance.
      endcatch.
      if sy-subrc is initial.
        insert lwa_links into table re_links.  
      endif.
    endloop.
    endmethod.
    coding works fine so far - the only thing I do not like is that I have to provide a changing parameter for the cast. I would prefer a local copy of an importing parameter for the checks.
    But as soon as I use a very generic type declaration - like ref to object - no casting error will take place and I am not able to differentiate the groups down the inheritance.
    I tried to create a dynamic reference variable but failed. I guess I would need to create a type dynamically but this is not possible before 6.4 (and I am on 4.6c)
    Any suggestion for that?
    Thank you very much.
    Christian

    Hi, list my suggestion as following:
    'ch_instance type ref to object'
    As it is defined as an object type,
    'ch_instance ?= lwa_links-instance.' won't catch any error, because OBJECT is the root type of any object type, if you only need to compare them and differentiate the class and inherited class from others, you can do like this:
      catch system-exception - move_cast_error
       lwa_links-instance ?= ch_instance.
      endcatch.
    By the way, I don't know what's the definition of lwa_links-instance is. I wrote some sample code for you scenario, as list it as following:
    * I create two inherited class
    CLASS C1 DEFINITION INHERITING FROM CL_ABAP_TYPEDESCR.
      PUBLIC SECTION.
        DATA: C1  TYPE  C.
    ENDCLASS.
    CLASS C2 DEFINITION INHERITING FROM CL_GUI_CONTROL.
      PUBLIC SECTION.
        DATA: C2  TYPE  C.
        METHODS CONSTRUCTOR.
    ENDCLASS.
    CLASS C2 IMPLEMENTATION.
      METHOD CONSTRUCTOR.
        CALL METHOD SUPER->CONSTRUCTOR EXPORTING NAME = 'aaa'.
      ENDMETHOD.
    ENDCLASS.
    * assume that you have a class, using CL_ABAP_CLASSDESCR
    * we can get the name of it
    DATA:
    descr_ref TYPE ref to CL_ABAP_CLASSDESCR.
      descr_ref ?= cl_abap_typedescr=>DESCRIBE_BY_OBJECT_REF( CLass ).
    * then we can transfer the class name into the module get_links
    module XXXX.
      DATA: A  TYPE  REF TO C1,
            B  TYPE  REF TO C2,
            R  TYPE REF TO OBJECT.
      CREATE OBJECT A.
      CREATE OBJECT R TYPE ('C1').
    * here it goes well
    * as the A type is C1, and R is create as C1 too
      CATCH SYSTEM-EXCEPTIONS MOVE_CAST_ERROR = 1.
        A ?= R.
      ENDCATCH.
      CREATE OBJECT R TYPE ('C2').
    * here it can catch the error
    * as the A type is C1, and R is create as C2, C1 & C2 has
    * no relation like inherit
      CATCH SYSTEM-EXCEPTIONS MOVE_CAST_ERROR = 1.
        A ?= R.
      ENDCATCH.
    * XXXX is the class name which transfered into module
      CREATE OBJECT R TYPE ('XXXX'). 
    * then try to create the class according to class name
    * which is you want
      CATCH SYSTEM-EXCEPTIONS MOVE_CAST_ERROR = 1.
        A ?= R.
      ENDCATCH.
    Hope my reply can help you solve the problem
    By the way, the code cost me some time, so don't forget the reward points
    thanks a lot

  • Inheritance class not working

    Alright, so I'm supposed to write an inheritance class called MusicStore, which is inherited from the Store ( already written), and then the MusicStore method tests out the MusicStore. The MusicStore has the additional attributes of the number of titles it offers and the its address...The store already offers the name of the store where the titles are located...I believe I'm writing it the MusicStore correctly, but I get this really odd error when I compile...I am not quite sure how it happens????? Helllpppp!!! I would appreciate it
    I will post the error and the error is located a bit lower in the MusicStore that I posted-
    "File: E:\comp 150\H10\MusicStore.java [line: 13]
    Error: E:\comp 150\H10\MusicStore.java:13: cannot find symbol
    symbol : constructor Store()
    location: class Store"
    Here is the Store:
    /* Store Class
       Anderson, Franceschi
    public class Store
      public final double SALES_TAX_RATE = 0.06;
      private String name;
      public Store( String newName )
        setName( newName );
      public String getName( )
        return this.name;
      public void setName( String newName )
        this.name = newName;
      public String toString( )
        return( "name: " + this.name );
      public boolean equals( Store otherStore )
        return ( this.name.equalsIgnoreCase( otherStore.name ) );
    }Here is the MusicStore:
    /* MusicStore class
    Smith, Tahnee
    public class MusicStore extends Store
      public final int DEFAULT_NUMBER = 0;
      private int numberOfTitles;
      public final String DEFAULT_ADDRESS = " ";
      private String address;
      public MusicStore()
      {                                         // LINE 13 : Here is where the error is...I don't understand what is going on here.
        address = DEFAULT_ADDRESS;
        numberOfTitles = DEFAULT_NUMBER;
      public MusicStore(String startNameStore, int startNumber, String startAddress)
        super( startNameStore );
        setNumberOfTitles( startNumber );
        setAddress( startAddress);
      public void setAddress( String newAddress)
        address = newAddress;
      public void setNumberOfTitles(int newNumber)
        if ( numberOfTitles > 0 )
          numberOfTitles = newNumber;
        else
          System.out.println(" Number of titles cannot be negative");
      public String toString()
        return super.toString()
          + " The number of titles are " + numberOfTitles
          + " The address is " + address;
    }Here is the MusicStoreClient:
    /* MusicStoreClient class
       Anderson, Franceschi
    public class MusicStoreClient
      public static void main( String [] args )
        MusicStore ms1 = new MusicStore( "Records, Inc.", 1000, "123 Elm Street" );
        MusicStore ms2 = new MusicStore( "All Records Unlimited", 1200, "999 Green Street" );
        System.out.println( ms1 );
        System.out.println( ms2 );
        ms2.setNumberOfTitles( 1000 );
        ms2.setAddress( "123 Elm Street" );
        if ( ms1.equals( ms2 ) )
          System.out.println( "ms1 and ms2 are equal" );
        else
          System.out.println( "ms1 and ms2 are not equal" );
        ms2.setName( "Records, Inc." );
        if ( ms1.equals( ms2 ) )
          System.out.println( "ms1 and ms2 are now equal" );
        else
          System.out.println( "ms1 and ms2 are still not equal" );
    }Edited by: guitarlady3000 on Nov 5, 2008 4:22 PM
    Edited by: guitarlady3000 on Nov 5, 2008 4:37 PM

    You don't explicitly call the super(...) constructor in your parameterless MusicStore constructor code and so Java will automatically and behind the scenes place a call to super() there. Problem is, Store doesn't have a parameterless constructor. Solution: either give Store a parameterless constructor or explicitly call super with a proper parameter.

  • I created an iCloud account and also had to get more space after I have done the purchase, I am unable to backup my phone! I have a stable wifi connection at home and all I see for hours and hours is "Backing Up .. Estimating time remaining"!!!!! Plz help

    I created an iCloud account and also had to get more space so after I have made the purchase, I am unable to backup my phone! I have a stable wifi connection at home and all I see for hours and hours is "Backing Up .. Estimating time remaining"!!!!! Plz help I'm unable to make the backup as I need to transfer all my data on my new iPhone 5S

    This may be caused by a corrupt existing backup that needs to be deleted, or by data on your device that is causing the backup to fail.  To troubleshoot these, try deleting your last iCloud backup (if you have one) by turning off iCloud Backup in Settings>iCloud>Storage & Backup, then tap Manage Storage, tap your device under Backups, then tap Delete Backup.  Then go back and turn iCloud Backup back on and try backing up again.
    If it still won't back up, you may have an app or something in your camera roll that is causing the backup to fail.  To locate which one, go to Settings>iCloud>Storage & Backup>Manage Storage, tap the name of your device under Backups, under Backup Options tap Show All Apps, then turn them all to Off (including camera roll) and try backing up again.  If the backup is successful, then the camera roll and/or one of your apps is causing the backup to fail and you'll have to located by process of elimination. Turn the camera roll On and try backing up again.  If it succeeds, turn some of your apps to On and try backing up again.  If it succeeds again, turn some more apps to On then try again; repeat this process until it fails.  Eventually you'll be able to locate the problem app and exclude it from your backup.
    In the meantime you can back up your phone to your computer by connect it, opening iTunes and going to File>Devices>Back Up.  Also be sure to transfer your purchases (File>Devices>Transfer Purchases).  Then set up your new phone and when given the option, choose Restore from iTunes Backup and follow the prompts to restore this backup to your new phone.  This will be much faster than using iCloud anyway.

  • Unable to get the Text proerty of Range class

    Hi,
    I am using the Text property of Range class for excel template development using VSTO.While reloading the template i am getting the error "Unable to get the Text proerty of Range class".If i skip this line of code,i am getting similar kind of errors while accessing the properties of Range class(like Range.copy() ,Range.Locked, Range.EntireRow.Hidden).In all these cases i am getting the similar kind of error "unable to get the property of Range Class".
    Waiting for a quick response...
    Thanks in advance..

    Hi Besse,
    Actully, the error is coming when i try to populate datatable with the the range values in one of the sheet.
    I am using the below code.
    //"wsInteropMetadata"  is the sheet object.
    //"RangeName" is the range name in the sheet.
    rngConfig = wsInteropMetadata.get_Range("RangeName", Type.Missing);
    for (int iRow = 1; iRow <= iRowCnt; iRow++)
        dRNew = dTMetadataTable.NewRow();
        for (int iCol = 1; iCol <= iColCnt; iCol++)
          rngCell = (Excel.Range)rngConfig.Cells[iRow, iCol];
          dRNew[iCol - 1] = rngCell.Text.ToString();
       dTMetadataTable.Rows.Add(dRNew);
    In the first load of the template,this code is working fine.In the reload i am getting the error at "rngCell.Text".If i see in quickwatch,most of the properties of  "rngCell" object are throwing "System.Runtime.InteropServices.COMException".See the below exception information.
     Exception Information
     Exception Type: System.Runtime.InteropServices.COMException
    Message: Unable to get the Text property of the Range class
    Source: Microsoft Office Excel
    ErrorCode: -2146827284
    Thanks
    Krishna.

  • I have problem when i want to update ios 6 to 6.0.1 this message appear " unable to verify update , ios 6.0.1 faild verification because you are no longer connected to the internet" but my ipad is connected . Plz help me .

    I have problem with my ipad ,  when i want to update ios 6 to 6.0.1 this message appear " unable to verify update , ios 6.0.1 faild verification because you are no longer connected to the internet" but my ipad is connected . Plz help me .

    Not very helpful but I have the same issue. Plugging in and doing the update via. iTunes will probably work but I find that whole experience annoying (downloading apps not on the Mac, etc..)

  • I just updated my itunes and now I am unable to open any of my songs... please help me.

    i just updated my itunes and now I am unable to open any of my songs... please help me. Every time i click it, it says it cannot be read because it was made by a newer version of itunes.

    Try resetting the Nano with it still connected to a high powered USB 2.0 port on your PC. To reset the iPod, press and hold both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear.
    B-rock

Maybe you are looking for