4D Write Pro: Document Creation by Programming
One common usage of 4D Write was to create documents automatically, such as invoices, reports, orders, based on templates created or designed by the end user.
4D Write Pro v16 will support this usage with the new concept of bookmarks, that can be used to easily build new documents section by section.
A new feature in 4D Write Pro: “Bookmarks”!
Bookmarks can now be created inside 4D Write Pro documents. But what are bookmarks exactly? A bookmark is a named reference matching a text selection of a 4D Write Pro document.
Several bookmarks can be present inside a single document. Once bookmarks have been created, they can be retrieved as a list of names, then using one of them allows retrieve the range of the corresponding text.
View properties in 4D Write Pro
From 4D v16, you can define at design phase the way a 4D Write Pro document will be displayed in a 4D Write Pro area. Without writing a single line of code, you can define several view attributes such as the resolution, zoom, page view mode. Advanced properties are also available to define whether you want to show 4D expressions or values for instance. Again no code to write, just a checkbox and it’s done.
Protection of 4D Write Pro dynamic expression evaluation
With 4D v16, 4D Write Pro is now providing a higher level of protection regarding the evaluation of 4D expressions in documents.
Developers can now fully rely on 4D for checking the evaluation of these expressions. By doing so, end-user machines and databases will be automatically protected from any possible side effects.
A valid 4D expression can be a field, a variable, a 4D command, a statement returning a value, a project method, and so on.
Starting with 4D v16, “unsafe” 4D expressions will no longer be evaluated and an error will be displayed instead.
4D Write Pro commands in preemptive processes
With 4D v16, you can improve your database scalability using the new 4D Write Pro commands in preemptive processes.
If you are doing routines for creating or converting documents programmatically – e.g. invoices … you can now do it with preemptive workers as most 4D Write Pro commands are now thread safe!
Headers and footers in 4D Write Pro
4D Write Pro is moving forward with 4D v16!
You can now insert headers and footers in your 4D Write Pro documents but also retrieve any existing headers and footers when opening an existing .4w7 document from the 4D Write plugin.
You can define document sections and add headers or footers for all or independently per section. You can have different headers/footers for the right and left page, or for the first page of the section. Of course, headers and footers can be styled as the rest of the document (font, color, margin, padding, borders…) and can contain images as well.
Insert in-line pictures in 4D Write Pro documents
You want to insert your company logo in the signature of all your 4D Write Pro documents when they are being created? Or you want to add a product image for each of your invoices lines?
With 4D v16, it is now possible to insert inline pictures programmatically in your 4D Write Pro document with the dedicated command WP INSERT PICTURE!
4D Write Pro: Pagination & Printing
With 4D v15 R5, 4D Write Pro is moving forward!
A new page view mode is available and two new commands are available in order to print a document.
4D Write Pro User Interface
With 4D v15 R4, it is now possible to design your own 4D Write Pro interface with dedicated commands. There are a lot of new commands for manipulating attributes for selections, paragraphs, images inside a document, or the document itself.
4D Write Pro: print a form and store documents in the database
I’m pleased to present you two new features for 4D Write Pro available with 4D v15 R3.
It’s now possible:
- To print a form containing a 4D Write Pro area.
- To store 4D Write Pro documents in the database directly in an object field.
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