First let's cover the simple case of an image that is in the template and will therefore be in the report. If we have an image that is 1" wide in the template, then it should be 1" wide in the report.
Please note that the picture here, which is a sample that comes with Windows XP, defaults to the full width of the page. But I resized it to be 1" across. The size of this picture is not set by the number of pixels in the image, it is set solely by the display width set by word. And the output will match this size.
The first difficulty comes when creating html output. There is no way in html to set the width of an image in inches. You can only set the width in pixels. So for an html report we need to set the width to the number of pixels that is 1" wide. To do this we need to know the number of Dots Per Inch (DPI) on the display device. For a monitor this is problematic because the Mac is 72 DPI, most Windows monitors are 96 or 105 DPI, and many new monitors are much higher. And then printers are anything from 300 – 2400 DPI.
We use 96 DPI but this can be overridden in the Windward properties file with "default.image.dpi=96" where you set the value you want to use. Whatever value you set, this is the width='96' value that will be used in html output for a 1" wide image.
And we now have the above image, regardless of the number of pixels that are actually in the image, taking the same space on the page in html output as it does in the template, assuming the DPI setting matches the screen it is displayed on.
Now it gets a bit more complicated. When you are inserting a bitmap using a tag, we don't have a set size in Word. Well, actually optionally we do. On both tags, for a bitmap, you can set
<wr:out select='/root/logo' width='1440' height='1080'/>
When you explicitly set the width & height that is the same as setting it in Word. So in this case you will get a 1" wide image in all output except html and you will get a 96 pixel (or whatever override setting you selected) wide image in html.
Please note, the width & height are set in twips which are twentieths of a point. As there are 72 points in an inch, there are 72 * 20 = 1440 twips in an inch.
However, if you do not set the height & width, then Windward needs to determine the size of the image. Some bitmaps have a DPI setting for that bitmap as part of the file – but only some and for those, not always. For the common formats: BMP/DIB (can but usually don't), GIF (no), JPG (yes), & PNG (almost always). You can find this setting viewing the file in a paint program but… most paint programs, if there is no DPI setting, will display a setting of 72 or 96. So if you see a value of 72 or 96, it is probably a file with no DPI setting – but probably, not definitely. The high-end paint programs like PhotoShop can tell you if it is actually set.
If a bitmap has no DPI setting, we return to our good friend 96 DPI, or the value you changed this to with default.image.dpi. So inside the Windward engine every bitmap has a DPI. It's the value in the bitmap if set and 96 (or what you use) if not. But we have a DPI.
As an aside here, a bitmap has no "natural size" based on the number of pixels in it. The size of a bitmap is always the number of pixels times the DPI. A paint program will display an image using 1 pixel on the screen for each pixel in the image, but that is not it's "correct" size and depending on the DPI setting, may be much large or smaller than it's actual size.
So when we import an image via the import or out tag, we take the width of the image in pixels, divide it by the DPI, and that is the width of the image in the created report. So to list some examples:
What can trip people up is they see the bitmap in a paint program and say it should be that wide in the report. That approach doesn't work because that display in the paint program is totally dependent on the DPI of your monitor. So the width on your screen in the paint program can be quite different from the width on my computer system. This is why we must use the DPI setting with the pixel width.
We now come to the final point, html reports once again. After we go through the above process to determine the width of the image, we return to our friend 96 DPI (or default.image.dpi) and use that DPI to determine the width= setting for the image in the html, jast as we do for an image embedded in the template as we discussed at the start.
If you've just discovered us, we're excited. Know more about Windward and get your 14-day free trial and start creating documents in quick time with our low/no code solutions.
Adds various capabilities such as inequalities,descending sort, joins, and other functions.
If you've just discovered us, we're excited. Learn more about Windward document automation software now.
Try Windward with our 30-day free trial and start creating documents in quick time with our low/no code solutions.
SQL Select Debugger
If you've just discovered us, we're excited. Learn more about Windward document automation software now.
Try Windward with our 30-day free trial and start creating documents in quick time with our low/no code solutions.
Added a Query tab as a field for typing or pasting in a select statement
If you've just discovered us, we're excited. Learn more about Windward document automation software now.
Try Windward with our 30-day free trial and start creating documents in quick time with our low/no code solutions.
All tags using that Data source will be automatically updated with that name.
If you've just discovered us, we're excited. Learn more about Windward document automation software now.
Try Windward with our 30-day free trial and start creating documents in quick time with our low/no code solutions.
New single interface to replace 2 separate dialog boxes
If you've just discovered us, we're excited. Learn more about Windward document automation software now.
Try Windward with our 30-day free trial and start creating documents in quick time with our low/no code solutions.
Displays of all the tags in the template, structured as they are placed in the template. This provides a simple & intuitive way to see the structure of your template. Also provides the capability to go to any tag and/or see the properties of any tag.
If you've just discovered us, we're excited. Learn more about Windward document automation software now.
Try Windward with our 30-day free trial and start creating documents in quick time with our low/no code solutions.
The ability to integrate the Windward Engine into Google’s cloud computing platform for developing and hosting web applications dubbed Google Applications Engine (GAE).
If you've just discovered us, we're excited. Learn more about Windward document automation software now.
Try Windward with our 30-day free trial and start creating documents in quick time with our low/no code solutions.
If you've just discovered us, we're excited. Learn more about Windward document automation software now.
Try Windward with our 30-day free trial and start creating documents in quick time with our low/no code solutions.
This new integration will allow for processing of complex scripts and bi-directional text such as Arabic. Your PDF output will be much tighter and more closely match your template, and we’ll be able to respond rapidly to PDF requests and fixes.
If you've just discovered us, we're excited. Learn more about Windward document automation software now.
Try Windward with our 30-day free trial and start creating documents in quick time with our low/no code solutions.
Includes support for new ForEach and slide break handling, table header row repeat across slide breaks, and native Microsoft support for charts and images.
If you've just discovered us, we're excited. Learn more about Windward document automation software now.
Try Windward with our 30-day free trial and start creating documents in quick time with our low/no code solutions.
Tags are color coded in the template by type, making it easy to visually identify them.
If you've just discovered us, we're excited. Learn more about Windward document automation software now.
Try Windward with our 30-day free trial and start creating documents in quick time with our low/no code solutions.
Version 13’s core code has been reworked and optimized to offer a reduced memory footprint, faster PDF generation and full documentation of supported features and limitations in the specifications for DOCX, XLSX and PPTX.
If you've just discovered us, we're excited. Learn more about Windward document automation software now.
Try Windward with our 30-day free trial and start creating documents in quick time with our low/no code solutions.
Documents can include advanced Word image properties such as shadows, borders, and styles.
If you've just discovered us, we're excited. Learn more about Windward document automation software now.
Try Windward with our 30-day free trial and start creating documents in quick time with our low/no code solutions.
Windward has updated HTML output to reflect changing HTML standards.
If you've just discovered us, we're excited. Learn more about Windward document automation software now.
Try Windward with our 30-day free trial and start creating documents in quick time with our low/no code solutions.
Windward now works with a slew of new datasources: MongoDB, JSON, Cassandra, OData, Salesforce.com
If you've just discovered us, we're excited. Learn more about Windward document automation software now.
Try Windward with our 30-day free trial and start creating documents in quick time with our low/no code solutions.
The Generate Code tool in the designer allows you to open an existing template and, with a click of a button, automatically create a window with the code needed to run your current template with all data sources and variables. Simply copy this code and paste into your application's code in the appropriate place. You now have Windward integrated into your application.
You only need to do this once. You do not do this for each template. Instead, where it has explicit files for the template and output, change that to parameters you pass to this code. Same for the parameters passed to Windward. This example uses explicit values to show you what to substitute in where.
Any pivot tables in an XLSX template are carried over to the XLSX output. The ranges in the pivot ranges are adjusted to match the generated output. So your final XLSX will have pivot tables set as expected in the generated file.
This makes creating an XLSX workbook with pivot tables trivial.
In an imported sub-template, if its properties for a style (ex. Normal) differ from the parent template's properties for the style, the use in the sub-template can be set to either use the properties in the sub-template, or the properties in the parent.
You set to retain when you don't want the child template's styling to change when imported. You set to use the parent when you want the styling of the imported template to match the styling in the parent.
Any explicit styling is always retained. This only impacts styling set by styles.
Tags can be placed in text boxes. Including linked text boxes. This gives you the ability to set the text in a textbox from your data.
Tags can be placed in shapes & smart art. This gives you the ability to set the text in a shape from your data.
When generating HTML output, the engine can either write bitmaps as distinct files the generate HTML references, or it can embed the images in the HTML providing a single file for the output.
You can place tags in pretty much any part of a template, including in footnotes & endnotes.
Any parts of a DOCX or XLSX (PowerPoint does not support this) file that are locked in the template, will be locked the same in the output.
If a font used in the template does not exist on the server generating a report, the font to substitute can be specified.
In addition, if a glyph to be rendered does not exist in the font specified, you can specify the replacement font. This can be set distinctly for European, Bi-Directional, and Far East fonts.
If you need this - it's essential. And if you don't need it, it's irrelevant.
Windward enables you to build a document by applying multiple datasources to the template simultaneously. When Windward is merging the data into a template, it processes the template by handling each tag in order, and each tag pulls from different datasources. (As opposed to processing all of one datasource, then processing the next.)
This allows the select tag to use data from another datasource in its select. For example, if you are pulling customer information from one data source, you can then pull data from the sales datasource using the customer ID of the customer presently processing to pull the sales information for that customer. If you're interested in patching together your data from multiple datasources, read this post on our blog.