printing

Save Printer Setup Parameters

孤街浪徒 提交于 2020-01-03 02:03:07
问题 I am writing a program using Delphi 2006 and storing data in XML files and a Firebird database. I create reports using either FastReports, Excel or QuickPDF. I allow my users to package several reports together and be directed to a destination of their choice, whether it is a PDF file, a printer, the screen, or email. I want my users to be able to configure their printer choices for the reports they send to printers. To do this, I will use the printer dialog to choose a printer and set the

Convert HTML to .eps format for illustrator

随声附和 提交于 2020-01-02 20:26:13
问题 I have a letterhead of a company made in HTML, Where the user fills in his Company Details and rest of the information. When the user clicks on the SUMBMIT button that particular form should convert it to .eps format and then PRINT. Does any one have any clue of how its done. 回答1: I have no idea how to convert html form to .eps format for illustrator. But since you also mentioned that you want to print that form to printer you can do something like this - When user clicks on print button call

IOS: How to print using an IPad

穿精又带淫゛_ 提交于 2020-01-02 19:47:40
问题 What is the mechanism that allows iPads to print? I need to print bills from software running on our iPads. The information most likely includes formatter text. Are there any packages for iOS that would allow me to generate reports that can easily be sent to a printer? 回答1: Here is a decent example: AirPrint Tutorial 来源: https://stackoverflow.com/questions/6466776/ios-how-to-print-using-an-ipad

How to fit QTextDocument to printer's full page width

孤者浪人 提交于 2020-01-02 19:36:48
问题 After an earlier stackoverflow discussion, I'm trying to generate a pdf with text and images using Qt and QTextDocument . Here is my code as an MCVE: #include <QApplication> #include <QIcon> #include <QDesktopServices> #include <QWidget> #include <QPrinter> #include <QPainter> #include <QPagedPaintDevice> #include <QUrl> #include <QFile> #include <QTextDocument> #include <sstream> #include <memory> #include <assert.h> std::shared_ptr<QPrinter> getPrinter() { std::shared_ptr<QPrinter> printer(

SAS: Print to Log AND View Live Log Window Simultaneously

六月ゝ 毕业季﹏ 提交于 2020-01-02 18:33:09
问题 I understand that PROC PRINTTO LOG="C:TEMP\SAS LOG.TXT" outputs the entire contents of a SAS program log, but this also essentially leaves the log window blank while the program is running and I am unable to view the 'live' progress of the SAS program so to speak. I want to ultimately save the log for further review, but I also want to keep an eye on things as they're happening live when I'm running tests, etc. -- is there a way to print the log and keep the contents of the log live as they

How to print a wpf window without showing it on the screen?

半腔热情 提交于 2020-01-02 09:18:05
问题 I have a requirement where I need to print a complete form without showing it on screen. What I need is to : Initialize the form Print it All without showing on the screen. Any suggestions please? 回答1: You can do this using PrintDialog.PrintVisual method. var capabilities = printDlg.PrintQueue.GetPrintCapabilities(printDlg.PrintTicket); //get scale of the print wrt to screen of WPF visual var scale = Math.Min(capabilities.PageImageableArea.ExtentWidth / this.ActualWidth, capabilities

Print on DYMO label printer from website

廉价感情. 提交于 2020-01-02 07:32:48
问题 How to print on DYMO label printer throuhg website? I have build the following file as described here but not succeeded need more help to print remotely. <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>Print a Label</title> <script src = "http://labelwriter.com/software/dls/sdk/js/DYMO.Label.Framework.latest.js" type="text/javascript" charset="UTF-8"> </script> <script src = "PrintLabel.js" type="text/javascript"

C++ print value of a pointer

十年热恋 提交于 2020-01-02 06:21:51
问题 I have an array of double pointers, but every time I try do print one of the values the address gets printed. How do I print the actual value? cout << arr[i] ? cout << &arr[i] ? they both print the address Does anyone know? 回答1: If it's really an array of (initialized) double pointers, i.e.: double *arr[] = ... // Initialize individual values all you need is: cout << *arr[i]; 回答2: cout << *(arr[i]) will print the value. 回答3: cout << *(arr[i]); 回答4: If "arr" is declared as double* arr[..];

java printing - setting size of the border

本小妞迷上赌 提交于 2020-01-02 05:30:29
问题 I try to set the size to zero or remove the border of a printed document in java. It always has a standard white border. Here is my function printing a JPanel and some components: public void printComponent(){ PrinterJob pj = PrinterJob.getPrinterJob(); pj.setJobName(" Print Component "); pj.setPrintable (new Printable() { @Override public int print(Graphics pg, PageFormat pf, int pageNum) throws PrinterException { if (pageNum > 0){ return Printable.NO_SUCH_PAGE; } Graphics2D g2 = (Graphics2D

Printing html ignores CSS stylesheets

陌路散爱 提交于 2020-01-02 02:17:07
问题 I have a very simple html page with a table element. The document is styled with css. When I print the page it looks like there are no stylesheets at all. Wrong font, everything is wrong. What's the problem here? Do I have to create a special css only for printing? In my case it would be the same.. Is that really necessary? 回答1: Without the link to the page, I can only offer little advice. Make sure the link to the stylesheet in the header is correct. And it should look something like this: