Windward DocumentationWindward Core.NET RESTful Engine User Manual FAQsHow Do I Use Microsoft Office to Generate PDF Output with Report Engine for RESTful?

How Do I Use Microsoft Office to Generate PDF Output with Report Engine for RESTful?

Because of vagueness in the PDF specification, using Microsoft Office to generate PDF output from report templates rather than the Windward PDF renderer can sometimes improve the fidelity of the output.

To allow the flexibility of using Office to generate PDF output, Report Designer and the Report Engines have a toggle to turn on using the Office PDF renderer.

With Report Engine for RESTful, extra steps must be taken to configure IIS to access Microsoft Word.

To use this feature, Office must be installed on the server where the PDF output is generated, i.e. where your Report Engine application is installed.

The use.external.output.builder Property

To turn on the use Office for PDF output feature in Report Engine for RESTful, set the external.output.builder property in your web.config file:

...

<WindwardReports>
...
    <add key="use.external.output.builder" value = "on"/> 
...
</WindwardReports>

...

Configuring IIS to Access Microsoft Office

  1. In a command prompt, run 'DCOMCNFG'
  2. In the Component Services window, browse to 'Component Services' -> 'Computers' -> 'My Computer'
  3. Double click 'DCOM Config'
  4. Click ‘NO’ for all ‘DCOM Configuration Warning’ popup windows.
  1. Find 'Microsoft Word 97 - 2003 Document'
  2. If it isn't there, run 'mmc comexp.msc /32' in a command prompt and repeat steps 2 and 3
  3. Right click on 'Microsoft Word 97 - 2003 Document' and select 'Properties'
  4. In the 'General' tab, change the 'Authentication Level' to 'None'
  1. Open the 'Security' tab
  2. In all three sections (‘Launch and Activation Permissions’, ‘Access Permissions’, and ‘Configuration Permissions’), do the following:
    1. Toggle the radio button from 'Use Default' to 'Customize'
    2. Click on ‘Edit…’
    3. Click on ‘Add…’
    4. Enter ‘Everyone’
    5. Click ‘OK’
    6. Select all the available permissions for Everyone
    7. Click ‘OK’ to close the Permission window
  1. Open the ‘Identity’ tab
  2. Change the radio button from ‘The launching user’ to ‘The interactive user’
  3. Click "Apply'
  4. Click 'OK' in the 'Microsoft Word 97 - 2003 Document Properties' window to save your changes and close the window
  1. Open the ‘Properties’ of your C:\Windows\Temp directory
  2. Select the 'Security’ tab
  3. Select the ‘Edit...’ button
  4. Click the ‘Add...’ button
  5. Add the IIS user
  6. Give that user the ‘Modify’ permission
  7. Click ‘Apply’
  8. Select ‘OK’ to save your changes and close the window
  9. Select ‘OK’ again in the 'Temp Properties' window to save the changes and close the window

Use Office to Generate PDF Output with Report Designer

Use Office to Generate PDF Output with .NET Report Engine

Use Office to Generate PDF Output with Java Report Engine

0 Comments

Add your comment

E-Mail me when someone replies to this comment