Added PDFCount to getLibraryDocuments

Fixed logic to set DebugStatus for PDFs
This commit is contained in:
Rich
2011-04-19 15:22:30 +00:00
parent 5c6a21a96e
commit 76bdab0549
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
if db_name() in('master','model','msdn','tempdb')
begin
print 'Don''t add these to ' + db_name()
return
end
/****** Object: StoredProcedure [addAnnotation] ******/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[addAnnotation]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
@@ -7547,7 +7552,8 @@ SELECT
[UserID],
[LastChanged],
(SELECT COUNT(*) FROM [DROUsages] WHERE [DROUsages].[DocID]=[Documents].[DocID]) [DROUsageCount],
(SELECT COUNT(*) FROM [Entries] WHERE [Entries].[DocID]=[Documents].[DocID]) [EntryCount]
(SELECT COUNT(*) FROM [Entries] WHERE [Entries].[DocID]=[Documents].[DocID]) [EntryCount],
(SELECT COUNT(*) FROM [Pdfs] WHERE [Pdfs].[DocID]=[Documents].[DocID]) [PdfCount]
FROM [Documents] where [LibTitle] <> '' order by [LibTitle]
RETURN
GO

View File

@@ -220,6 +220,7 @@ namespace Volian.Print.Library
document.Open();
// Create Layers
CreateLayers(writer.DirectContent);
MSWordToPDF.DebugStatus = DebugOutput ? 1 : 0;
PrintOverride.Reset();
if (DebugOutput)
{