none
Report Viewer print error 0x80004005 RRS feed

  • Question

  • I get an error while printing thre report saying "An error occured during printing 0x80004005". I took a log for the report and saw that while reading the bytes there is an error coming Unexpected end of stream at 1329 of 4096 bytes.

    I have put my log content below

    Thread 1208 - (06/17/2014 18:CRSClientPrint::Print - Starting Function.
    Thread 1208 - (06/17/2014 18: reportServerUrl = /B3_May10_WAdmin/Reserved.ReportViewerWebControl.axd
    Thread 1208 - (06/17/2014 18: reportPath = Culture=1033&CultureOverrides=True&UICulture=1033&UICultureOverrides=True&ReportStack=1&ControlID=e9cb53474be44535b2ee67968fbfa43f&Mode=true&OpType=PrintRequest
    Thread 1208 - (06/17/2014 18: reportName = BankCompanyRelationshipReport
    Thread 1208 - (06/17/2014 18: Page Height = 279.400000
    Thread 1208 - (06/17/2014 18: Page Width = 215.900000
    Thread 1208 - (06/17/2014 18: Margin Left = 12.700000
    Thread 1208 - (06/17/2014 18: Margin Right = 10.160000
    Thread 1208 - (06/17/2014 18: Margin Top = 25.400000
    Thread 1208 - (06/17/2014 18: Margin Bottom = 25.400000
    Thread 1208 - (06/17/2014 18:CResourceManager::SetLocaleInfo - Starting Function.
    Thread 1208 - (06/17/2014 18:SetUICulture - Starting Function.
    Thread 1208 - (06/17/2014 18: Attempted UI LCID = 1033
    Thread 1208 - (06/17/2014 18: Using UI LCID = 1033
    Thread 1208 - (06/17/2014 18:SetUICulture - Ending Function.
    Thread 1208 - (06/17/2014 18:CResourceManager::LoadResourceDLL - Starting Function.
    Thread 1208 - (06/17/2014 18:CResourceManager::LoadResourceDLL - Ending Function: 0x00000000.
    Thread 1208 - (06/17/2014 18:CResourceManager::CanUseCurrentLocale - Starting Function.
    Thread 1208 - (06/17/2014 18:CResourceManager::CanUseCurrentLocale - Ending Function.
    Thread 1208 - (06/17/2014 18: Attempted culture = 1033
    Thread 1208 - (06/17/2014 18: Using culture = 1033
    Thread 1208 - (06/17/2014 18: Culture name = English_United States.1252
    Thread 1208 - (06/17/2014 18:CResourceManager::SetLocaleInfo - Ending Function: 0x00000000.
    Thread 1208 - (06/17/2014 18:CPrintDlg::Print - Starting Function.
    Thread 1208 - (06/17/2014 18:CPrintDlg::InitializePrintDlg - Starting Function.
    Thread 1208 - (06/17/2014 18:CPrintDlg::GetDefaultPrinterName - Starting Function.
    Thread 1208 - (06/17/2014 18:CPrintDlg::GetDefaultPrinterName - Ending Function: 0x00000000.
    Thread 1208 - (06/17/2014 18:CPrintDlg::SetPrinterPaperSize - Starting Function.
    Thread 1208 - (06/17/2014 18:CPrintDlg::GetDefaultPaperSetting - Starting Function.
    Thread 1208 - (06/17/2014 18: Attempting to match paper size for height=2794, width=2159
    Thread 1208 - (06/17/2014 18: Found matching paper size: 0
    Thread 1208 - (06/17/2014 18:CPrintDlg::GetDefaultPaperSetting - Ending Function: 0x00000000.
    Thread 1208 - (06/17/2014 18:Initialized DevMode: dmPaperSize=1, dmFields=0x00000003, dmOrientation=1
    Thread 1208 - (06/17/2014 18:CPrintDlg::SetPrinterPaperSize - Ending Function: 0x00000000.
    Thread 1208 - (06/17/2014 18:CPrintDlg::InitializePrintDlg - Ending Function: 0x00000000.
    Thread 1208 - (06/17/2014 18:CReport::SetReportName - Starting Function.
    Thread 1208 - (06/17/2014 18:CReport::SetReportName - Ending Function: 0x00000000.
    Thread 1208 - (06/17/2014 18:CPrintDlg::PrintReportPages - Starting Function.
    Thread 1208 - (06/17/2014 18:CCancelDlg::StartDialog - Starting Function.
    Thread 1208 - (06/17/2014 18:CCancelDlg::StartDialog - Ending Function: 0x00000000.
    Thread 1208 - (06/17/2014 18:CReport::Fetch - Starting Function.
    Thread 1208 - (06/17/2014 18:CReport::ComparePrintInfo - Starting Function.
    Thread 1208 - (06/17/2014 18: Value of diff = 2
    Thread 1208 - (06/17/2014 18:CReport::ComparePrintInfo - Ending Function.
    Thread 1208 - (06/17/2014 18:CReport::ResetNextFetch - Starting Function.
    Thread 1208 - (06/17/2014 18:CReport::ClearPages - Starting Function.
    Thread 1208 - (06/17/2014 18:CReport::ClearFetchedPages - Starting Function.
    Thread 1208 - (06/17/2014 18:CReport::ClearFetchedPages - Ending Function.
    Thread 1208 - (06/17/2014 18:CReport::ClearPages - Ending Function.
    Thread 1208 - (06/17/2014 18:Next Fetch set to 0
    Thread 1208 - (06/17/2014 18:CReport::ResetNextFetch - Ending Function.
    Thread 1208 - (06/17/2014 18:CReport::StartFetchThread - Starting Function.
    Thread 1208 - (06/17/2014 18:CReport::GetPageToFetch - Starting Function.
    Thread 1208 - (06/17/2014 18: Page to fetch = 0
    Thread 1208 - (06/17/2014 18:CReport::GetPageToFetch - Ending Function.
    Thread 1208 - (06/17/2014 18:CReport::StartFetchThread - Ending Function: 0x00000000.
    Thread 1208 - (06/17/2014 18:CReport::Fetch - Ending Function: 0x00000000.
    Thread 1208 - (06/17/2014 18:CReport::GetPage - Starting Function.
    Thread 1208 - (06/17/2014 18: Page = 1
    Thread 1208 - (06/17/2014 18:CReport::GetPageWrapper - Starting Function.
    Thread 1208 - (06/17/2014 18: Page wrapper = 0x00000000
    Thread 1208 - (06/17/2014 18:CReport::GetPageWrapper - Ending Function.
    Thread 6928 - (06/17/2014 18:CReport::FetchThreadMain - Starting Function.
    Thread 6928 - (06/17/2014 18:CReport::GetPaperSize - Starting Function.
    Thread 6928 - (06/17/2014 18: Selected DevMode: dmPaperSize=1, dmFields=0x0000ff03, dmOrientation=1
    Thread 6928 - (06/17/2014 18: Height = 11000, Width = 8500 IsMM = 0
    Thread 6928 - (06/17/2014 18:CReport::GetPaperSize - Ending Function.
    Thread 6928 - (06/17/2014 18:CPageFetcher::SetFetchParameters - Starting Function.
    Thread 6928 - (06/17/2014 18:CResourceManager::SetInvariantCulture - Starting Function.
    Thread 6928 - (06/17/2014 18:CResourceManager::SetInvariantCulture - Ending Function: 0x00000000.
    Thread 6928 - (06/17/2014 18:CResourceManager::ResetCulture - Starting Function.
    Thread 6928 - (06/17/2014 18:CResourceManager::ResetCulture - Ending Function: 0x00000000.
    Thread 6928 - (06/17/2014 18:CPageFetcher::SetFetchParameters - Ending Function: 0x00000000.
    Thread 6928 - (06/17/2014 18:CPageFetcherSingleRequest::PerformFetch - Starting Function.
    Thread 6928 - (06/17/2014 18:CPageFetcherSingleRequest::InternalPerformFetch - Starting Function.
    Thread 6928 - (06/17/2014 18:Page range: 1 to 1
    Thread 6928 - (06/17/2014 18:CPageFetcher::CreateUrlWithPageRange - Starting Function.
    Thread 6928 - (06/17/2014 18:CPageFetcher::CreateUrlWithPageRange - Ending Function: 0x00000000.
    Thread 6928 - (06/17/2014 18:CPageFetcher::GetWebRequest - Starting Function.
    Thread 6928 - (06/17/2014 18: Url = http://server61/B3_May10_WAdmin/Reserved.ReportViewerWebControl.axd?Culture=1033&CultureOverrides=True&UICulture=1033&UICultureOverrides=True&ReportStack=1&ControlID=e9cb53474be44535b2ee67968fbfa43f&Mode=true&OpType=PrintRequest&rs:Command=Render&rs:format=IMAGE&rc:OutputFormat=emfplus&rc:PageWidth=8.5in&rc:PageHeight=11.0in&rc:MarginTop=25.400mm&rc:MarginBottom=25.400mm&rc:MarginLeft=12.700mm&rc:MarginRight=10.160mm&rc:StartPage=1&rc:EndPage=1
    Thread 6928 - (06/17/2014 18:CPageFetcher::GetWebRequest - Ending Function: 0x00000000.
    Thread 6928 - (06/17/2014 18:CPageFetcherSingleRequest::ReadPage - Starting Function.
    Thread 6928 - (06/17/2014 18:CPageFetcherSingleRequest::ReadExactBytes(bytes) - Starting Function.
    Thread 6928 - (06/17/2014 18:Bytes to read: 4
    Thread 6928 - (06/17/2014 18:CPageFetcherSingleRequest::ReadExactBytes(bytes) - Ending Function: 0x00000000.
    Thread 6928 - (06/17/2014 18:CPageFetcherSingleRequest::ReadExactBytes(CBuffer) - Starting Function.
    Thread 6928 - (06/17/2014 18:CPageFetcherSingleRequest::ReadExactBytes(bytes) - Starting Function.
    Thread 6928 - (06/17/2014 18:Bytes to read: 4096
    Thread 6928 - (06/17/2014 18:Unexpected end of stream at 1329 of 4096 bytes
    Thread 6928 - (06/17/2014 18:CPageFetcherSingleRequest::ReadExactBytes(bytes) - Ending Function: 0x80004005.
    Thread 6928 - (06/17/2014 18:CPageFetcherSingleRequest::ReadExactBytes(CBuffer) - Ending Function: 0x80004005.
    Thread 6928 - (06/17/2014 18:CPageFetcherSingleRequest::ReadPage - Ending Function: 0x80004005.
    Thread 6928 - (06/17/2014 18:CReport::OnPageFetched - Starting Function.
    Thread 6928 - (06/17/2014 18:CReport::OnPageFetched received buffer with status code: 0x80004005
    Thread 6928 - (06/17/2014 18:CPage::CreateEnhMetaFile - Starting Function.
    Thread 6928 - (06/17/2014 18:CPage::CreateEnhMetaFile - Ending Function.
    Thread 6928 - (06/17/2014 18:CReport::OnPageFetched - Ending Function: 0x80004005.
    Thread 6928 - (06/17/2014 18:CPageFetcherSingleRequest::InternalPerformFetch - Ending Function: 0x80004005.
    Thread 6928 - (06/17/2014 18:CPageFetcherSingleRequest::PerformFetch - Ending Function: 0x80004005.
    Thread 6928 - (06/17/2014 18:CReport::FetchThreadMain - Ending Function: 0x80004005.
    Thread 1208 - (06/17/2014 18:CReport::GetPageWrapper - Starting Function.
    Thread 1208 - (06/17/2014 18: Page wrapper = 0x10DE7C78
    Thread 1208 - (06/17/2014 18:CReport::GetPageWrapper - Ending Function.
    Thread 1208 - (06/17/2014 18:CReport::GetPage - Ending Function: 0x80004005.
    Thread 1208 - (06/17/2014 18:CCancelDlg::EndDialog - Starting Function.
    Thread 1208 - (06/17/2014 18:CCancelDlg::EndDialog - Ending Function.
    Thread 1208 - (06/17/2014 18:CPrintDlg::PrintReportPages - Ending Function: 0x80004005.
    Thread 1208 - (06/17/2014 18:CReport::ClearFetchedPages - Starting Function.
    Thread 1208 - (06/17/2014 18:CReport::ClearFetchedPages - Ending Function.
    Thread 1208 - (06/17/2014 18:CPrintDlg::Print - Ending Function: 0x80004005.
    Thread 1208 - (06/17/2014 18:CRSClientPrint::Print - Ending Function: 0x80004005.


    Raamakarthikeyan

    Tuesday, June 17, 2014 1:31 PM