Moved DocPDF from Documents to new PDFs table

This commit is contained in:
Rich
2011-04-18 21:32:28 +00:00
parent 628cfc67de
commit 6fe40ea9e3
8 changed files with 2744 additions and 6 deletions

View File

@@ -316,9 +316,9 @@ namespace Volian.Print.Library
{
readerWord = myPdfFile != null ? new PdfReader(myPdfFile) : null;
OnStatusChanged("Get Section", PromsPrinterStatusType.GetSection);
if (mySection.MyContent.MyEntry.MyDocument.DocumentConfig.Printing_Length != 0) //.SectionConfig.Section_NumPages != "")
{
int sectPageCount = (int)(Math.Ceiling(mySection.MyContent.MyEntry.MyDocument.DocumentConfig.Printing_Length)); //decimal.Parse(mySection.MyContent.MyEntry.MyDocument.DocumentConfig.Printing_Length)));
int sectPageCount=0;
using(PdfInfo myPdf = PdfInfo.Get(mySection))
sectPageCount = (int)(Math.Ceiling(myPdf.PageCount));
for (int ii = 0; ii < sectPageCount; ii++)
{
int pageNumber = 1 + ii;
@@ -344,7 +344,6 @@ namespace Volian.Print.Library
OnStatusChanged("After NewPage", PromsPrinterStatusType.NewPage);
}
}
}
catch (Exception ex)
{