PDFsharp & MigraDoc Foundation http://forum.pdfsharp.com/ |
|
DocRenderer ArgumentOutOfRangeException http://forum.pdfsharp.com/viewtopic.php?f=2&t=2981 |
Page 1 of 1 |
Author: | bizzel74 [ Mon Nov 17, 2014 12:15 pm ] |
Post subject: | DocRenderer ArgumentOutOfRangeException |
Not sure why this is suddenly happening as my recent changes don't alter the report significantly - if anything they might reduce the number of pages. Code: Dim renderCheck As DocumentRenderer renderCheck = New DocumentRenderer(_doc) Dim pages As Integer renderCheck.PrepareDocument() pages = renderCheck.FormattedDocument.PageCount When trying to calculate number of pages it errors on renderCheck.PrepareDocument() with this error: Quote: Specified argument was out of the range of valid values. Parameter name: index What went wrong or more specifically, why would I get this error? NB: I have tried using different input data - sometimes it works, sometimes it doesn't. |
Author: | Thomas Hoevel [ Mon Nov 17, 2014 12:55 pm ] |
Post subject: | Re: DocRenderer ArgumentOutOfRangeException |
Not much we can do until you provide us with an MDDDL file. |
Author: | bizzel74 [ Wed Nov 19, 2014 5:55 pm ] |
Post subject: | Re: DocRenderer ArgumentOutOfRangeException |
If I can re-create the issue I will add my mdddl file. At the moment it is working. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |