VS 2008 - Print Doesn't Work

Aug 17, 2012

I have been handed a program written by someone else, that has been deployed and doesn't work correctly after deployment.

Basically we have a button with the following:

Code:
protected void btnPrint_Click(object sender, EventArgs e)
{
using (PrintDocument pd = new PrintDocument())
{
pd.PrintPage += new PrintPageEventHandler(printPage);
pd.Print();
}
}

in Dev the print button works everytime. I noticed that this references System.Drawing and that wasn't being deployed as part of the solution. I changed this so that this dll gets deployed as part of the solution into the bin folder for the app, however it has made no difference.

View 5 Replies


Similar Messages:

Crystal Report Print Functionality Doesn't Work After Deployment

Jun 6, 2010

I'm using crystal reports to build reports, everything is ok while development. But after deployment of website, print functionality doesn't work.

I use _rptDocument.PrintToPrinter(1, false, 0, 0); to print report.

I've tried two methods to deploy website

Normal Publish option. Web Deployment Project.

But I got the same output, print functionality doesn't work. Also, I tried to set default printer, this also doesn't work.

View 1 Replies

Mobiles :: Print On Windows - Form Authentication Doesn't Work

Sep 11, 2010

i made a web application and i need it to work on a windows mobile system, the thing is that some control don't work the way i planned one thing is that form authentication doesn't work i have two question,

1- do i need to make a smart device project and do the whole program again

2- i need a way to print from this device (HTC TyTN II) to a bluethoot device (DPP-250).

View 1 Replies

Web Forms :: Image Copy Doesn't Work On Windows Server 2008 With IIS 7.0

Mar 15, 2010

I have a small function that is in a STA thread. It's purpose is to copy the selected image in word document to clipboard and then save it to a location on the hard drive. Here is the code that works fine on XP and Windows server 2003.

protected static void CopyInlineShapeFromClipbord()
{
string imageFileName = string.Empty;
_oWordApplication.Selection.Copy();
Computer computer = new Computer();
if (computer.Clipboard.GetDataObject() != null)
{
System.Windows.Forms.IDataObject data = computer.Clipboard.GetDataObject();
if (data.GetDataPresent(DataFormats.Bitmap))
{
Image image = (System.Drawing.Image)data.GetData(
DataFormats.Bitmap, true);
imageFileName = _imageUrl + ".gif";
image.Save(imageFileName, ImageFormat.Gif);
_imageUrl = imageFileName;
}
}
}

It does not work on Windows server 2008 on IIS 7.0 Is there some known WP Identity issues or any other kind of security issues in cross process memory sharing?

View 1 Replies

Configuration :: Doesn't Work When Published To Virtual Server Running Windows Server 2008 R2?

Feb 26, 2011

Does anyone know of any requirements to get the Ajax Control Toolkit (Calendar Extension in particular) working in this OS? I have it working on my local macjine (VS 2010 Development Server) but it doesn't work when published to my Virtual Server running Windows Server 2008 R2. No errors are reported, just nothing happens when I give focus to the Calendar textbox (no Calendar appears).Anyone know of any configutrations that need to be made in Windows Server 2008 R2?Is there a 32-bit/64-bit issue with the Toolkit?

View 8 Replies

AJAX :: Make This Work For Several Days But It Just Doesn't Work?

Oct 7, 2010

i'm trying to make this work for several days but it just doesn't work.

this is my code:

aspx page:

[Code]....

webservice:

[Code]....

this was downloaded from this website.

the problem is that the page loads fine but no autocomplete occurs.

View 5 Replies

Ajax With WCF Work. But Few Miniute After, Doesn't Work

May 11, 2010

I am a new to WCF. I have written ajax to use a web service before, but on this project I am trying to use ajax to WCF.After I build the project and wcf using ajax, I receive the return successfully. But, 10 or more minutes later I don't get a return, the ajax calls the error function, and the fiddler returns nothing.

If I rebuild the project without any source modifying, I receive the return successfully again.

View 2 Replies

SQL Reporting :: Print Icon Does Not Work?

Jan 24, 2011

I run SQL Reporting Service 2000 with his service pack, our application is under VS 2003. When we generate a report the print icon does not work, so we hace to export to PDF format in order to print it. How to solve this problem?

View 1 Replies

Web Forms :: The Text In The AjaxCtrl:TabContainer TabPanel Doesn't Print Out Correctly In IE 8

Jan 14, 2011

For this web page, The img is now showing up in print preview and is printing. From FireFox, the shrik-to-fit option works great in preview and print out they look perfect. The problem is with IE 8 (havne't tested other version) The image and other stuff comes out fine. The section that consist of panel and the AjaxCtrl:TabContainerer, the Active Tab with its text content are shrunk to like 60% from the right edge of the paper. The fonts are very small and readable. I tried playing with the scale percentage in the print preview of IE but it increase size on all the content and not just the AjaxCtrl:TabContainerer part.

Is there a way to fix this in IE?

View 1 Replies

Print PDF From Page .aspx C# VS-2008?

Sep 13, 2010

I have a aspx page with Charts and DataGrips and I want to print all my page in a pdf just like it look in my page.

View 9 Replies

Crystal Reports :: Direct Print Without Showing Many Popup In Vs 2008?

Jan 6, 2011

I am working on a project and I am creating crystal reports.I have to print the reports.When I press the print icon on the report , 1 pop opens and it asks me to choose all pages or select page range when I press on "Ok" on this page it then opens the repost in pdf file and then I click on print button on pdf and then print comes.I want that when User click on report then without any further popup the Print should come and if it is not possible then after 1st popup print shud come. I dont want that User shud see the pdf file..and I have not written any code for printing..

View 4 Replies

Doc.Save Doesn't Work With URI?

Feb 3, 2010

I am trying to save an updated xml file to a url like this:

Quote:

//save the output to a file
xmlDoc.Save("http://www.example.com/HomeNewsLinks.xml");


But I get this error: URI formats are not supported.

Did some google search on this and it seems I need to use client.uploadFile method, but I am not able to find how to declare/define filenamexxx (below) and how to pass a username/password.

Quote:

WebClient Client = new WebClient();
Client.UploadFile("http://www.example.com/HomeNewsLinks.xml", Post, filenamexxx);

View 5 Replies

Javascript - Why Doesn't This Work

Aug 10, 2010

I used this,

<a title="Logout" onclick="javascript:document.getElementById('ctl00_ContentPlaceHolder1_LbLogout').click();" href="#" class="logout">Logout</a></li>
<asp:LinkButton ID="LbLogout" runat="server" style="display:none"
onclick="LbLogout_Click">Sign out</asp:LinkButton>

View 2 Replies

TryUpdateModel Doesn't Work

Jul 14, 2010

I am following though the examples in Professional ASP.Net MVC 2 and one of the examples doesn't work for me.

[HttpPost]
public ActionResult Edit (int id, FormCollection collection)
{
Dinner dinner = dinnerRepository.GetDinner(id);
if (TryUpdateModel(dinner))
{
dinnerRepository.Save();
return RedirectToAction("Details", new { id = dinner.DinnerID });
}
return View(new DinnerFormViewModel(dinner));
}


I understand that it's suppose to take the values from the FormCollection, and then update the dinner object with it, bit I don't see the collection get referenced anywhere.

View 2 Replies

Hide Div Doesn't Work?

Aug 31, 2010

I have div which it is hidden by default , when the use clicks show link the following javascript method is called:

function ChangeControlVisibility(elementID) {
var element = $("#" + elementID);
if (element.css('display') != 'block' && element.css('display') != 'table') {
element.show();

[code]....

this step works but when i call the previous method at page_load event the method doesn't work:
element.css('display') undefined.

View 3 Replies

RegisterArrayDeclaration Doesn't Work?

Jul 27, 2010

[Code]....

And in default.aspx, the code is

[Code]....

But it is not working, the error is at alert(BiblePeopleArray(0));

View 4 Replies

Edit Doesn;t Work In Gridview?

Apr 1, 2010

I have a Gridview in UpdatePanel and a textbox in which i input a string, the row is searched from gridview onkeyup of textbox.For example when i entered "testing" one row is displayed in gridview having "Edit" command and when i clicked on "Edit" it goes to top of the row having another data is converted into edit mode but that rows is not changed into textbox.

View 8 Replies

ADO.NET :: Relation Between Tables Doesn't Work?

Sep 26, 2010

I have such entities

Then I tried to retrieve node type from Node this way - Nodes node = Entities.Nodes.First(); string nodetype = node.NodeTypes.Name; but for some reason node.NodeTypes equalls null despite fact that there is some records in NodeTypes table.

View 3 Replies

Listview Doesn't Work On First Click?

Mar 18, 2011

I have a listview in which I use a pager control. When I have more than 1 item in the list view, I want the user to be able to click on the appropriate page number and go to it. Simple right?, right now the first time the user clicks on the page number, nothing changes. If they click on it again, it goes right to the page. It doesn't matter what page they click on, it ALWAYS requires a second click to display the data item.

I am using VS2010 C# as the code behind.

View 4 Replies

UpdateProgress Doesn't Work With PostBackTrigger?

Mar 31, 2011

I know that UpdateProgress doesn't work with PostBackTrigger, but let me explain what i'm trying:

I'm generating a PDF document (Crystal Report) with ExportToHttpResponse that will be downloaded automaticaly by the browser.

So while the document is been generated, i'd like to show the UpdateProgress just while i'm waiting the doc is being generated, doing the UpdateProgress(or some label) to disappear.

View 3 Replies

Export To Excel Doesn't Work On IE Under SSL

Jan 12, 2011

I've been trying to fix something on a secure website (https) which is an Export to Excel button that generates a CSV file. It works on Firefox, Chrome , etc... but not in Internet Explorer. I have changed the headers eliminating the no-cache and also edited the IIS http header configuration setting an expiration date of 1 day. I have no idea of what can be going on and how to solve it. Do you guys have any idea of how to fix this stuff ? I've read so many posts and they're all saying the same thing... caching.

UPDATE 1 :

regarding the error I receive, I receive an IE Alert saying "Internet explorer cannot download filename.aspx from [URL]Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later. As I said, it all works out of SSL (https), but the export to excel button, breaks in https.

UPDATE 2:

I'm using these headers:

Response.ClearContent();
Response.Clear();
Response.Buffer = true;
Response.AddHeader("content-disposition", "attachment; filename=" + name.Trim() + ".csv");
Response.AddHeader("Cache-Control", "no-cache");
Response.AddHeader("Pragma", "public");
Response.AddHeader("Content-Transfer-Encoding", "binary");
Response.AddHeader("Content-Length", "2026");
Response.Charset = "";
//Response.ContentType = "application/vnd.ms-excel";
Response.ContentType = "text/csv";

View 2 Replies

Log-in Doesn't Work On Firefox Browser?

Dec 21, 2010

i've log-in page in my site but log-in control doesn't work on any browser other than IE.

View 1 Replies

CollapsiblePanelExtender Doesn't Work With UserControl?

Mar 2, 2010

Iam trying to use a UserControl named CheckBoxControl as value for the ExpandControlID/CollapseControlID attributes of the CollapsiblePanelExtender. It works fine when I use a normal CheckBox instead.

<uc:CheckBoxControl ID="ucHaftpflicht" runat="server" OnCheckedChanged="UpdateStatus" ControlLabel="Haftpflicht" />
<asp:Panel ID="HaftpflichtPanel" runat="server">
</asp:Panel>
<asp:CollapsiblePanelExtender ID="CollapsiblePanelExtender" runat="server" CollapseControlID="ucHaftpflicht.CheckBox" ExpandControlID="ucHaftpflicht.CheckBox" TargetControlID="HaftpflichtPanel" />

When I run the site, most ajax controls on my site disappear and I get following errors in firefox script error console:

Fehler: Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method.
Fehler: Sys.ArgumentException: Failed to find element "ucHaftpflicht.CheckBox"
Parameter name: CollapseControlID

View 1 Replies

Web Forms :: Email Doesn't Work In IE

Mar 17, 2010

The forms works fine in Firefox and I was able to get an email from it. Here is the code below:

Partial Class _Default
Inherits System.Web.UI.Page
''' <summary>
''' Actions when the Send button is clicked.
''' </summary>
'''
Protected Sub btnSend_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSend.Click
If Not Page.IsValid Then Exit Sub
'Create instance of main mail message class.
Dim mailMessage As System.Net.Mail.MailMessage = New System.Net.Mail.MailMessage()
'Configure mail mesage
'Set the From address with user input
mailMessage.From = New System.Net.Mail.MailAddress(txtEmailAddress.Text.Trim()).........

View 2 Replies

.net - Linkbutton Doesn't Work For Updatepanel

Aug 25, 2010

i have set of link buttons outside update panel but when click any one of them they donot work at all , when i set the postbackUrl they make full postback my source code :

<asp:Panel ID="pnl_viewImages" runat="server">
<asp:Label ID="lbl_viewImages" runat="server" style="texalign: left"
Text="view images :"></asp:Label>
<br />
<br />
<br />
<table cellpadding="0" cellspacing="0" style="width: 100%" class ="Alternating">
<tr>
<td colspan="5">
<asp:UpdatePanel ID="updatePnl_image" runat="server">
<ContentTemplate>
<asp:ListView ID="lv_showImages" runat="server">
<ItemTemplate>
<asp:Image ID="img_showNewsImage0" runat="server" Height="300px"
ImageUrl='<%# "RetreiveImage.ashx" %>' Width="413px" />
</ItemTemplate>
</asp:ListView>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="lbtn_first" EventName="Click" />
<asp:AsyncPostBackTrigger ControlID="lbtn_last" EventName="Click" />
<asp:AsyncPostBackTrigger ControlID="lbtn_next" EventName="Click" />
<asp:AsyncPostBackTrigger ControlID="lbtn_previous" EventName="Click" />
<asp:AsyncPostBackTrigger ControlID="lbtn_delete" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td>
<asp:LinkButton ID="lbtn_first" runat="server" onclick="lbtn_first_Click">first</asp:LinkButton>
</td>
<td>
<asp:LinkButton ID="lbtn_previous" runat="server" onclick="lbtn_first_Click"><<</asp:LinkButton>
</td>
<td>
<asp:LinkButton ID="lbtn_next" runat="server" onclick="lbtn_first_Click"
>>></asp:LinkButton>
</td>
<td>
<asp:LinkButton ID="lbtn_last" runat="server" onclick="lbtn_first_Click">last</asp:LinkButton>
</td>
<td>
<asp:LinkButton ID="lbtn_delete" runat="server" onclick="lbtn_first_Click">delete</asp:LinkButton>
</td>
</tr>
</table>
<br />
</asp:Panel>`

i tried to remove the table but in vain it does not work also.

View 2 Replies







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