23,238 questions
Best practices
0
votes
4
replies
46
views
How to use Android Print Framework in a multithreaded app when PrintedPdfDocument is not thread-safe?
I am implementing custom document printing using Android’s Print Framework.
Using the Android's documentation link as reference: https://developer.android.com/training/printing/custom-docs
The flow I ...
0
votes
0
answers
151
views
Printer selected is not valid
I have installed a new printer (HP Office Jet Pro 9010) and removed all old printers from the list via Windows in the "Printers and Scanners" menu (remove device).
After that, when I try to ...
1
vote
1
answer
89
views
TSC TE210 Printing extra label when print executed by application
I want to print data on a label.
I created a ZPL template file and in my application i read that template file, look up a specific string, replace that string with data from my application and then ...
-3
votes
0
answers
66
views
Print a long string in gdb and make it stick
According to Google in order to do the subject, I should issue
set print elements unlimited
Is this just for the current session?
If not - how can I make this permanent?
0
votes
0
answers
66
views
How to debug Microsoft-Windows-BrokerInfrastructure service
I attempted to declare a print background task (PrintSupportExtensionBackGroundTask) in the appx manifest and register it with the system. However, when the foreground application (i.e., the main ...
Advice
1
vote
1
replies
104
views
What modules exist for simultaneous input and output?
The prompt_toolkit module allows displaying output while simultaneously waiting for input without breaking the input line. Here's an example from the developer:
import asyncio
from prompt_toolkit....
Best practices
1
vote
1
replies
54
views
How can I print very thin lines (e. g. 1/300 dpi) to PDF via Chrome? (Prevent rounding to full css-px)
I would like to print a 1/300 inch wide line with chrome (PDF). Unfortunately, the line is rounded up to a value of a css-pixel.
(It has to be Chrome [not PRINCE XML], due to some advanced features…)
0
votes
0
answers
67
views
Intermittent ESC/POS Printer Issue Using Flask + Gunicorn on Raspberry Pi
I originally had a Raspberry Pi running Raspberry Pi OS (Full Desktop) with Apache serving a Flask app on port 80:
from flask import Flask, request
from escpos.printer import Usb
app = Flask(__name__)...
1
vote
1
answer
79
views
EPSON LQ-350 - Control Continuous Printing via C# code to print line by line and prevent form feed
Use case: to dequeue plain string messages and print them line by line on to tractor feed paper without a form feed happening after each message is printed. Current solution (in code below) prints one ...
0
votes
0
answers
47
views
Detect “new page” for a detail row in DevExpress XtraReport BeforePrint
I'm creating an XtraReport (DevExpress Reporting) that prints a table of people.
Some table cells are merged by tag using:
xrTableCell.ProcessDuplicatesMode = ProcessDuplicatesMode.Tag;
When adjacent ...
0
votes
0
answers
51
views
Epson TM-m30III don't print the £ symbol
The Epson TM-m30III is configured like so in the utility app:
I'm trying to print to the printer in a C# class using the Windows.Devices.PointOfService library. My code:
public async Task ...
0
votes
0
answers
91
views
Not setting paper Size on UI Printer preferences
Unable to set the paper size on printer settings UI with PrintDialogEx, it's always giving setting to letter in mfc. Please let me know for any issue.
PRINTPAGERANGE cRangeBuffer[CXPrintRangeData::...
1
vote
1
answer
87
views
Ubuntu printing PDF with fields does not print filled in fields when filled with Python fillpdf
I'm currently using the fillpdf Python library to fill a template PDF with generated data. I'm running this process on Ubuntu 20.04 server, trying to print to a Kyocera ECOSYS p4060dn.
An example of ...
1
vote
0
answers
137
views
How can I connect to an Epson printer in a .NET 8 class library?
I can connect to an Epson printer and see it in the SetupPOS for OPOS.NET application. I can run a test print and it prints a slip of paper:
I'm attempting to write a .NET 8 C# class library to be ...
1
vote
2
answers
151
views
How to pretty-print a tuple of NumPy scalars?
This NumPy 2.2.6 script:
import numpy as np
a = np.arange(24).reshape(2, 2, 2, 3)
idx = np.unravel_index(np.argmax(a, axis=None), a.shape)
print(idx)
will print:
(np.int64(1), np.int64(1), np.int64(...
0
votes
1
answer
112
views
How to register for the PSA printing background task
I'm working on PSA (Print Support App) development with the following environment: Windows 10 22H2 and Windows 11 SDK 10.0.26100.0.
In the appx manifest, I attempted to register a background task ...
1
vote
0
answers
43
views
printer italic font ascii (no html tags os font styles)
We are using citizen/HP printer to print receipt.
to print Bold characters uses following code
string Bold = Escape + (char) 33; // u001b!
string BoldStart = Bold + (char)8;// u001b!\b
string BoldEnd =...
7
votes
0
answers
179
views
Column level alignment in pandas DataFrame printing
When a pandas DataFrame is printed, the MultiIndex column levels are aligned with the 1st (left most) column instead of the last (right most) column:
import numpy as np
import pandas as pd
df = pd....
0
votes
1
answer
158
views
Google Sheets App Script Page to Print is blank, but the URL is correct - When running the app script
I am trying to create a button that, when clicked, prompts the user to print a specific sheet of information.
The script successfully saves the document as a PDF.
It also manages to open the document ...
0
votes
0
answers
85
views
TSC TTP-225 printer label misaligned only on first print from .NET 8 console app
Description
I have a .NET 8 / C# console application that prints labels using a TSC TTP-225 printer via raw commands. On the first execution, the printed label has incorrect coordinates, causing ...
0
votes
0
answers
68
views
Reasons Printing Via a Socket Connection Would Fail
I am writing a program that involves printing Raw Printer Command Language (PCL) files wrapped in Print Job Language (PJL) commands. I print it via a port 9100 socket connection to the printer using ...
2
votes
1
answer
112
views
How to customize Header and Footer in Firefox Print Menu? [closed]
How can I customize the header and footer in Firefox's print preview?
By default, the page title is displayed at the top left, the URL at the top right, the date at the bottom left, and the page ...
-1
votes
1
answer
175
views
How can I make awk print a text string followed by the entire line piped from a previous command?
I have 8 blocks of code: this, with a different path and site name. My goal is when the first word of the return is something other than "Success:" print the entire line, preceded by the ...
0
votes
1
answer
56
views
Page Totals and Running Totals on Export in Google Sheets
I'm looking to export a logbook of mine to paper. The logbook consists of entries of hours based on dates that continue row by row.
I need to export these entries through printing with each page ...
1
vote
1
answer
59
views
My Printer Macros Print documents on Some Printers and Silently Exit The Job on Others
I have been working on a printer macro that uses Python to paste a letterhead onto a PDF message and then send it to the printer to print. In most of the companies' offices I set it up in, it works ...
0
votes
1
answer
82
views
What css screen width does the browser use when printing a webpage
When no @media print is specified in the CSS file for a webpage, what width does the browser use to determine which CSS applies to the printed page?
When we write our page code, we use a laptop first ...
2
votes
1
answer
53
views
How to localize content property in margin at-rules of paged media?
I'm generating PDFs from a webpage using print styles and want to include localized page numbering (e.g., "Page 1 of 5" in English, "Side 1 av 5" in Norwegian) in the bottom-right ...
0
votes
0
answers
28
views
How to find the margins specified in Windows for a printer form?
In Windows the settings of paper sizes supported by the printers (found under Print Server Properties/Forms) include paper size and margins
However, the class System.Drawing.Printing.Papersize ...
1
vote
2
answers
477
views
Using Pandas' set_option('display.max_columns', None), but the output still splits in blocks
Entering pandas set_option('display.max_columns, None) causes the Python print function to print just some of the columns, then, below that, come back and print the rest of the columns.
I downloaded ...
0
votes
0
answers
83
views
Ghostscript pdf to printer Zebra ZT231-203dpi
I'm new with this type of problems.
I wanted to ask a question about my issue that I have with ghostscript.
Maybe Im doing something worng or not correct.
Im using the ghostscript version 10.05.1 and ...
6
votes
2
answers
284
views
UWP - Print Support App - virtual printer not showing up
I want to create a UWP Printer application to set up a virtual printer that I then can select from windows print dialog following the Print Support App design guide as good as I can.
I expect that at ...
1
vote
1
answer
79
views
Flutter Printing Library (Flutter Web): How can I give a name of my own choice to a PDF shown in the browser print preview?
I am using the printing library in Flutter to show a PDF preview. It causes the default browser dialog to show up, and I have an option to save the PDF to my machine. When I save it to my machine, ...
1
vote
0
answers
186
views
VBA: Referencing and Using PDFCreator / PDFForge
I'm having issues properly referencing PDFCreator 6.0.1 in my VB project (Microsoft Excel). First off, I found out I simply couldn't with the free version, so I've started a free trial with PDFCreator ...
1
vote
0
answers
160
views
Image printing on TSC Printer
I’m trying to print a bitmap image using TSPL commands for a thermal label printer. I have this setup:
I convert a PNG/JPEG image into bitmap format and a byte array. Then I convert that byte array ...
0
votes
0
answers
138
views
Is it possible to use ANSI escape characters for color printing in a ScrolledText widget?
I want to redirect output to a ScrolledText wigget in a tkinter environment, and use the print function to display strings with colors in the widget.
My code prints the same string to the terminal and ...
0
votes
0
answers
53
views
Flutter POS Printer Fails After Android Reboot Unless Printer is Power Cycled
My Flutter POS app works with a Sunmi Android 13 device (dual-screen) and a Possify USB printer. Normally, printing works flawlessly. However, after rebooting the Android device, the printer stops ...
2
votes
1
answer
76
views
excel VBA Printing Files to crazy sizes
I've been attempting to create a macro that creates a pdf for each worksheet beyond a certain sheet, that being sheet 6 onwards, but when it does create a pdf it creates them at different page sizes ...
1
vote
1
answer
96
views
Trying to implment MacOS PMGetPageFormatPaper in FireMonkey
Trying to get (and eventually set) the paper selection at runtime using Delphi FireMonkey for MacOS.
I've substituted what I think are the correct variables and functions into a routine that I have ...
0
votes
0
answers
102
views
Electron JS Print Receipt with electron-pos-printer cuts page too soon and doesn't print properly
I am building a POS system in Electron JS 35.0.1 and Angular 19. I have installed electron-pos-printer 1.3.6. The printer is triggered by a websocket notification from my backend. Currently the ...
0
votes
0
answers
252
views
Bartender Print or Print Preview Does Nothing
on a Windows 10 64bit OS machine I installed printer drivers and tried to print from MS Word and it printed normally.
When I try to print from Bartender (11.4) nothing happens.
When I try print ...
0
votes
0
answers
124
views
Delphi TPrintDialog always uses default printer
In Delphi XE2, I'm using a TAdvStringGrid to print a simple report. Prior to submitting the job, I execute a TPrintDialog to select the target printer, but regardless of which printer I select in the ...
0
votes
1
answer
191
views
In Delphi TPrintDialog, can the printer name and paper size be programmatically set?
Using Delphi VCL.
When the user starts a print job, I display TPrintDialog.
Ideally, the print dialog would show the name of the printer, paper size and orientation that the user last used (which I ...
1
vote
1
answer
134
views
How to set viewport width for print media?
I've been doing some testing with print CSS, and getting wildly different results in different browsers. Considering the example below, Safari prints "This viewport is more than 1200px" ...
0
votes
2
answers
61
views
Hide header and footer when print but keep the default page count
I'm working with a html file and i want to hide the default header and footer that browser auto added in when printing with Ctrl + P, but i want to keep the default page counter of browser
I tried ...
1
vote
1
answer
62
views
CSS - Failed to separate the double-bordered divs inside table during printing in electron JS
This is my HTML structure of table I am printing out.
<body>
<div class="tableFormat">
<button onclick="window.print()">Print</button>
&...
1
vote
0
answers
56
views
C# PrintPreviewControl Ignores Printer Page Settings?
I am attempting to use the PrintPreviewControl to preview a test form using custom page settings
PrintDialog works fine, e.g. set margins and landscape in code PrintDialog prints the page correctly, ...
0
votes
0
answers
98
views
How to fit a simple HTML page for printing on a TSC TTP-244 Pro label printer (40x60mm)?
I am working on printing a simple HTML page using a TSC TTP-244 Pro label printer. The label size is 40mm x 60mm. I have already set the page size correctly in the printer setup, but when I print the ...
0
votes
0
answers
31
views
Hybrid Vue/Capacitor Android app prints Brother label at wrong size (50 × 29 mm instead of 62 × 29 mm)
I have a hybrid Android application built with Vue.js and Capacitor that needs to print small labels on a Brother label printer. Everything else works, but the printed label comes out at 50 mm × 29 mm ...
0
votes
0
answers
102
views
Issue printing PDF file: Loading preview takes forever in Chrome
I want to use the follwing script to print a PDF file directly in my web application:
const blob = new Blob([fullArray], { type: 'application/pdf' });
const url = URL.createObjectURL(blob);
// ...
0
votes
1
answer
69
views
Java:Is there a way to print in the same line that you press enter to do an input?
In Java I want to print after press enter to do an input but in the same line, e.g: 'Username: // User input // Other print'.
Doesn't matter if I need to print in the loop or in the find method, if ...