<p>Is there a method for handling errors from COM objects in RDML? For instance, when calling Word VBA methods like <code>PasteSpecial</code>, an error is returned and the LANSA application crashes. I cannot find anything in the documentation to allow handling of these errors.</p>

<p>Actually, error handling in general is a weak-point for LANSA and RDML, but that's another topic.</p>

[{'answer_id': 16729, 'author': 'Kevin Crumley', 'author_id': 1818, 'author_profile': 'https://Stackoverflow.com/users/1818', 'pm_score': 2, 'selected': False, 'text': '<blockquote>\n  <ol>\n  <li>Does anyone know of anyway to\n  reduce/optimize the PDF export phase\n  and or the size of the PDF without\n  lowering the total page count?</li>\n  </ol>\n</blockquote>\n\n<p>I have a few ideas and questions:<br>\n1. Is this a graphics-heavy report?  If not, do you have tables that start out as text but are converted into a graphic by the SSRS PDF renderer (check if you can select the text in the PDF)?  41K per page might be more than it should be, or it might not, depending on how information-dense your report is.  But we\'ve had cases where we had minor issues with a report\'s layout, like having a table bleed into the page\'s margins, that resulted in the SSRS PDF renderer "throwing up its hands" and rendering the table as an image instead of as text.  Obviously, the fewer graphics in your report, the smaller your file size will be.<br>\n2. Is there a way that you could easily break the report into pieces?  E.g., if it\'s a 10-location report, where Location 1 is followed by Location 2, etc., on your final report, could you run the Location 1 portion independent of the Location 2 portion, etc.?  If so, you could join the 10 sub-reports into one final PDF using <a href="http://pdfsharp.com/" rel="nofollow noreferrer">PDFSharp</a> after you\'ve received them all.  This leads to some difficulties with page numbering, but nothing insurmountable.</p>\n\n<blockquote>\n  <p>3. Does anyone else have any other\n  theories as to why this runs on the\n  server but not through the API?</p>\n</blockquote>\n\n<p>My guess would be the sheer size of the report.  I don\'t remember everything about what\'s an IIS setting and what\'s SSRS-specific, but there might be some overall IIS settings (maybe in Metabase.xml) that you would have to be updated to even allow that much data to pass through. </p>\n\n<p>You could isolate the question of whether the time is the problem by taking one of your working reports and building in a long wait time in your stored procedures with WAITFOR (assuming SQL Server for your DBMS).</p>\n\n<p>Not solutions, per se, but ideas.  Hope it helps.</p>\n'}, {'answer_id': 1104489, 'author': 'Robert4Real', 'author_id': 68532, 'author_profile': 'https://Stackoverflow.com/users/68532', 'pm_score': 2, 'selected': False, 'text': "<p>Obviously, its a huge report, in fact it's closer to a 1.3 GB database, than a report.</p>\n\n<p>Have you thought of finding a way to split it into multiple pieces and then combine them together? (use one of several different ways to combine PDFs listed on this site.)</p>\n"}, {'answer_id': 10481764, 'author': 'StuartLC', 'author_id': 314291, 'author_profile': 'https://Stackoverflow.com/users/314291', 'pm_score': 2, 'selected': False, 'text': '<p>We narrowed down the large PDF exports from SSRS and found 2 main culprits</p>\n\n<p>1) Unless images are JPG or PNG colour type 3, they are expanded to BMP\'s See <a href="http://social.msdn.microsoft.com/Forums/da-DK/sqlreportingservices/thread/9434eb2b-562a-488b-9f07-fff7cf6c39fc" rel="nofollow">here</a></p>\n\n<p>2) Unless you configure SSRS to behave otherwise (not recommended), then SSRS will embed fonts or font subsets into the PDF, unless they are one of the <a href="http://www.aivosto.com/vbtips/pdf-optimize.html" rel="nofollow">5 \'standard\' PDF fonts</a>.</p>\n\n<p>Although none of the standard fonts (other than Symbol I guess) are installed on most Windows OS\'s out of the box, we\'ve found that if you use <code>Times New Roman, Courier New, or Arial</code> then forward and reverse font substitution will take place.</p>\n\n<p>The easiest way to convert your RDL\'s is to view them as XML and search and replace the <code>FontFamily</code> tags.</p>\n\n<p>If you have to use a non standard font, then, you can still minimize the damage:</p>\n\n<ul>\n<li>Use as few fonts as you can. Search through the RDL XML to make sure there aren\'t any redundant fonts.</li>\n<li>Use TTF fonts if you use different sizes of the font.</li>\n<li>Try not to mix normal, bold and italic variants of the font, else it will be embedded multiple times.</li>\n</ul>\n'}]
['https://Stackoverflow.com/questions/15315', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']