printing

Visual Print Design for .NET [closed]

主宰稳场 提交于 2019-12-14 03:56:35
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I have a project that I'm working on and I need to be able to print out ID cards from the program. Are there any products out there that are reasonably priced so I can design a document for print and use it in .NET? I'm trying to avoid using System.Drawing from having to do it manually because when the company I

PDFView printWithInfo:autoRotate: fails

我的梦境 提交于 2019-12-14 03:53:35
问题 I'm trying to print a PDFDocument that I am constructing from a series of images. In case it matters, I'm doing all of this from within a Mozilla plugin. I create the PDFDocument, and put it into a PDFView, then I call [printView printWithInfo: [NSPrintInfo sharedPrintInfo] autoRotate: YES]; The print dialog comes up (as a separate window, instead of panel. I assume that that comes from being inside a mozilla window, so I wasn't too worried about it. The dialog shows my document, and I can

How I can get printer name from device and printers IShellFolder?

旧巷老猫 提交于 2019-12-14 03:42:50
问题 I'm getting system printers icons using code (only way I found - is to use IShellFolder ), now I want to connect them with InstalledPrinters, but problem is - I can`t find way to find real printer name (such as "\ServerName\PrinterName" ), with is different to display name of content of "Devices and printers" shell folder and only correct to use with PrinterSettings. The code I have use to retrive printer icons and printer captions in "Devices and printers" shell folder: Shell32.IShellFolder

C# Code 128 does not print out

情到浓时终转凉″ 提交于 2019-12-14 03:34:38
问题 The original question i had ask was in C# Saving a form to image without anti aliasing which i am trying to print out Code128 to a printer. As screen capture degrades the quality of the print, i had decided to write the code directly for printing instead. All images and text could be printed out properly except Code128 Below are my codes for printing Code128. The content had already been generated properly. SizeF sizeLoginID128 = e.Graphics.MeasureString(this.strUserID128, font1DText); e

Linked List Print Error Using Time Functions

不想你离开。 提交于 2019-12-14 03:27:35
问题 The program crashes when printing the timestamp. I believe the error is located in the function void flightRec_PrflightRecData(flightRecRead* thisFlight) which is designed to do three things: declare the time struct flighttime, flighttime is in POSIX format. Localtime converts the POSIX time to a human-readable time. The fourth specifier prints the converted time using asctime which prints it in Www Mmm dd hh:mm:ss yyyy format. The error is tb != NULL and shows other information specifying

Print special characters

我们两清 提交于 2019-12-14 03:14:33
问题 How can I print out the character "%" in the print function. The following line fails. print "The result is %s out of %s i.e. %d %" % (nominator, denominator, percentage) 回答1: You must escape the % by doing %% . So in your example, do: print "The result is %s out of %s i.e. %d %%" % (nominator, denominator, percentage) # ^ extra % to escape the one after 回答2: Consider using format: >>> n=23.2 >>> d=1550 >>> "The result is {:.2f} out of {:.2f} i.e. {:.2%}".format(n,d,n/d) 'The result is 23.20

I made this program and it prints one extra thing

∥☆過路亽.° 提交于 2019-12-14 03:09:20
问题 Program uses a while loop menu in the main to request for the user command: public static void main(String[] args)throws Exception { Boolean meow = true; while(meow) { System.out.println("\n 1. Show all records.\n" + " 2. Delete the current record.\n" + " 3. Change the first name in the current record.\n" + " 4. Change the last name in the current record.\n" + " 5. Add a new record.\n" + " 6. Change the phone number in the current record.\n" + " 7. Add a deposit to the current balance in the

Programmatically print an XPS file to a physical printer

馋奶兔 提交于 2019-12-14 02:22:51
问题 I have a C# WinForms application. A user uploads an .XPS file and specifies some printer settings (number of copies, paper tray, etc). The program needs to programmatically print the document with these settings. That is, there can be no user interaction to print. I can come close with the System.Printing AddJob method. (https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/how-to-programmatically-print-xps-files). However, I can't define specific settings here, like paper source,

Print Register in Assembly x86

六眼飞鱼酱① 提交于 2019-12-14 01:27:32
问题 Followed a couple of online documents and yet when I try to print the number I have stored in the register %ecx nothing happens. Could this be because I'm essentially performing calculations and then trying to print while in a loop? mov $48, %ecx #Convert to ascii mov $1, %edx #Print Byte add %eax, %ecx mov $4, %eax #Output To Console mov $1, %ebx #File Descriptor - Standardout int $0x80 #Call the Kernel 回答1: The write system call expects a pointer to the data to be printed. As far as I can

Ocaml - polymorphic print and type losing

匆匆过客 提交于 2019-12-14 00:29:55
问题 There is series of functions like print_int, print_endline and Printf in OCaml. I can't do something like: let n = 10 in print n;; (* And I haven't to change `print` in case type of `n` changed *) That is polymorphic print like in Java, C#, Python and others. Instead, we have C-like with type explicitly defined by programmer. So I think that OCaml losing type information during compilation and doesn't have it at runtime, right? And this is the reason why we need mli files also? EDIT: I'm