printing

Is there a way to print a web page via a SWF?

青春壹個敷衍的年華 提交于 2019-12-25 06:37:54
问题 In my web app, I would like to print a web page via a real, physical printer using Flash. I want to do this so that typical page headers added by the browser (eg. the URL and "Page x of y") do not get added to the printout. Perhaps I could generate a PDF and pass it to the SWF, or perhaps I could just send raw HTML ann CSS to the SWF, and then I could call some .print() method via Javascript against the SWF. So, 1) is this possible? and 2) is there a library (on GitHub perhaps) somewhere that

Supporting special characters in printing

你离开我真会死。 提交于 2019-12-25 06:04:06
问题 A more accurate question is Here I have this dbf database file containing several names and information of employees... and my java application reads rows from this database and prepare some papers (like work certificate...). And where i am from we use special characters in names since it's francophone country. Like for example "Hédia" or "fayçal".. The problem here is that the database contains names with special characters as mentioned, and when printing the papers in question, the

Free and easy Qt 5.1.0 or Qt 4.8.5 reporting engine [closed]

你。 提交于 2019-12-25 05:38:13
问题 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 3 years ago . i got hard to print report using NCReport library so there an other esay solution for printing i always got errors when i want to compiler my programme using qt 4.8.5 and ncreport engine her is the error C:\test\build-Ncreport-Qt_4_8_5_MinGW_32_bit-Debug\debug\mainwindow.o:-1: In function `MainWindow': C:\test

Free and easy Qt 5.1.0 or Qt 4.8.5 reporting engine [closed]

岁酱吖の 提交于 2019-12-25 05:38:05
问题 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 3 years ago . i got hard to print report using NCReport library so there an other esay solution for printing i always got errors when i want to compiler my programme using qt 4.8.5 and ncreport engine her is the error C:\test\build-Ncreport-Qt_4_8_5_MinGW_32_bit-Debug\debug\mainwindow.o:-1: In function `MainWindow': C:\test

How to print all frames on the page in one file

混江龙づ霸主 提交于 2019-12-25 05:35:32
问题 I am using frameset tag and i want to print all frames inside the frame set <html> <frameset rows="10%,*"> <frame name="top_frame" src="top-frame.htm" frameborder="1" noresize="0" scrolling="no"> <frameset cols="20%,*"> <frame name="left_frame" src="left-frame.htm" frameborder="0" noresize="0" scrolling="no"> <frame name="right_frame" src="right-frame.htm" frameborder="0" noresize="0" scrolling="auto"> </frameset> </frameset> </html> I used parent.window.focus();parent.print(); it works in

Issues automating printer driver update (printer settings) and printer preferences in Win7, using a PS,cmd,vbs,etc script?

你说的曾经没有我的故事 提交于 2019-12-25 05:34:15
问题 WMI can do it, but I have an issue, PCs are on, but logged off. If I try to run: wmic /node:%strIP% printer where DeviceID="lp1" set DriverName="Lexmark Universal v2" It fails with a message about a "generic failure". I RDP in and then run the same command from my end, and it works. Powershell version I am using is older, so it does not have some of the printer cmdlets, and updating PS is currently out of the question. Is there a way to remotely log someone in, without actually having to RDP

Google Map not shown when printing

蹲街弑〆低调 提交于 2019-12-25 05:34:15
问题 I was trying to implement a easy route planning with Google maps API for an internal site. I came up with the following: http://jsfiddle.net/Hn7U8/6/ (If your window is too small, you might not see the map) Full html code: <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <title>Map</title> <style> html, body, #map-canvas{ height: 100%; margin: 0px; padding: 0px } </style> <style> #directions-panel { height: 100%; float:

How can I use SetJob in win32print?

心不动则不痛 提交于 2019-12-25 05:19:56
问题 I want to clear or delete print jobs using Python. But how can I get JobID ? win32print.SetJob(hPrinter, JobID , Level , JobInfo , Command) How could I run this code? jobs = [] for p in win32print.EnumPrinters(win32print.PRINTER_ENUM_LOCAL,None, 1): flags, desc, name, comment = p pHandle = win32print.OpenPrinter(name) print = list(win32print.EnumJobs(pHandle, 0, -1, 1)) jobs.extend(print) SetJob(pHandle, id, 1,JOB_CONTROL_DELETE) #where should i get id from? win32print.ClosePrinter(pHandle)

Error with print(): “Output argument ”varargout“ (and maybe others) not assigned”

丶灬走出姿态 提交于 2019-12-25 05:13:55
问题 I have been trying to write a simple script in MATLAB that plots an image, asks to user if they want to print it to a file, and (if yes) does this. However, I have met a strange error with the print() function. Here is my code: plot(X, Y, 'red'); choice = input('Do you want to print to file this 2D image ? [y/n] ', 'y'); if(choice=='Y' || choice=='y') { print(hFig, '-dpng', strcat(filename, '.png')); } If running, it stops inside the if statement with the error: Error in ==> print at 161 err

Preventing multiple objects from being printed

我只是一个虾纸丫 提交于 2019-12-25 05:06:54
问题 For my final CS180 project we have been given the task of creating a program that randomly generates some perishable and nonperishable items that would be found in a grocery cart and then printing a receipt for a customer. The problem I am running into is finding a way to check the frequency of an item being created and preventing the item from printing multiple times on a receipt. For example, if someone buys 5 peaches the I want the output to be Peach $.99 X 5, total $4.95, instead of