printing

Using print instead of sprintf with %s and % and multiple string substitution arguments

In the following ruby code, the output becomes: "x y" x = "x %s" y = "y" z = "z" print x % y %z The %z is ignored. I want the output to be "x y z". To understand the possibilities and limitations of the syntax of Ruby, I want to use only the print command and the %s and % flags. I know how to do this using sprintf but I want to kno...

Printing to LPT1 in C#

How do you print directly to a dot matrix printer in C# using file LPT1. I did it on C++ with fopen, but I don't know how to do it in c#. thank you very much ...

Dot matrix fast printing with precise layout in Java

I'd like to know what practical way of constructing reports for EPSON Dot Matrix printers exists in Java. At this time, I'm having the LX300+II model to play with. I know that there are basically two ways of using this printer: As a typewriter, outputting directly raw ASCII data to the parallel port Graphical printing, with graphical ...

Sending fax with .NET

I'm trying to send faxes with a .NET (C#) program using Crystal Reports and Unimessage Pro (or any other fax program). My problem is that Unimessage Pro (and other fax programs) uses printer fonts for the fax commands. Since .NET doesn't support printer fonts the fax commands in the report are converted to Courier New. The result of thi...

Is there a good reason to use "printf" instead of "print" in java?

I haven't had the chance to take any serious low-level programming courses in school. (I know I really should get going on learning the "behind-the-scenes" to be a better programmer.) I appreciate the conveniences of Java, including the ability to stick anything into a System.out.print statement. However, is there any reason why you woul...

overload print python

Am i able to overload the print function? and call the normal function? What i want to do is after a specific line i want print to call my print which will call the normal print and write a copy to file. Also i dont know how to overload print. I dont know how to do variable length arguments. i'll look it up soon but http://stackoverflo...

Printing window with GtkTreeView in C?

I have some reports in my application that are represented as window with GtkTreeView widget reading data from GtkListStore model. These reports are much like Excel tables with usual stuff: column names, some header and footer text, maybe small image, ... What should I use/read/learn to be able to print this, having in mind that I am a ...

Partial printing in Jasper Report

Please solve my problem. I'm using Jasper Report in struts framework, My problem is could not be stretch the field in some cases, since the bracket is appear without space in the text field, then the column is not stretch. I already choose the isStretchWithOverflow="true" option, but no changes are made. Please help me. ...

Is possible send print commands by WIFI to POS mobile printer?

I'm building a POS (point-of-sale) solution and for a specific scenario I want to know if any of the POS mobile printers like http://pos.epson.com/products/prodsPMOP.htm can driven by WIFI connection. I mean, is possible program it similar to a web server (ie:like SEND>START) so become innecesary have drivers? ...

Transferring Print Jobs Between Printers

We are assigned to develop an application using C# that can transfer print jobs between printers. I have looked on the Windows API, and System.Printing namespace but I can't find a class or function that can do this. Is there a free library out there that is suitable for this? How will you do this using .Net or the Win32 API? ...

C# - Printing a .NET DataGridView

I am fairly new to .NET and C#, but I have a DataGridView that I would like to print. What would be the best way to go about doing so? Thanks in advance! ...

C# How to print multiple pictureboxes

I have 2 pictureboxes: pb1 and pb2. Pb1 can be dragged and dropped, pb2 cannot. Pb1 can also be resized. What i want is, when pb1 is inside pb2, both (pb1 and pb2) must be printed. And pb1 must keep it's sizes. When a look at the prinpreview, is see that pb1 has it's original sizes. So, how can i print these 2 printboxes and make sure...

Windows utility to print and archive from a file drop

Now, I could go ahead and write this using FileSystemWatcher etc, but before I start coding - I wonder if there is a better option that I can re-use (rather than re-invent). From my web-server, I want to drop files (to be printed) into a network share as a queue (ordering not hugely critical). Ideally, a windows service (or other client...

How do I print from Emacs on Win32?

I'm running Emacs 23.0.60.1, downloaded from here, on Windows XP, with a network printer configured as the default printer. How do I setup Emacs to easily print buffer contents? The documentation of the patched Emacs version for Win32 mentions "quick and easy" printing, but the "Quick Print" menu entry does not appear and the regular e...

How do I capture the Print Event in PrintPreviewDialog

I am inheriting from the PrintPreviwDialog class in c#. I want to override the Print button on the toolbar, so that I can give the option of printer selection. Unfortunately it looks like the toolbar control that has the print button is private, and I don't see any events that I can override. There must be some solution to getting th...

Need The Excel Header On Each Print Page To Be The First Row Of The Table

I need the First Row in an Excel Spreadsheet to Print as the header on all pages. ...

How to print the line that matches my text using find in linux?

Hello I am using this command to find text within files in linux find ./ -type f -exec grep -l "Text To Find" {} \; The command works fine, but I would like to print automatically the line that contains the text or if it is possible the firs two lines above the text and the two lines behind the text. Also another suggestions to find ...

Setting up internet printing from win2003

who can help me get this up and running. i already installed it through the control panel, add windows component, but i cant access my printers ...

How do I print a check?

I need to write a .NET library for printing checks. Nothing fancy: you pass in the data, out comes the printed check. What's the best way to do this? Constraints: The format of the check. ...

wyswyg html form printing

I am starting this web app project (asp.net mvc) It's a document-based system, such that nearly each web page is a model of an official printed form (and users sometimes should be able to produce prints). I am wondering how much cost and time saving it will be if the form could be a wyswyg page that will serve both electronic and paper...