.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Automatically print a document

Posted By:      Posted Date: September 15, 2010    Points: 0   Category :ASP.Net
I want to be able to automatically print a document to a selected printer at a given time, i.e. printer 1 @ 10:00, Printer 2 @ 10:15, this is to be unatended once the setting have been made.Any help would be appriciated Steve

View Complete Post

More Related Resource Links

how to automatically save new file into document library with a unique name or ID?

I've created a form using MS Word Document (2007) and lock it (protect it) so that users will be able to fill in the required fields.
then i've created a Content Type and uploaded the MS word form to be used as a template.

Then I've created a document library and enabled the content type and associate the above form for the library, so that when users click on New button the form will open.

everythings goes fine till here.

The problem is when users clicks on New and save the file back to the library, It doesn't save it with a unique name, instead it is over writting the existing one.
in other words, if employee 1 fill up the form and save it and later on employee 2 accessed the library and fill up a new form, he will overwrite what employee 1 has already saved!!

Is there a way to give every new created file a unique name? maybe (username+time)??

Automatically print in a landscape format when report does not fit into a portrait format

Good morning,When I print a report, sometimes this report fits into a portrait format, sometimes, it does not, depending of the size of certain field that can grow, do someone know a way to automatically print into a landscape format if it does not fit into a portrait format?, I join the code of this report, when I print it, I have pages thats contain only a few caracters... I do not find how to attach a file here because if I could, I have printed this report in PDF so you will be able to see my problem.Thanks The code seems to be too long to fit in here, I can email to anyone that need to know more  

How do I set a "Automatically reject the document if it is rejected by any participant." if creating


I need to make my workflow in Sharepoint designer. But I want the function of "Automatically reject the document if it is rejected by any participant." so in case there are two manager approving a purchase request, the workflow stops and doesn't send a task to the next manager if the first rejects it.

Is this possible? I would also like to have "Automatically reject the document if it is changed before the workflow is completed." but I can't see how to do this either.

Print PDF Document from Web Form


I have to have a web form that allows the user to print a PDF Document from a web form or web service.  The requirements are that the user will not see the pdf before printing, the call to print will actually happen on the Web Server it's self, the web server does not have adobe, and the document has to print to a Network printer that the web server is not setup to print to. 

Can someone point me in the right direction?

Is there an alternative to the VB compatibility library and the default "print document" interface?


When I first converted a program from an older version of VB to
VB .Net, I used the printer compatibility library with good success.
It treated the printer as a device.  Print this, print that, start a new page,
and so on.  Recently, when adding the printing of graphics, I started running
into out of memory conditions.  I discovered that I could use the base
.Net print capabilites to resolve this problem for the graphic images.

If all I am printing is the graphic images, this is not too bad.
However, the application I have has a mix.  Print this form followed by
another form followed by a graphic  followed by another form.  Each form
and graphic could print on a single page or take multiple pages.  The default
.Net approach of a call back to get each page becomes extremely clumsy.
Each print routine needs to remember which page it is currently on between calls and the print distributing routine needs to keep track of what form is currently being printed.

Is there another printing interface available?

Print Document Allignment


Hi Guys, I want to Print Student ID card from my Grid View Control.

PrintDialog pDlg = new PrintDialog();
PrintDocument doc = new PrintDocument();
pDlg.Document = doc;

My Problem is i need to allign my data into doc, how can  i do this... 

print document without transparent color


I want user to be able to click print button and it will print document in web page.
I try to use window.print(); but it prints everything including transparent font color. I want to print document without printing transparent object. How can I do this?? 

Automatically delete from a WSS 3.0 document library


Good morning,


I'm using WSS 3.0 and need to find a way to automatically delete documents from a document library that are older than a given number of days.  Could someone comment on whether or not this is possible and recommend a way to do it?


Thanks in advance.

How do I print from Reporting Services AUTOMATICALLY in VB.Net web app?


We are converting some reports from Crystal Reports to Microsoft SQL Reporting Services (SSRS) in an ASP 2.0 VB.Net web app.  Crystal had a function called PrintToPrinter which was being used to programmatically print to a network printer that we specified in the code as soon as the user clicked a button on the screen.  The printer dialog box did not appear.  It was true one-click printing.

I need to figure out how to do the same thing in SSRS.  Right now we have our SSRS reports rendering to a PDF and opening in a new window when the user clicks the button, forcing the user to then click another print button on that screen to print the report.

I've been looking all over the web for how to do this but am not finding much luck.

Supposedly there is a way to call an SSRS web service, render the report as an EMF, and use things like System.Drawing.Imaging and System.Drawing.Printing to send the report to the printer.  I can't find any detailed examples of how to do this in VB.Net code however.  I'm trying to avoid doing this from scratch because I have very little time left to complete this.  Posts about this all seem to be from 2004 so I'm not sure if something better has come along since then.  This link shows an example of this in C# but since I don't know C# I can hardly make head or tail of it:


How to automatically resolve external business data in a MOSS 2007 document list


Here's what I have so far...

1.      I have a document list in MOSS 2007.

2.     Each document in the list may be sent to an external system for further processing.  This was done by adding a custom feature to the document libraries actions menu in SharePoint.

3.     The external system uses it's own SQL Server database.  A table in this database references the SharePoint document’s GUID.  Additional columns in the table are updated during external processing data such as status.

The problem I'm trying to solve is this:

1. I would like the see the external processing status for a document in the original SharePoint document list.  This status will change and needs to be updated for each document automatically.

I tried setting up a business data column in the document list.  I created the XML definition of the external SQL Server table using the MOSS 2007 SDK and imported the definition.  I added the business data column to the list

Working with SharePoint document libraries

Document libraries are collections of files that you can share with team members on a Web based on Microsoft Windows SharePoint Services. For example, you can create a library of common documents for a project, and team members can use their Web browsers to find the files, read them, and make comments. Users with Microsoft Office 2003 can check out and edit the files as if they resided on a local or network drive.

By default, your team Web site comes with a built-in document library named Shared Documents, which is listed on the Quick Launch bar as well as on the Documents and Lists page.

jQuery $(document).ready() and ASP.NET Ajax asynchronous postback

Many call it the ASP.NET jQuery postback problem, but using the technique below should make it no problem anymore. $(document).ready() isn't called after an asynchronous postback. What this means? You lose the functionality that should be executed within $(document).ready() after an UpdatePanel rendered its contents after an asynchronous postback.

SharePoint Document Workspaces for Developers

Office 2003 is being released this month, and a cast of supporting applications is already available. One of these is Windows SharePoint Services 2.0, the free team add-on for Windows Server 2003. If you're not familiar with SharePoint Services basics, take a look at What Developers Need to Know About Windows SharePoint Services. In this article, I'm going to drill into one key place where SharePoint and Office 2003 overlap: document workspaces

Upload a File to a SharePoint Document Library - Part I

The following helper class demonstrates a few techniques that allow documents to be uploaded to a SharePoint document library programmatically without using the API or a custom web service. You don't need to specify a document library name, and it will create any folders specified in the URL as required. File meta data will be updated if any properties are passed.

SharePoint document migration challenges when migrating files and folders

There are several challenges when migrating documents to Microsoft SharePoint. While these challenges can be overcome, they are a real pain if the migration source, content and file systems are not SharePoint friendly.

PrintPocketCE Print Pocket Excel, Pocket Word and email files

Version 3.560 (May 15, 2009):

Important bug fix: a slight difference in how some devices create fonts was causing a few devices to have significantly longer print times for large print jobs.

Adjusted PocketJet printer paper feed commands

Other minor fixes and enhancements.

Version 3.559 (Mar 5, 2009):

Added support for Martel MCP78xx printers

Version 3.558 (Aug 20, 2008):

Added support for Martel MCP78xx printers

Version 3.557 (June 27, 2008):

Fixed error in Canon printer support

Fixed COM0 port selection

Version 3.556 (June 15, 2008):

Added support for Brother MW-260

Added support for Sato MB400

Version 3.555 (Aug 8, 2007):

Added support for Pentax RuggedJet 3 and RuggedJet 4 printers

Changed Epson TM-P60 support to maximum page width of 1200 dots

Version 3.551 (Aug 1, 2006):

Added Peripheral Nomad printer support

Version 3.550 (Mar 23, 2006):

Added Panasonic JT-H200PR printer support

Added Pocket Spectrum printer support

Fixed problem with WM5.0 "inverted image" problem

bluetooth print via serial port PDA

Print via BlueTooth using PDA
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend