Sharing and File Formats

By the Syncfusion DevTutorials team · Last updated

Export to PDF and CSV, compare Excel file formats, and share workbooks safely. Then prepare a price list in the Chapter 8 project.

A finished workbook usually goes to someone else: a manager, a customer, or another program. How you share it decides what they can do with it: edit it, just read it, or load the data somewhere else. In this lesson, you'll export to PDF and CSV, compare Excel file formats, and share workbooks safely. At the end, you'll prepare a price list for sharing in the Chapter 8 project.

Open the Excel sandbox and follow along. In the sandbox, exports are under File > Save As; in Excel, use File > Save As or File > Export.

PDF export

A PDF is a fixed snapshot: it looks the same on every screen and printer, and it cannot be edited by accident. Use it for reports, invoices, and price lists that people should read, not change.

  • Sandbox: File > Save As > PDF.
  • Excel: File > Export > Create PDF/XPS, or Save As and choose PDF. Options lets you export the active sheet, the selection, or the entire workbook.

The PDF uses the page setup from Lesson 25, so preview first.

CSV export

CSV (comma-separated values) is plain text: one line per row, with values separated by commas.

For example, a small table saved as CSV looks like this:

Product,Price

Bread,2.5

Milk,1.2

Almost every program can read CSV: databases, online stores, mailing tools, and other spreadsheets.

  • Sandbox: File > Save As > CSV.
  • Excel: File > Save As, and choose CSV (Comma delimited).

A CSV keeps only the values of one sheet. Formatting, formulas (just their results), charts, and every other sheet are lost. Always keep the .xlsx as your master copy, and treat the CSV as an export.

File formats

FormatExtensionKeepsUse it for
Excel Workbook.xlsxEverything: sheets, formulas, formatting, chartsYour working copy
Excel 97-2003.xlsMost featuresVery old Excel versions only
Macro-enabled workbook.xlsmEverything, plus macrosWorkbooks with automation
CSV.csvValues on one sheet onlyMoving data to other programs
PDF.pdfA fixed picture of the pagesSharing finished reports

File sharing

How you share depends on what the other person needs to do:

They need to…Share
Read or print itA PDF
Edit it themselvesThe .xlsx file
Load the data into another systemA CSV
Work on it at the same time as youA shared online copy (OneDrive or SharePoint, with Share in the top-right corner)

Before you share:

  • Remove hidden sheets, rows, or notes that are not meant for others.
  • Check for errors like #REF! and #DIV/0!.
  • Protect sheets so formulas are not overwritten by accident (Lesson 21).

The sandbox's PDF and Excel exports are produced by Syncfusion's online conversion service, so you need an internet connection for them. Your workbook data is sent to that service only when you export.

Name shared files clearly, with a date or version, like Price_List_2026-04.pdf. It saves everyone from wondering whether they have the latest copy.

Workbook protection

You learned protection in Lesson 21; here's a reminder of when to use it before sharing:

  • Protect Sheet when others will type in some cells but should not change formulas.
  • Protect Workbook when the sheets themselves should not be added, deleted, or renamed.
  • In Excel, File > Info > Protect Workbook > Encrypt with Password requires a password to open the file at all. That's the option for genuinely confidential data.

Common mistakes

MistakeWhat happensHow to fix it
Saving over the .xlsx as CSV and closingFormulas, formatting, and other sheets are lostKeep the .xlsx; export the CSV as a copy
PDF of the wrong sheetThe reader gets the wrong dataCheck the export options: active sheet, selection, or workbook
PDF with columns cut offPages split in odd placesFix the page setup and preview first
Sharing an editable file for a final reportSomeone changes the figuresShare a PDF
Private data in hidden columnsOthers can unhide and read itDelete it from the shared copy

Exercise

Click Reset in the sandbox header. Type a small table: A1 Product, B1 Price, then A2:B3 Bread, 2.5 and Milk, 1.2. Then do each task and press Check or Mark as done.

Chapter project

Put Chapter 8 together, with formatting and protection from earlier chapters. You'll prepare a café's price list to share with staff and customers.

Café price list

What to remember

  • PDF for reading and printing; it looks the same everywhere.
  • CSV for moving data; it keeps only one sheet's values.
  • XLSX is your master copy; it keeps everything.
  • Share in the format that matches what the other person needs to do.
  • Check for errors and hidden data, and protect sheets before sharing.

That's the end of Chapter 8. In Chapter 9, you'll put everything together in four real-world projects.