MVC - Unable To Print Charting Control On Server?

Feb 9, 2010

Trying to print an ASP.NET Charting control behind the scenes in my web app. I think it is a permissions issue with the printer as everything is ok up until the point where my code calls:

chart.Printing.Print(false);
bool finished = false;
while (!finished)
{
finished = File.Exists(settings.GetValue("statusfile")); // file which indicates document was printed
System.Threading.Thread.Sleep(1000);
}


At this point the page just freezes (or continues to load endlessly - infinite loop!) Understandably this is happening because I am 100% relying on the document being printed. I do intend to add a timeout, however, at the moment I am just trying to figure out why exactly the document is never being set to the printer!

I have given the account (which the AppPool is running under) permissions to all the relevant folders and even the pdf printer itself...Still nothing.

Am I missing something? Is there any issues with printing on the server side via ASP.NET? I have encountered some issues doing this via WindowsServices in the past not sure if it is a similar problem with ASP.NET websites.

Update

I updated the AppPool to give myself (admin) permissions and it is the same issue. So by the looks of things the job is never being sent to the printer. I can't seem to figure out why though...

Probably should have mentioned this in my original post....but I am invoking the printer through a referenced DLL, this code is not being called directly from my application (incase it matters). Also this runs fine on my Development machine which is running Windows 7 IIS7.0 where as the server is running Windows 2003 server with IIS6.0.

Update 2

I removed the while loop and just left in the chart.Printing.Print(false) line and turns out the document IS being sent to the printer. So the issue must be with the settings file not getting written which is why the loop never breaks out!

View 1 Replies


Similar Messages:

SQL Reporting :: Print SSRS Report I Got The Message: Unable To Load Client Print Control?

Mar 25, 2011

When I try to print SSRS report I got the message: Unable to load client print control.

I am using report viewer to view the report

My ASP.Net application is running on a server.

My MS SQL server is running on a separate server

My Report server is running a separate server

I tried installing the report viewer patch from [URL] and installed the same on all the three servers ... and have restarted too!

It is not working on production environment and the same is working in development environment

View 1 Replies

SQL Reporting :: Getting "Unable To Load Client Print Control" Error When Click On Print Button

Jan 11, 2010

iam using the ReportViewer Control in Visual Studio 2008 for displaying the report on the page. When iam going to Click on Print button iam getting the below error. Unable to load client print control

View 1 Replies

SQL Reporting :: Unable To Load Print Control ReportViewer?

Dec 8, 2010

I am getting an error : Unable to load Print control with the defalt print option of the report viewer

there is a RSClient.cab which we would need to install to get the print control running in every client but then all the clients in the organization would not have a the admin rights to install it.

View 1 Replies

SQL Reporting :: Unable To Load Client Print Control?

Sep 7, 2010

I am facing one problem since two days in ssrs 2008, i am not able to solve this problem.

Problem Statement:- I am getting "Unable to load client print control" error when i am trying to give print option from report server.

View 2 Replies

SQL Reporting :: Unable To Load Client Print Control - From Development Machine

Feb 1, 2010

I have googled and searched the forums for an answer to this but nothing seems to fit.

I have installed the SP1 release of SQL 2008 Report Viewer Distributable and the SP1 of 2005 as well. My report viewer control is pointing at version 9.0.0.0 in the page references and web.config.

The problem is when clicking on the print icon i get the ActiveX control install prompt, click install it disappears briefly and I then get the "Unable to load client print control error". This is happening on my development machine.

Under the C:WINDOWSDownloaded Program Files folder i have a control with the name {0D221D00-A6ED-477C-8A91-41F3B660A832} I have tried removing this and allowing the ActiveX to install again, but this has made no difference.

I have the "Unable to load print control" on two live web servers so want the control working on my development machine before i tackle the issue on the servers.

View 3 Replies

SQL Reporting :: Reportviewer Control Gives "Unable To Load Client Print Control"?

Jan 4, 2010

I've got a web app developed in VS 2008, using the .net 3.5 framework.Within the app I've got the reportviewer control. It's pointing to a report built in VS 2005 as my server uses SQL Server 2005, and therefore Reporting Services 2005.When I click the print button on the report viewer toolbar I get "Unable to load client print control".When I go to the report directly (http://servername/reports) and click the print button from there it works.I assume that it's to do with the versions I'm using. I do have the report viewer 2008 installed on the server.What's the best way to fix it? I'd rather not develop the app in VS 2005, but will if that's the only way.

View 6 Replies

Forms Data Controls :: Unable To Download Built-in Charting Controls (VS 2010 And .NET 4 Series)

Mar 8, 2011

[URL]

i m not able to download the

Built-in Charting Controls (VS 2010 and .NET 4 Series)

View 3 Replies

SQL Reporting :: Again "unable To Load Client Print Control" Rsclientprint.cab Missing?

Aug 10, 2010

after updating sqlserver2005Express to sp3 on our server (IIS and sqlserver2005 on the same machine with windowsserver2003 installed), we now receive the "unable to load client print control" on all clients from our aspx-application, built with vwd2008.It worked fine before the sp3 update. The rsclientprint.cab file resides in ...Microsoft SQL ServerMSSQL.2Reporting ServicesReportserverin.I read through hundreds of posts and for my understandig it is important to have the right version of the rsclientprint.cab file. So I (again) updated the reportserver redestributebals2005 and 2008. After that I expected to have a new (version of) rsclientprint.cab file in the .in directory, but this file wasn't installed.

View 1 Replies

SQL Server :: Retrieving Data For Charting?

Nov 9, 2010

I need to pull data out for a chart and the following is what I have come up with. While it works I know there must be a more elegant way to get the same data in the same format.

[Code]....

MONTH P1 P2 P3
September 5 4 1
October 9 1 3

View 3 Replies

How To Use BinaryStreaming Rendertype In C# Charting Control Using Ajax Call

Mar 1, 2010

give a code snippet which will explain how to use Binary streaming render type in ASP.Net Charting controls using $.ajax call in ASP.Net MVC Framework. ?

Ajax call will look like this-->

$.ajax({
type: "POST",
url: "/DrawChart/" + drawingParamter1+ "/" + drawingParamter2,
dataType: someSuitableDataType,
error: function(error) {
},
success: function(html) {
}
});

View 2 Replies

Forms Data Controls :: .Net Charting Control -with Legends?

May 12, 2010

As you see above , we have more data in pie chart to plot and hence 3 DOTS appear at right bottom. Hence user cant see all the legends.Is it possible to have.say a tooltip on 3 DOTS so that when an user hovers,he sees entire / remaining legend list?

View 5 Replies

Forms Data Controls :: Plotting A Chart Using Charting Control?

Mar 15, 2010

I am plotting a chart using charting control. The x-values are text values and y values are date values.

If there is same text multiple times, then the plotted chart has multiple bars of same value. I want the values for the same text to be on the same bar.

View 2 Replies

#SEQ Keyword - Charting Control With Multiple Azure Cloud Application Instances

Feb 27, 2010

I am having a simple Azure cloud app(WebRole=ASP.Net MVC) which draws charts using ASP.Net Charting control. Chart RenderType = ImageMap Chart ImageLocation = "/Images/Chart_#SEQ(1000,1)" Number of app instances deployed on Windows Azure = 5 App contains a button which draws charts as per users parameters. When user clicks on this button, MVC action is called which provides necessary ViewData for drawing chart and returns a partial view which after getting rendered sends ImageMap and Image location to client.

When I try to draw charts from IE8 I always get the charts as per my parameters but when I simulataneously try to draw charts on FireFox sometimes I get wrong charts(wrong images). Is is due to roundrobin used - #SEQ(1000,1) or due to mutiple instances of my cloud app?

View 1 Replies

Web Forms :: Print Documents Client Machine By Sending Print Command From Server

Jun 26, 2013

Now I am printing the data from model in mvc. I am also printing the documents, How I upload file how to print that particular documents which is related that particular user with the other data...

View 1 Replies

Custom Server Controls :: Activex Control To Print A Zebra Tag?

Sep 15, 2010

I'm trying to create an Activex control (similar to the Crystal Activex) to Print tag's from a Client side to a Com Port 1. I created a User control I can pass values to it etc, but It won't Print.

User Control Code:

[Code]....

View 1 Replies

Custom Server Controls :: Unable To Access Control Inside Webuser Control?

Aug 19, 2010

I have used calender web user control inside my project where i took textbox,button and calender...but after dragging onto my aspx page..i am unable to access this textbox,calender and button on aspx page..

View 5 Replies

Unable To Print - IsLocked In The Db Is Integer Type?

Feb 16, 2010

I have a method is code behind like this:

Code:

[code]....

but it doesn't print out anything. IsLocked in the db is integer type. It should print out "1" .. If I just do Eval("IsLocked") then it prints out 1..

View 27 Replies

Web Forms :: Unable To Print Using Network Printer?

Jun 22, 2010

we have a intranet in asp.net installed on iis-6 ,windows 2003 server.

the codes r correct, when be run it from visual studio it runs and prints from network printer,

but as we use intranet to print there is an error - RPC not Find , network printers invalid,

as i clearify here that - as be are able to print using that network printer from outside intranet.

we have tryied imepsonate - configuration but not worked

View 2 Replies

Crystal Reports :: Unable To Print All Pages?

Jan 24, 2011

I write some code below in FrmPrescription.aspx.cs file :

protected void btnPrint_Click(object sender, EventArgs e)
{
try
{[code]....

this code is for local print,but if crystal report has more than 1 pages in that case it will print just one page!

View 4 Replies

Web Forms :: Unable To Print Barcode Sticker

May 7, 2015

I have created an image of barcode but it doesn' print properly in a zebra printer which has 203 dpi resolution. It comes in two pages. Barcode works but it prints two sticker one with barcode and one empty sticker.

View 1 Replies

Web Forms :: Unable To Print Out All Text In Multiline Texbox

Jun 1, 2010

I have a form with 4 multiline textboxes on it, however when user hits print button it only prints out what is on the screen and not entire contents of the textboxes. I have this javascript I created but it does not seem to be working..still will not print out entire content of texboes. On my Ascx page I am using the <div id="printdiv"> .

[Code]...

View 1 Replies

Forms Data Controls :: Pie Chart Size In Charting / Using MS Chart Control (3.5)?

Aug 12, 2010

I am using MS Chart control (3.5), and have a requirement where I need to display 2 pie charts. The datapoints for the pie charts is set programatically. My doubts are as follows:

1. Can I display both the pie charts in a single chart control and area, or do I have to use two controls? (Currently I am using two controls)

2. How can I maintain the same size for both the pie charts? This is my main concern, since the pie sizes keep changing, depending on the number of datapoints. I tried using custom properties like "MinimumRelativePieSize", but it's not working.

View 1 Replies

SQL Server :: Unable To Find Control In List

Sep 23, 2010

I'm trying to define the parameters of my data source using a stored procedure. My Stored Procedure Syntax is perfect and i'm happy with that, i've just got trouble with connecting my parameters to my controls. I have 19 Parameters, of which i've managed to connect 17 to controls within my ASP.Net form (some to text boxes, some to ddls etc...)

However, i'm trying to connect a particular parameter to a control, but when i drop down my list of controls it's not visible? The control is within a hidden panel so i've un-hidden it and it's still not there. I've even commented out the panel and tried that but i can't find this control! I just cant seem to get this control to appear in the list.

Has any one seen anything like this before at all?

View 5 Replies

Crystal Reports :: Unable To Print From A Webserver A Report Through A Local Printer?

Oct 28, 2010

I have designed a report for printing cards and am able to print it on my local machine but when i upload on the server, i can preview the report but when i click print through a pdf its coming out blank.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved