printing

Is there a way to set the default page size when printing in IE7?

I recently convinced a customer to upgrade to Internet Explorer 7 but now she is having an issue printing. When printing emails from her webmail in IE6 they would print at 75% and fit on a single page. Now with IE7 they added the "Shirnk to Fit" option which is the default. This doesn't work as expected and makes her previously 1 page em...

How can I customise the browser's output for print/print preview?

I'm trying to dynamically hide certain DIV's when a print (or print preview) occurs from the browser. I can easily differentiate statically by having two style sheets, one for normal and one for print media: But I need to go one step further and hide some elements dynamically when the print style sheet becomes active during a print b...

Print text in Oracle SQL Developer SQL Worksheet window

I am using Oracle SQL (in SQLDeveloper, using the SQL Worksheet). I would like to print a statement before my select, such as PRINT 'Querying Table1'; SELECT * from Table1; What do I use to Print / show text output? It's not Print, because that gives me the error: Bind Variable "'Table1'" is NOT DECLARED. DBMS_OUTPUT.PUT_LINE is an...

Can I determine when a default printer was set on windows

We are trying to trace the time a windows default printer was changed and by who or what. Any ideas? ...

Is there a way to easily print the pages from an ASP.NET site?

My PM just stopped by and he wanted a copy of all of our pages... Is there a way to do this for all pages without having to go to each one? ...

How do I print a Word document in Java without opening it?

I have a J2EE based web application, in which on clicking a button I need to create a word file from Java. I want to be able to sent the printing command to this file, so that the file is being printed without the user having to open the document and do it manually. Could anyone please tell me if this is possible and if so how to procee...

Print JPEG File Using JSP

Hello all, Is there a JSP script I can run to point to a JPEG file on the local filesystem to be printed to the Windows default printer? Thanks. Edit: I have the file on my server already. How would I load the file into a browser to run window.print()? Thanks ...

Printing to a specific printer from a web app

If I have a printer hooked directly to a pc (a kiosk with a printer), how would I go about creating the ability for a web page (.net web app) to print a jpg to the kiosks printer with no user intervention other than clicking a button on the page? ...

Feed paper on POS Printer C#

I've been trying to programatically feed the paper on a pos printer (Epson TM-U220D). The problem I have is that the last line of the document don't get printed, instead, it is printed as the first line of the next document printed. I tried POS for .NET sending the "ESC|flF" command, also tried to send the raw esc/pos command using the s...

How to detect the printer model?

Hi! When I plug my HP Laserjet 3015, Windows detects the correct model and then tries to install the appropriate drivers. How can I detect the model of connected printer(s)? I don't want to use the list of installed printers because a Zebra printer can be installed with a Generic/Text only driver. I'm a Delphi and C# programmer, so an...

How do I search text then print the result?

I am searching for "o" then prints all lines with "o". Any suggestion/code I must apply? data.txt: j,o,b: a,b,d: o,l,e: f,a,r: e,x,o: desired output: j,o,b: o,l,e: e,x,o: ...

centering text in common lisp

I have a string that I would like to print . Is it possible to center it when printing ? ...

Send document to printer with C#

I've been given a requirement for an internal web application to send documents to a printer transparently. The idea would be that the user can select their nearest printer, and the web application would send their print jobs to the printer they selected. The first printer we have to roll out against are Canons, so my questions is: Ho...

How to print only parts of a page?

I am trying to hide some divs before the user prints this giant form, then display the divs again afterward. Thus I want to ignore the rest of the page, and only print the form itself. Sure I could open a separate page when the user clicks the print button. The only thing is that the form is really long and it would be quite tedious to ...

Printing in VB.Net/C# Forms Application -- Layout Designer?

I maintain a vb.net forms application that prints various labels to label printers. (Label printers are just like any printer, just smaller print area/lower resolution) The system uses a legacy printing method that's supported in the printer hardware, but has been out of general use for over a decade. I'm adding logic to print from ...

How can Print Preview be called from Javascript?

I have a page that is supposed to launch the Print Preview page onload. I found this: var OLECMDID = 7; /* OLECMDID values: * 6 - print * 7 - print preview * 1 - open window * 4 - Save As */ var PROMPT = 1; // 2 DONTPROMPTUSER var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A...

How to print faster in Excel VBA?

The print functionality of Excel (in VBA) is extremely slow, I hoping someone has a way of speeding the printing up (without using the Excel 4 Macro trick). Here's how I do it now: Application.ScreenUpdating = False With ActiveSheet.PageSetup -various setup statements which I've already minimized- End With ...

How to flush output of Python print?

I would like to force Python's print function to output to the screen. ...

Format/parse a string in Vb

I am working with some input that is in the possible forms $1,200 20 cents/ inch $10 Is there a way to parse these to numbers in VB? Also printing these numbers? EDIT: Regular expressions would be great. EDIT: VB 6 in particular ...

How do I do advanced printing from a web application?

I have been researching options for printing report-like data via a web application. Some options that are viable are writing PDFs, Excel XML, dumping HTML to Excel, or using a tool like activePDF webGrabber. I suppose the question is, what are some solution that give control over print from a browser (IE in my case) yet doesn't have a ...