printing

How to print stickers easily (in colors)

Hello, I need to develop a small delphi app that prints stickers (text + graphics) to label printer such as DYMO one by one. What is best way to do this, is there e.g. some custom API for DYMO printers or how to print color graphics to small stickers? ...

How can I print a full sized A4 page?

I need to print 24 labels (37x70mm) on a A4 page. I generate html for a table with size of an A4 page. I tried to print the page from a browser but no success: the page doesn't start from the top although I set top margin to 0 (for html page and for browser too). I tried to generate a pdf file with abcpdf, half succes here, the page s...

iTextSharp & Windows

Is there a way to convert from iTextSharp Document class to System.Drawing.Printing.PrintDocument in c# so i can give print facilities to user? thanks ...

Print certain tabs

How do I print only certain tabs in an Excel file. ...

How do I print a partially transparent image to a PDF Canvas using Delphi?

My program needs to output a (fairly complex) form to the printer, including several images. I’m currently doing this using Delphi (2006)’s Printer.Canvas, after selecting a PDF printer (PDF995). This works like a treat. However, I’m now running into a problem: there’s one partially transparent image that needs to be placed on top of ...

printing to pdf

The existing system has many reports . Using a free pdf printer like dopdf or cutepdf the user can open the report , choose the pdf printer , type in the filename and save the report as a pdf file.This seems a bit tedious It would be nice to have the report directly saved as a pdf file just on click of a button. Unfortunately the report...

how can I tell if someone printed from printPreview?

Using printPreview As New PrintPreviewDialog() ' Dim x As New Printing.PrintDocument() ' AddHandler x.PrintPage, AddressOf PrintData printPreview.Document = Me.CurrentDocument If ShowPrinterSetup Then Dim x As New PrintDialog() x.Document = CurrentDocument x.ShowDialog(A...

Invoice printout

I am working on a application in .net.I want to do all calculation and then to print all the information of the selected items on a given page of the company and then to take the print of that page and also to save the same page in DB and send invoice to the client through email in .pdf. Please suggest.? ...

How to print TPanel contents?

I have TPanel. On this Panel there is an TImage descendant , few other panels with controls, etc. In fact, picture contains some diagram, while additional panels with labels are created during runtime to provide user with additional info. Recently I was told, that it would be nice, if it was possible to print this panel, and have it on t...

How do I specify font height at different orientations?

The common way to create a font with GDI is to use the desired point size and the target device's vertical resolution (DPI) like this: LOGFONT lf = {0}; lf.lfHeight = -MulDiv(point_size, GetDeviceCaps(hdc, LOGPIXELSY), 72); ... HFONT hfont = CreateFontIndirect(&lf); Assuming the default MM_TEXT mapping mode, this converts point_size i...

Excel hangs when printing the first time from ASP.NET webservice

We are using Excel to convert SpreatSheetML to XLS in an ASP.NET webservice. Moreover, if the user checks the right checkboxes, we spawn a thread that uses Excel to print the spreadsheet. Recently, we have deployed the app in a new environment, and then we started having problems: the first time someone tries to print, Excel seems to h...

PHP echo performance

I'm always using an output variable in PHP where I gather all the content before I echo it. Then I read somewhere (I don't remember where, though) that you get best performance if you split the output variable into packets and then echo each packet instead of the whole output variable. How is it really? ...

ProcessStartInfo print verb does not exist for .tif images

We have a piece of software that attempts to print .tif images using a ProcessStartInfo object. It sets the Verb property to "print" and the FileName property to the path of the image. It then sets the UseShellExecute property to true and executes the Process.Start() method. However, nothing happens. I created a small test program to...

How to determine the default printer using WPF?

To retrieve the list of printers I use: new LocalPrintServer().GetPrintQueues(new[] { EnumeratedPrintQueueTypes.Local, EnumeratedPrintQueueTypes.Connections }) How do I determine, which of the printers is the default printer? Note: the System.Printing.dll assembly is used. ...

Display printer-specific configuration dialog

Having a PrintTicket how to display the printer-specific configuration dialog? Note: I don't mean the PrintDialog from the System.Windows.Controls namespace. ...

Python's print vs stderr

Are there any specific advantages or disadvantages to either? ...

Server-side logging when someone prints a web page

At my work, we're interested in tracking how often people print our web pages. (If a lot of people are doing it, we'll probably put more focus on making the print view nicer.) Obviously if we put a "Print" button on the page, we can log when people click on that, but if users just use the "File" menu and choose "Print," we have no way ...

Printed CDC appears tiny on paper

When I print the CDC for a report control that I've created it appears tiny (less than 1 square inch on paper). How can I get the report to be printed to occupy the entire page ? Or in other words, how can I make the entire report to appear in one printed page. CPrintDialog printDialog(FALSE); printDialog.DoModal(); CDC dc...

Is there a way to dump a stack trace without throwing an exception in java?

I am thinking of creating a debug tool for my Java application. I am wondering if it is possible to get a stack trace, just like Exception.printStackTrace() but without actually throwing an exception? My goal is to in any given method, dump a stack to see who the method caller is. Any replies or thoughts concerning this would be reall...

Automatically Print Image from Website

A coworker and I were having a discussion about what is and isn't possible within the browser. Then a question came up that neither of us could answer with certainty. Can you create a webpage such that when you navigate to it, it engages the client-side printer and attempts to print a document. For instance, whenever you visit my pers...