I have issue Related to Fax Sending
When we send Fax of Pdf file fax send Successfully,
but when we send Fax of Docx files and XLX fles fax Send Successfull but Total Pages Count display 0 after send Fax Receipt Generate on this Receipt Data display like this
for Document Total Pages display 0
Fax Receipt :
Fax Number - 12345
Request ID - 370
Total Pages - 0
Send Date - 05/09/2012 13:30:32
Recipient/Address To - Test
Document - Agency Profile_Fax_20120509013014.docx
Sequence Number - 567
Sender - Dummy User
Comment - Test
I am using below given code for Total Page but not workin
if (fileType.ToUpper() == "DOCX" || fileType.ToUpper() == "DOC")
{
int totalnumOfPages = 0;
object fileName = FileName;
object readOnly = false;
object isVisible = true;
object objDNS = Word.WdSaveOptions.wdDoNotSaveChanges;
Word.ApplicationClass WordApp = new Word.ApplicationClass();
object missing = System.Reflection.Missing.Value;
Word.Document aDoc = WordApp.Documents.Open(ref Filepath, ref missing, ref readOnly, ref missing, ref missing, ref missing,ref missing,
ref missing, ref missing, ref missing, ref missing, ref isVisible, ref missing, ref missing, ref missing, ref missing);
Word.WdStatistic stat = Word.WdStatistic.wdStatisticPages;
totalnumOfPages = aDoc.ComputeStatistics(stat, ref missing);
WordApp.Quit(ref objDNS, ref missing, ref missing);
aDoc = null;
WordApp = null;
GC.Collect();
}