printing

How would one implement bash-like tab completion?

I'm trying to determine how the system prints characters to standard input -- that is, how it prints characters which the user can delete and which are considered input if the user hits "Enter." I happen to be using C, but I would be very surprised if the solution were language-dependent. Thanks for any insights! : D ...

Printing in C#/.NET, scaling on a whole page

I am wondering how to do the following ( couldn't get google to help me here ): I got a .jpg file of about 250px*250px in scale.. I want this image on a DIN-A4 page as often as possible I need an "overlay" for every image on the page with a unique code ( lets say a unique barcode for example ) How would i start here? I have really no...

Is there a way to determine in .Net (or WMI) if a print driver will print to PCL or PostScript format when printing to a file?

Is there a way to determine in .Net (or WMI) if a print driver will print to PCL or PostScript or XPS format when printing to a file? ...

How can I print to a variable instead of a file, in Perl?

How can I print to a variable with Perl? I've been working on a program for a while which logs its iterative progress in a highly verbose fashion... print $loghandle $some_message; However, I'd like to also selectively print some of the messages to a different file. Naturally, I could sprinkle the code with... print $loghandle $some...

Python: How to print a class or objects of class using print()?

I am learning the ropes in Python. When I try to print an object of class Foobar using the print() function, I get an output like this: <__main__.Foobar instance at 0x7ff2a18c> Is there a way I can set the printing behaviour (or the string representation) of a class and its objects? For instance, when I call print() on a class object,...

Q: Convert an image form j2me to PCL3 command

Hi all I have spent 1 week of my life trying to print image that i take from graphic object to HP Officejet H470 which support PCL3. I try multi ways but nothing till now. My problem was to print arabic character to this printer but i couldn't becuase the don't support arabic font as i know, so i write arabic character to the graphic of ...

How to add a new button to PrintPreviewDialog in C#?

I have a program where I can switch between different layouts in my print doument (a4, a5 or a6 sized graphics drawings and whatnot. Print document is always a4 sized). I can show this document in a PrintPreviewDialog but I have to manually specify in the code before hand which layout I want to see. I want a new button added to the Prin...

Acessing Printers and Faxes folder on a network machine in asp.net

Hello, From my vb.net code I am trying to set a printer name for the crystal reports printing rpt.PrintOptions.PrinterName="\johnKing\HP LaserJet 2200 Series PCL" But when I go to windows-->Start--> Run and enter \JohnKing It is showing me Printers and Faxes folder and Scheduled task folder. But when I open Printers and Faxes it will...

Margin while printing html page

Hello everyone. I am using a separate style-sheet for printing. Is it possible to set right and left margin in the style-sheet which set the print margin (i.e. margin on paper). Thanks. ...

Problems with printing in WPF Borderless capability not being set in ticket

Ok, I've got a reaaally simple bit of code here which is meant to set the borderless property of the printer to .. well, borderless! So I try and set it, but no matter how much I try, the imagable area is never the whole width of the page, and therefore I cannot size the picture correctly for the paper before printing. I've tried with...

Possible to force printer setup (paper size) in javascript?

I have a need to print pages from a webap on to 8x4 index cards. IE doesn't save print settings from one print to the next, so is there a way to programatically force the print set up? ...

is it possible to have a link/button that directly prints a document via website?

is it possible to have a link/button that directly prints a document via website? ...

to remove href attr from all the anchor tags using Reg Ex

i am trying to remove href attr from all the anchor tags using Reg Ex,for print page. Although i need the text value in anchors. ...

html print a very wide page on several A4 sheets

Hello all, I have a page with a wide (say around 3000px) horizontal graph which is normally scrollable. In the printing version I render the entire graph, (I actually have a separate JAvascript/HTML code for the printing version), so it takes lets say three A4 widths (landscape) on the screen. In this situtation I see the browser (FF3...

How do you Print in WPF (VB)

I have a WPF form that has a toolbar then a StackPanel under it with several controls inside of the StackPanel. One of the buttons on the toolbar is to print. I need to know how to print in a WPF, and more specifically how to print just what is inside of the stackpanel. I am using Visual Basic.NET ...

Uniform way to print office documents programatically

Using Microsoft interOp objects, there is a way to programmatically print word or Excel document. Is there any simpler and uniform way to programatically print all types of documents (.txt, .doc, .xls, .pdf..) ? ...

lots of text within pre tag is causing a page break

I have a pre tag within my page that contains quite a bit of text. When I preview this page in the browser it looks fine. But when I go to print it, everything within the pre tag is printed on a new page. It is like the pre tag is causing a page break. I am using css to word wrap the text of the pre tag. Below is a sample. If you pre...

Easy pretty printing of floats in python?

I have a list of floats. If I simply print it, it shows up like this: [9.0, 0.052999999999999999, 0.032575399999999997, 0.010892799999999999, 0.055702500000000002, 0.079330300000000006] I could use print "%.2f", but that would require a for loop to traverse the list, which I consider to be ugly. I believe that there must be a better s...

How do I set a specific printer for a report?

I want to print a customized report to a specific printer, bypassing the print dialog. The printer is to be selected by the user for each report template. Right now I have the code to print the report showing the print dialog, or directly to the default printer. I need to change it in order to print directly to a printer which is not n...

Browser related: css print style sheets - stopping client download overhead with @media

Hi Hopefully I can explain this well and hopefully I'm thinking the right way :) My question is, If I have a print style sheet that has a couple of classes that "displays" a background image, is there a way to make the browser download the images at the point of printing or do you have to preload the images. I have mixed results doing...