Memory leak when printing on macOS app

I detect memory leaks when printing from my Cocoa application. This is my printing code (I replaced application specific code with printing of an NSImageView with an image coming from the system, the leaks are the same): - (IBAction)print:(id)sende...
more »

2017-10-02 14:10 (0) Answers

Looping/printing over a list in R

Let's suppose I have a simple list v <- list(vec1=c(1,2,3), vec2=c(3,4,5, 6)) I would like to loop over this list and perform some function on its element, so that as an output I get both: name of that particular element and output of the fun...
more »

2017-08-28 16:08 (1) Answers

How to send raw data to printer with Java

I am trying to create a simple program that sends a string to a printer to print. This is what my program looks like: import javax.print.Doc; import javax.print.DocFlavor; import javax.print.DocPrintJob; import javax.print.PrintException; import jav...
more »

2017-08-03 23:08 (1) Answers

Verify the number of copies that have prints

I have a table that when printed generates a record in a txt telling the user who printed it, on which machine, which printer, what was the document and when. But I would like to also record the number of copies, but I have no idea how. Code that ta...
more »

2017-07-03 13:07 (0) Answers

Create alarm alert with UIDatePicker (swift3)

My code right now uses a date Picker to place a date and time in a textfield "dptext". Thats all it does right now. I would like to be able to take whatever date and time is in dptext and match with current date of the users device. If both are the s...
more »

2017-06-19 01:06 (0) Answers

Printing files in filename order

I want to print a directory of files in the order of filename ascending (not happening for me - seems to default in file creation order). Code: Dim PrintPDF As New ProcessStartInfo For Each fileName1 In Directory.GetFiles(strALPRMailOutReports, "*....
more »

2017-04-24 17:04 (1) Answers

Having trouble printing to same line

I'm trying to write a code where you enter an integer in the console, and then the integer you entered is shown bigger, made up of letters (like ascii art). So let's say the input is 112. Then the output will be # # ##### ## #...
more »

2017-04-12 11:04 (4) Answers

macOS Printing in Swift

Please note this is not an iOS question. I have an NSView-based app (i.e. not document-based), and I’d like to bolt on a printing subsystem. I can get NSViews in my main controller to print ok. However, I want to have a special view constructed ju...
more »

2017-03-21 16:03 (0) Answers

Printing numpy array in python

Here's a simple code in python. end = np.zeros((11,2)) alpha=0 while(alpha<=1): end[int(10*alpha)] = alpha print(end[int(10*alpha)]) alpha+=0.1 print('') print(end) and output: [ 0. 0.] [ 0.1 0.1] [ 0.2 0.2] [ 0.3 0.3] [ 0.4 ...
more »

2017-03-17 13:03 (2) Answers

VBA excel printing to printer with user form

I have a userform, that when filled out, has a command button at the bottom. When the button is clicked, it copies the data to worksheet2, and then copies the row information into worksheet 4, which is a form, closes the userform.and opens up the wel...
more »

2017-03-12 03:03 (2) Answers

Print email with button

I have seen Google using tags like "view documents" in the inbox. I was wondering if there was a tag or code for printing the email directly. basically what I wish to do is to send a regular email with a "print this email" button. Is this possible? ...
more »

2017-02-09 14:02 (0) Answers

Python - Facebook API, messing around

I was playing around with the facebook API and I found this underneath post that I wanted to repeat. It works almost perfectly, except for the fact the print returns an empty array. The friends variable does contain 440 friends. I read that people c...
more »

2017-02-07 22:02 (0) Answers

Print modal content as full A4 page

I am trying two things : Show content on a modal as how it would appear on an A4 page windows.print() the modal on an A4 page through major browsers Following is my CSS: .page { width: 210mm; min-height: 297mm; padding: 20mm; mar...
more »

2017-01-27 09:01 (2) Answers