Questions tagged [printing]

Printing is a process for reproducing text and images, typically with ink or toner, on paper. For programming questions related to 3D-printing, please, use [3d-printing] tag.

Printing is a process for reproducing text and images. Both ink and toner are commonly used, with the latter being used for laser printers.

It can also refer to printing text to stdout on a terminal, e.g., the printf function in C or the print construct in PHP.

For programming questions related to 3D-printing, general questions can be asked on https://3dprinting.stackexchange.com/.

23212 questions
5
votes
2 answers

How to open the print preview dialog when printing an iframe in Firefox?

Unlike just about every other major browser, in Firefox, window.print opens the print dialog instead of the print preview dialog. This issue was recognized by Firefox devs a long time ago, and, rather than "fix" it, they decided to implement a…
Matthew Herbst
  • 29,477
  • 23
  • 85
  • 128
5
votes
1 answer

Android Printing directly to network printer?

Hii in my application I want to send my data directly to my network printer from my Android phone to print it. How can I do that? I also want to provide specifications like layout, copies, page range, etc. How can I detect my printers directly from…
Harinder
  • 11,776
  • 16
  • 70
  • 126
5
votes
1 answer

Angular flex layout stopped working after print dialog

I have created an angular application using angular material and angular flex layout. The problem with the app is that whenever I press Ctrl + P in chrome, all of the menus in the navbar gets disappeared and the menu button which should appear only…
kaushik
  • 2,308
  • 6
  • 35
  • 50
5
votes
7 answers

Fastest way to print a certain number of characters to stdout in C

I have to print a certain number of blank spaces to stdout, but this number is not fixed. I'm using putchar(), but I'm not sure if this is fast. What is the fastest way to print a certain number of characters to stdout in C? Also, I cannot use…
Tianyang Li
  • 1,755
  • 5
  • 26
  • 42
5
votes
3 answers

With flutter printing package, how do I print a PDF from a URL?

I am using the printing package in flutter: https://pub.dev/packages/printing The documentation shows how to create PDFs from scratch. I already have a PDF at a URL. Is there a way to retrieve it and print it with the package? Or is there an…
user11015833
  • 414
  • 4
  • 17
5
votes
3 answers

C# - Templated Printing from Object(s)

I'm in need of a solution to print or export (pdf/doc) from C#. I want to be able to design a template with place holders, bind an object (or xml) to this template, and get out a finished document. I'm not really sure if this is a reporting…
anonymous
  • 6,825
  • 8
  • 47
  • 60
5
votes
7 answers

Alternate Statements of System.out.println()

Can anybody please help me by providing different ways of printing other than System.out.println() statement in Java?
hari
  • 1,297
  • 5
  • 17
  • 36
5
votes
5 answers

Why python don't print after a time.sleep()?

I'm programming in python for almost 2 years and I found a really weird thing when watching some old code. import random, sys, time try: while True: print(' ', str(random.randint(100,999)), end='') time.sleep(0.01) except: …
user187624
  • 71
  • 1
  • 1
  • 8
5
votes
2 answers

How to print .docx silently with c#

I want to print a .docx file silently and being able to choose the tray of the printer. At first I tried to print the .docx with the Microsoft.Office.Interop.Word but word is opening... After I converted the .docx file to an image and printed it…
xqlimax
  • 115
  • 3
  • 7
5
votes
1 answer

IE8 Bug with @media print? Table border disappears on pages greater than 1

I have a page with an HTML table. When I use print preview in IE8, the table borders do not print starting on the 2nd page. So this is one and the same table, but it has a page break, and on the 2nd page there are no borders. It seems to me that…
cdonner
  • 37,019
  • 22
  • 105
  • 153
5
votes
1 answer

Print paper size and content inset

I'm using following code to print HTML content containing text and images. if (![UIPrintInteractionController isPrintingAvailable]) { UIAlertView *alertView = [[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Printer Availability…
Mustafa
  • 20,504
  • 42
  • 146
  • 209
5
votes
2 answers

Print/Copy LogCat output with the color highlighting?

LogCat output in its color highlighting is very informative and helpful in isolating problems. Sometimes, however, I need to print it to paper (or copy/paste it to an OpenOffice.org Writer document) with the colors! Is there a way to print LogCat…
ef2011
  • 10,431
  • 12
  • 49
  • 67
5
votes
2 answers

Print a list of heights with "#" symbol

today I bring you an apparently simple question, that it's not so simple as it seems(for me at least)! Imagine I have the following list of integers: num = [3,1,1,2] And I want to print "$" corresponding with the height i.e: & & & & & &…
José Rodrigues
  • 467
  • 3
  • 12
5
votes
2 answers

Python: Printing a list without the brackets and single quotes?

I have a list full of IP addresses. I would like to iterate through the list and print each IP address. When I try doing this: def printList(theList): for item in theList: print item And the output looks like…
Dan
  • 451
  • 2
  • 5
  • 4
5
votes
3 answers

String format printing with python3: print from unpacked array *some* of the time

In my question a few minutes ago, I asked about how to print using python's str.format printing, when the strings are stored in an array. Then answer was clearly unpack the list, like this: # note that I had to play with the whitespace because the…
philshem
  • 24,761
  • 8
  • 61
  • 127
1 2 3
99
100