printing

Do you print your source code? If so why?

Possible Duplicate: Why print your code? For the first time in probably over 10 years I printed some source code. The reason why was so my non-programming wife could use it as a reference for a novel she's writing. Twenty years ago when I worked for a major bank we had to print the source code of every major release. Do you ...

Force browser not to show print dialog

Hi, i want to print a document from browser using window.print(). I want browser not to show standart print dialog on current machine. I have all access to system registry and settings on it. Is there way to tweak the system in this way? ps. Excuse me for my english. ...

Printing web pages in an order

hi! I've a php file which'll run a SQL script and fetch information about users. Some user's information may span 2 or 3 pages while some might end in just 1. I want to print the beginning of ever user's report in a new page. All these process has to be automated because there are some 400 users, and the client can't select page layou...

How to Print a Triangle using single variable and in a single loop?

A colleague ask me to print a triangle (of any shape) using a single variable and in a single loop. I do it this way: Program.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Triangle { class Program { static void Main(string[] args) { var triangle ...

Disable PRINT in SQL Server

Hi, I have a script with many debug messages, which are printed by PRINT function. Is there any way to disable that messages? I have in mind something like SET NOCOUNT ON, but for user messages. ...

Get line number while using grep.

Hello I am using grep recursive to search files for a string, and all the matched files and the lines containing that string are print on the terminal. But is it possible to get the line numbers of those lines too?? ex: presently what I get is /var/www/file.php: $options = "this.target", but what I am trying to get is /var/www/file.php:...

how can Printing a Web Page in Asp.Net without Header and Footer - ASP.NET

how can Printing a Web Page in Asp.Net without Header and Footer ...

Multiple page printing in Silverlight 4 using Custom Printing Template (a User Control)

Hello everyone, I need some help on printing multiple pages with custom printing template. The printing template (a Silverlight User Control) consists of two Text-block's (Title and Content which displays and later prints the respective text). The problem I am having is its only able to print 1 page, how can I extend it to print multipl...

Need a print button in a browser that will print a PDF file

I need to set up a print button in HTML that will print a certain PDF file, hopefully without having to download the file first. I've tried a few things but some only work in IE. and some require downloading the file as an embedded object which also is not acceptable. Embedding javascript in the PDF sounds the most promising, but I'd ra...

How to access any printer present in wifi network in an iPhone application ?

Hi all, I want to develop an iPhone application where i want to access any printer present in my wifi network. But according to Apple :" Printing is not supported because there is no direct support for connecting printers or other print-related hardware to an iPhone or iPod touch". But there are many application in appstore which is ...

PHP / HTML - enable print styles

Hi I have a stylesheet that looks like this: body{ background: #333; } ... @media print { body{ background: #fff; color: #000; font-size: 10pt } ... } the print styles work ok and are applied when you go in print preview mode in your browser. However I have a "print" button on the site, which when pressed, outputs the cu...

What's the best for for print ? (a website page)

so what 'font-family' should I use in a print stylesheet? ...

Is there any javascript function, or even on the jQuery Library that does the same as PHP print_r() ?

Hi all, is there any javascript function or even in the jQuery Library (i suppose yes, because jQuery has JSON Library and is able to serialize) that does the same as PHP print_r() function? I've googled about this but I've found only functions to print mono-dimensional or bi-dimensional arrays. thanks in advance... José Moreira EDIT...

How to print boost::any to a stream?

I have a Map std::map<std::string, boost::any>, which comes from the boost::program_options package. Now I would like to print the content of that map: for(po::variables_map::const_iterator it = vm.begin(); it != vm.end(); ++it) { std::cerr << it->first << ": " << it->second << std::endl; } Unfortunately, that is not possible becau...

Print stylesheet precedence

Hi, I have inherited some legacy code which generates a ton of inline styles. The client requires a print stylesheet which i am not sure will override the inline styles. Assume not. Would there be a way with jQuery to rip out all the inline styles whilst preserving the HTML structure prior to the print CSS being applied? ...

page setup information in html or page created by asp.net

Hi, I have HTML page of few tables created by ASP.NET and when I do the "Page Setup" option before printing the paper size is already selected as "Letter" and I want that option to be in "A4". I changed the size of the table but its not working. Is there any page setup information I can put in HTML so that "Page Setup" option can take...

Increasing Message Size in SQL 2005

I am currently writing a script that intelligently strips a database down into a series of ordered INSERT statements with seeded identity columns that will allow me to place the records into a new database without destroying any keys or relationships. I am using the PRINT function to write the finished insert statements to the message w...

who/what deletes the print job?

Having a strange problem where a print occasionally is not being printed The scenario is that we print barcode labels with a barcode printer (Zebra LP2844). Printer is plugged into the TerminalPC and then shared. Printer->TerminalPC -> Terminal Server. Session on TerminalServer is using Printer as \TerminalPC\Printer When logging prin...

Most versatile font for printing and screen?

I have to choose a font for a web application that produces a printable view of some text (long text, no colors, white background). Example here. Users will read this printable view in these possible ways: From pc\Ereader (after saving it in html) From pc\Ereader (after "printing" it in Pdf, mac users will natively do it) From pape...

How to delete all the jobs from the printer

I am new to the C++ program. How to send the job to the printer and how to delete the jobs from the printer which is yet to be printed using win32 API. ...