« Telework Exchange Announces 2nd Annual Telework Week | Main | Like the new design? »

November 25, 2011

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83451754b69e20162fc49f4ff970d

Listed below are links to weblogs that reference Print envelopes via a web site using ASP.NET and C#:

Comments

Josh

Thanks for the post. Is there a way to send this directly to the printer without ever viewing the envelope? In the case where it would be a loop, if it were a large number of addresses, it would be inconvenient to have to click print for every envelope.

Josh

Sorry about my previous post. A coworker was running what I thought was this code, but it turned out to be similar but a little different from a different website. I didn't notice you were creating multiple pages, which makes my comment about having to click print for every page stupid.

However, I still have a question with it. When we click print, it is by default trying to print on an 8.5" x 11" paper from our default tray. Is there a way to have it automatically choose a different tray and be expecting to print on an envelope?
Also, I would still like to know if it is possible to print an envelope directly to the printer without a preview. Even though there isn't a problem of clicking print for multiple envelopes in one job, we would like to save our users the added step of clicking print in the viewer.

Al Crowley

Josh, from a web page there isn't much you can do (that I know of) to influence the printer settings. All I can do from the server side is generate the PDF suitable for printing on envelopes. From there I hand it off to the user to hit print and get it directed to the right tray.

If you really need full control of the print job I think you would need to write a native app on the client side, or maybe a Java applet if you get the permissions right....but I'm not a Java person so take that bit with a grain of salt.

Host SEO

If you are familiar with .NET web services you understand how efficient these calls to the host are, no html web page, just the data you want returned in (often) XML format. ASP .NET allows you to build powerful data driven applications...but all that reposting to the host costs a lot of bandwidth. The XMLHttpRequest object has been around since 2000 and is found on virtually every box running a Microsoft Windows OS in use today, in addition to most modern browsers. In this example we will call an ASP .NET web service written in C# using a SOAP (Simple Object Access Protocol) envelope from a Javascript client.

los angeles seo

i have a web service that works fine when i call it from the local machine. however, from other machines, i get the same error as in the topic title. i am calling the web service via ajax (not atlas). when i run the ajax code in the browser on my dev machine, it works great.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment