mrc logo mrc logo
  • m-Power m-Power
    What is m-Power?
    Overview Demos Build Process Case Studies Specs Pricing Trial
    m-Power Resources
    Overview How-To Videos Webinars & Podcasts White Papers Fact Sheets
  • Solutions Solutions
    What does m-Power build?
    Overview Database Front-Ends Reporting CRM Systems Business Intelligence Dashboards Inventory Management Mobile Apps ERP Enhancements Modernization Spreadsheets to the web MS Access to the web B2B/Web Portals Scheduling Embedded Analytics Web Forms Workflow Data Exploration Budgeting & Forecasting APIs and Web Services Db2 Web Query Alternative
    Solutions by Industry
    Overview Manufacturing Government Foodservice Software Vendors Logistics & Supply Chain Software Consultants Healthcare
  • Services Services
    Development Services Training Mentoring
  • About About
    Overview Partners Press Releases Careers Events Contact Blog
  • Support Support
    Support Home FAQ Documentation Customer Portal Enhancements Updates Roadmap Techblog
Try m-Power

m-Power Manual

Browse:

  • Home
  • Deprecated Documentation
  • Output Reports to PDF
Back to Manual

Output Reports to PDF

m-Power Reports include the option to output to PDF. The painting for the PDF comes directly from the HTML presentation layer. Therefore, m-Painter is the WYSIWYG editor for HTML, Formatted Excel, and PDF.

Options (shown with default)

  1. Page Size and Orientation: Portrait (8.5in x 11in) — (For landscape, use 11in x 8.5in)
  2. Outside Border Page Margin (.5 in)
  3. Border (thin solid black)
  4. Inside Border Page Margin Padding (.0 in)
  5. Footer (Page 1 of 100)

These can all be changed per application by tweaking the generated HTML output. To modify these settings from their default, open m-Painter, toggle to the source, and change the PDF settings within the style tag.

Note: You can now change the orientation of your PDF in Application Properties. To change this, open the properties and toggle to the Print Optimized tab. Look for the page_orientation property. Use this property to switch between orientation layouts.

Issues to Consider:

  1. The conversion from HTML to PDF requires strictly-formed HTML. Simply put, this means that all HTML tags must be complete. For example, for every begin-table tag (<table>), there must be a corresponding end-table tag (</table>). Even though the HTML might render acceptably in a browser, it might not be complete enough for the conversion from HTML to PDF. If there is a problem with the HTML, you will see an appropriate error message when you attempt to create the PDF output, including some mention of the incomplete tag.

Note: For users with data dictionaries older than October 2007, you will need to make two small changes to your Header file. Specifically look for the lines that begin with < img and end with >.

Be sure to end them with />. This ensures that the IMG tag is complete and will minimize the chance of generating an error message on the conversion. For example:

  1. Change this
    < img src ="/mrcjava/image/ top.jpg " border="0" >
    to read this:
    < img src ="/mrcjava/image/ top.jpg " border="0" />
    By default, there are two images in the mrc header. Be sure to change both of them.
  2. In your footer file, you will see one table referenced as <TABLE>, please change this to read <table>.
  3. If you will include images in the PDF output, the best practice is to specifically specify the image alignment. This means using align="left" or align="right" on the image tag. This should correct any problems you see with image alignment or unwanted spacing gaps.

Repeating images used in backgrounds might cause performance problems. The performance problem appears in that it takes longer for the PDF to be created, and any PDF Reader takes a long time to both render and print the output. For the fastest possible responses, consider using a simple color for a background instead of an image. Specifically, in the inline style sheet, mrc_servlet_stylesheet_css.html, consider changing this line:

. back { color : black; background-image: url("/mrcjava/image/back.gif"); font: 8pt verdana ;}

To something like this:

. back { color : black; background: #d8d8d8 ; font: 8pt verdana ;}

To control the maximum number of rows on each page of the PDF output, set the max_rows parameter on the Print-Optimized tab in the Application Properties.

 

Created: February 29, 2008 | Modified: July 15, 2014

Search


Browse By Category

Build Process (13)
Starting with m-Power (8)
Retrievals (10)
Reports (15)
Summaries (4)
Maintainers (17)
Graphs (8)
m-Power Data Explorer (4)
General (24)
Calculations (5)
Utilities (9)
m-Power Administration (23)
Security (11)
Freemarker (6)
m-Painter (29)
Form Validation (5)
External Objects & UDFs (12)
Deprecated Documentation (23)
Bootstrap Templates (7)

Popular Tags

Parameters Email App Properties External Objects Video Freemarker Data Dictionary Excel SQL Admin Graphs Prompt Screens Performance Tomcat Summaries Retrievals Java mrc-Productivity Series Record Selections Build Process Advanced RPG Popular Compiling Bootstrap Templates Application Properties Maintainer DB2 Form Validation Getting Started Security Graphing Bar Graphs Database Retrieval Dates Dropdowns Graph Properties Reports Administration m-Painter Calculations Report Maintainers Production

See all tags »

michaels, ross & cole, ltd. (mrc)

Privacy Policy Cookie Policy Cookie Settings Notice at Collection Do Not Sell or Share My Personal Information

mrc (US)

2001 Midwest Road
Suite 310
Oak Brook, IL 60523
630-916-0662

mrc (UK)

Mortlake Business Centre
20 Mortlake High Street
London, SW14 8JN
+44-20-335-59566


© 2024 mrc. All rights reserved.