You must Sign In to post a response.
  • Category: ASP.NET

    Problem in converting vb into C#

    object pxla;
    pXla.Selection.PasteSpecial(Microsoft.Office.Interop.Excel.XlPasteType.xlPasteFormats, Microsoft.Office.Interop.Excel.XlPasteSpecialOperation.xlPasteSpecialOperationNone, False, False)

    I converted this into C# as

    Application xlApp;
    xlApp.Selection.PasteSpecial(XlPasteType.xlPasteFormats, XlPasteSpecialOperation.xlPasteSpecialOperationNone, false, false);

    Error: There is no PasteSpecial in Selection property..

    whereas its present in window application
  • #725505
    Well exactly what you are trying to convert. As you have declared xapp; And then you have set the property . I means its just passing parameter . You need a vb code to translate,
    Rakesh Chaubey

  • #725527
    the first statement you have written: object pxla;
    is itself a c# code. Be careful whatever code you want to convert into c# that should be correct and vb written code.



  • #725585
    Hi lily . there are various ways or sites available for converting VB into C# . But you need to write your code in sequence format . "There is no PasteSpecial in Selection property " This massage generate through you setting properties .So,Kindly check your set prperties

  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.