We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Paste to IWorksheet from clipboard

I copy GridRangeInfo into a clipboard and would like to paste it into a IWorksheet I have created. How can this be achieved?

3 Replies

GM Gaukhar Massabayeva April 5, 2013 02:34 PM UTC

Sample code

ExcelEngine

Engine = CreateEngine();

IWorkbook book = engine.Excel.Workbooks.Create(1);

IWorksheet sheet = book.Worksheets[0];

model.CutPaste.ClipboardFlags =

GridDragDropFlags.Styles;

model.CutPaste.CopyRange(

GridRangeInfo.Table());

sheet.

book.SaveAs(FileName);

book.Close();

}



GM Gaukhar Massabayeva April 8, 2013 09:04 AM UTC

I can see the copying but where is the pasting into worksheet bit is?



RA Rajesh A Syncfusion Team April 9, 2013 05:27 AM UTC

Hi Gaukhar Massabayeva,

   Thank you for using the Syncfusion product.

  Currently XlsIO is not having the support for “pasting the clipboard values into worksheet” and we have already logged the feature report regarding this. We are requesting you to create a new direct-trac incident for follow-up this feature.

Please let us know if you have any clarification.

Thanks,

Rajesh.A


Loader.
Live Chat Icon For mobile
Up arrow icon