473,322 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

WinForms ReportViewer COM Crash

Evening,

I've got a highly irritating bug with the reportviewer control that
appears to be a show-stopper for one of our bigger applications we're
writing.

When I try and print more than 1 page of any given report, I the
application hangs, a Window comes up saying "printing page 2 of y", and
after a period of waiting for the mysterious page to print, VS2005
throws the following error:

"ContextSwitchDeadlock was detected
Message: The CLR has been unable to transition from COM context
0x1afca0 to COM context 0x1afe10 for 60 seconds. The thread that owns
the destination context/apartment is most likely either doing a non
pumping wait or processing a very long running operation without
pumping Windows messages. This situation generally has a negative
performance impact and may even lead to the application becoming non
responsive or memory usage accumulating continually over time. To avoid
this problem, all single threaded apartment (STA) threads should use
pumping wait primitives (such as CoWaitForMultipleHandles) and
routinely pump messages during long running operations."

I'll try & provide all the information I can....

Steps to reproduce this are easy: Create new application (any
language). Add report-viewer to form, create new report, add a
text-box, bind viewer to new report, run. The report displays fine in
the control, pressing the print button brings up the usual dialogue-box
(rather slowly I might add), keep default settings, and press Print.

The printer in question is an OKI C5250n, running on a HTTP protocol
(Internal DNS address is http://okiprinter.companyinquestion.com/ipp),
and the driver version is the latest version (1.2.4).

I've tried this on several workstations. All Windows XP machines will
not print any reports to this printer, yet every other application
prints just fine (Crystal Reports included) - it's just the WinForms
ReportViewer. The only exception appears to be Windows Server 2003
which seems to print just fine from the control. All WinXP machines are
also completely up-to-date with patches.

Also, even when a report is just one page (like in our single-textbox
example), the report-viewer seems to add another phantom page to the
end which is what appears to be causing the problems.

Finally, printing to another printer seems to work ok too, it's just
this one. This would suggest environmental issues with that printer;
however, it has worked perfectly with every other application we're
tried - Microsoft and non-Microsoft.

Please would someone help me with this one! I'm desperately trying to
convince management this problem is just a fluke, and the MS Reporting
system so far has been very good - but this is a show-stopper!

Thanks in advance,
Sam

Aug 21 '06 #1
0 1686

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Lecture Snoddddgrass | last post by:
Greetings, Can anyone recommend a good 3rd party docking windows component for WinForms? I'm looking for something that allows windows to not only be docked but to "popout", much like the...
1
by: Pieter | last post by:
Hi, In my application VB.NET 2005 application I placed a ReportViewer, and link it to a server-report: Me.ReportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Remote...
0
by: Rich | last post by:
Hello, I started using the Reportviewer control (very nice) for generating Reporting Services type reports in my VB2005 app. I have been experimenting using a designer Reportviewer control from...
0
by: Fred G. Sanford | last post by:
Firstly, I am a fairly new .Net developer, so please excuse any dumb/ignorant questions or comments. Thanks. I created a VWD Express project, which uses the ReportViewer control, on my local...
0
by: billygotee | last post by:
Hi, I posted an issue previously that was entirely accurate. I have a master report called "MasterReport.rdlc" and a subreport called "Subreport.rdlc". MasterReport.rdlc has a single subreport...
10
by: AG | last post by:
I am trying to use a ReportViewer control in a VS 2005 web application project (not Website project). When I try to create a new report (local), I can't seem to find any method to create a...
0
by: SLko | last post by:
Hi! I have local report as a table that much bigger than display area of ReportViewer control. When I scroll horizontally (by mouse) to view last column and then move to next page the screen pops...
0
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi misters USING VS 2005 in XP, VB.NET, CLICK ONCE I have a Publish of my application, AdministradorWin.exe, in a folder D:\ClickOnce\instalacionExpedienteElectronico (of a server in my...
5
by: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post by:
I have a VS 2008 ASP.NET webform that has a reportview tag on it, accessing an .RLDC report in local report. The columns for the report are essentially: Month Item #1 Item#2 Item#3 ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.