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,
    Regards
    Rakesh Chaubey
    rakeshchaubey1989@gmail.com

  • #725527
    Hi.
    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.

    Thanks

    Reena

  • #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.