Quantcast
Channel: Open XML Format SDK forum
Viewing all articles
Browse latest Browse all 1288

How to lock specific cells programmatically while Excel export?

$
0
0


                                       

foreach (WeekSummary summary in report.Summary)
                {
                    DocumentFormat.OpenXml.Spreadsheet.Row row = new DocumentFormat.OpenXml.Spreadsheet.Row();
                    row.RowIndex = (UInt32)rowIndex++;

                    row.AppendChild<Cell>(new Cell() { DataType = CellValues.String, CellValue = new CellValue(summary.Name ?? "") });
                    row.AppendChild<Cell>(new Cell() { DataType = CellValues.String, CellValue = new CellValue(summary.Contact ?? "") });

    sheetData.AppendChild<Row>(row);
                }

This is my code which i've insert cells to row.. I want to lock those cells.. I wouldn't find any solution for this ?

How to resolve this programmatically (c#.net)?

I couldn't find the solution for this?

could you please help me , by giving the code ?


                        

Viewing all articles
Browse latest Browse all 1288

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>