4D Blog

Home Product 4D View Pro: Excel import/export update

4D View Pro: Excel import/export update

January 20, 2025

Product

As part of 4D View Pro‘s continuous development, we’ve expanded the Excel import and export functionalities in 4D 20 R8. In this update, new language options have been added to align with the interface capabilities and give you more control over the exported workbook.

Export enhancement

We’ve added a new set of export options to improve your experience when exporting Excel files with the VP EXPORT DOCUMENT command. These options are aligned with the interface and give you more control over the exported workbook:

  • includeBindingSource : Whether to include the binding source when exporting, default false.
  • includeStyles new: Whether to include the style when exporting, default true.
  • includeFormulas new: Whether to include the formula when exporting, default true.
  • saveAsView new: Whether to apply the format string to exporting value when exporting, default false.
  • rowHeadersAsFrozenColumns new: Whether to treat the row headers as frozen columns when exporting, default false.
  • columnHeadersAsFrozenRows new: Whether to treat the column headers as frozen rows when exporting, default false.
  • includeAutoMergedCells new: Whether to include the automatically merged cells when exporting, default false.
  • includeCalcModelCache new: Whether to include the extra data of calculation. It can be faster when opening the file with those data, default false.
  • includeUnusedNames new: Whether to include the unused custom name when exporting, default true.
  • includeEmptyRegionCells new: Whether to include any empty cells(cells with no data or only style) outside the used data range, default true.
  • password: Set the password to open the workbook.

To make the code easier to understand, all these new features are grouped together in an excelOptions object. The old attributes are still supported to ensure compatibility with your old code.

var $excelOptions:={}
$excelOptions.includeBindingSource:=False
$excelOptions.includeStyles:=True
$excelOptions.includeFormulas:=True
$excelOptions.saveAsView:=False
$excelOptions.rowHeadersAsFrozenColumns:=False
$excelOptions.columnHeadersAsFrozenRows:=False
$excelOptions.includeAutoMergedCells:=False
$excelOptions.includeCalcModelCache:=False
$excelOptions.includeUnusedNames:=True
$excelOptions.includeEmptyRegionCells:=True
$excelOptions.password:="mypassword"
VP EXPORT DOCUMENT("ViewProarea"; "c:\\tmp\\testexcel.xlsx"; 
{excelOptions: $excelOptions)})

import enhancement

We’ve also introduced advanced import options to complement your Excel workflows in the VP IMPORT DOCUMENT command. These new options provide greater flexibility when importing data from Excel files:

  • includeStyles new: Whether to include the style when loading, default true.
  • includeFormulas new: Whether to include the formula when loading, default true.
  • frozenColumnsAsRowHeaders new: Whether to treat the frozen columns as row headers when loading, default false.
  • frozenRowsAsColumnHeaders new: Whether to treat the frozen rows as column headers when loading, default false.
  • fullRecalc new: Whether to calculate after loading the json data, false by default.
  • dynamicReferences new: Whether to calculate functions with dynamic reference, default true.
  • calcOnDemand new: Whether to calculate formulas only when they are demanded, default false.
  • includeUnusedStyles new: Whether to include the unused name style when converting excel xml to the json, default true.
  • password new: The password to open the workbook.
  • openMode new: The open mode of normal, lazy and incremental. By default is normal.

To make the code easier to understand, all these new features are grouped together in an excelOptions object. The old attributes are still supported to ensure compatibility with your old code.

var $excelOptions:={}
$excelOptions.includeStyles:=True
$excelOptions.includeFormulas:=True
$excelOptions.frozenColumnsAsRowHeaders:=False
$excelOptions.frozenRowsAsColumnHeaders:=False
$excelOptions.fullRecalc:=False
$excelOptions.dynamicReferences:=False
$excelOptions.calcOnDemand:=False
$excelOptions.includeUnusedStyles:=True
$excelOptions.password:="mypassword"
$excelOptions.openMode:="normal"
VP IMPORT DOCUMENT("ViewProarea1"; "c:\\tmp\\textfreeze.xlsx";
 {excelOptions: $excelOptions})

Conclusion

These updates simplify and enhance your work with Excel files in 4D View Pro. For full details on the new features, check out the 4D View Pro documentation.

Discuss

Tags 20 R8, 21, 4D View Pro, Document creation, Excel, Export, Import, Spreadsheet

Latest related posts

  • November 14, 2025

    Event Report in 4D Qodly Pro: See Every Interactions at a Glance

  • November 14, 2025

    4D Qodly Pro: Page Zoom Controls

  • November 13, 2025

    macOS Tahoe, Windows 11, which operating systems for 4D 20 and 21?

Fabrice Mainguené
Fabrice Mainguené
• Product Owner •Fabrice Mainguené joined 4D Program team in November, 2016. As a Product Owner, he is in charge of writing the user stories then translating it to functional specifications. His role is also to make sure that the feature implementation delivered is meeting the customer need.After obtaining a Bachelor degree in Computer Science at CNAM, Fabrice joined a small software publishing company as a Windev developer. Then he worked for different companies in industry and trade areas as a Windev and web developer as well as technical advisor on new features.
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • AI
  • 4D View Pro
  • 4D Write Pro
  • 4D for Mobile
  • Email
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • Qodly Studio
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Compatibility settings Formula Google Listbox Logs Mail Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Compatibility settings Formula Google Listbox Logs Mail Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor
Subscribe to 4D Newsletter

© 2025 4D SAS - All rights reserved
Terms & Conditions | Legal Notices | Data Policy | Cookie Policy | Contact us | Write for us


Subscribe to 4D Newsletter

* Your privacy is very important to us. Please click here to view our Policy

Contact us

Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!

* Your privacy is very important to us. Please click here to view our Policy