Added PDFCount to getLibraryDocuments
Fixed logic to set DebugStatus for PDFs
This commit is contained in:
@@ -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
|
||||
|
@@ -220,6 +220,7 @@ namespace Volian.Print.Library
|
||||
document.Open();
|
||||
// Create Layers
|
||||
CreateLayers(writer.DirectContent);
|
||||
MSWordToPDF.DebugStatus = DebugOutput ? 1 : 0;
|
||||
PrintOverride.Reset();
|
||||
if (DebugOutput)
|
||||
{
|
||||
|
Reference in New Issue
Block a user