PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 11:58 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Nov 17, 2014 12:15 pm 
Offline

Joined: Tue Apr 29, 2014 10:21 am
Posts: 27
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.


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 17, 2014 12:55 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
Not much we can do until you provide us with an MDDDL file.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 19, 2014 5:55 pm 
Offline

Joined: Tue Apr 29, 2014 10:21 am
Posts: 27
If I can re-create the issue I will add my mdddl file.
At the moment it is working.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 429 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group