printing

How to set printer properties using vb.net

只愿长相守 提交于 2019-12-13 08:47:51
问题 I am using EDRAW to browse a Microsoft Word and can be Print , Preview , ETC.. . And I am planning to add some features to it. I am adding 2 buttons for Print Short (8.5 by 11 inches) and Print Long (8.5 by 13 inches) and I have 2 printers for long and short. How to set the properties of the printers in each button?. If I click button short it will print short using printer 1 same as the button long but it is in printer 2. I am following the code in the Link provided above. Anyone has an idea

Try to print frame '*' and diagonal in python

﹥>﹥吖頭↗ 提交于 2019-12-13 08:35:34
问题 I try to print '*' in frame and in diagonal . This is what I did: x=10 y=10 def print_frame(n, m, c): print c * m for i in range(1, n - 1): print c ,' '*(n-2-i),c, ' '*i , c , c print c * m print_frame(10, 10, '*') This is the result: ********** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ********** 回答1: As I specified in my comment, only square matrices have diagonals. But even for those, things are "a bit" more complex than they seem: I could have done it in a single

Facing issue with printing £ symbol with star micronics SDK?

时光怂恿深爱的人放手 提交于 2019-12-13 08:28:18
问题 I have star micronics mPOP 2-inch bluetooth printer and I have integrated star micronics iOS SDK into my application. I can't print '£' symbol with star micronics sdk. Anyone knows what is the code to print £ symbol? I found the similar question for other symbol but it doesn't meet my requirement. URL : how to print € symbol with star micronics SDK? Thanks in advance. 回答1: Finally got the solution with following code. Code to print '£' symbol. [commands appendBytes:"\x1b\x1d\x74\x04" length

Accessing elements in a list of arrays in python

[亡魂溺海] 提交于 2019-12-13 07:48:08
问题 c = [] Indices = [] list_ = iter([0.10,0.16,0.25,0.50,0.75,0.90]) for i in list_: b = around((total_*i), decimals = 2) t = where(fcol == find_nearest(fcol,b)) c.append(b) indices.append(t) print t #gives: (array([485]),) (array([523]),) (array([576]),) (array([733]),) (array([963]),) (array([1254]),) when I print the indices list outside for loop it looks like: print indices #gives: [(array([485]),), (array([523]),), (array([576]),), (array([733]),), (array([963]),), (array([1254]),)] While

Delphi double-side printer

空扰寡人 提交于 2019-12-13 07:42:37
问题 I have a PVC card printer which is able to print on both sides of a card at the same time. the cards are 8.4mm X 5.4mm. the printer is a Nisca PR5350. http://www.teamnisca.com/products/5350/ I have the following code. the problem is that although I select "double-side" in the printer setting dialog, the printer prints each of the pages on separate cards. I searched a bit in the internet and found that I have to set the printer mode to full-duplex in my code. but I don't know how to do it

How do I change the file print setting on Excel to use VBA to print several pages when printing the workbook

 ̄綄美尐妖づ 提交于 2019-12-13 07:36:26
问题 I would like to change the file print setting in Excel to go directly to VBA and print some of the 26 worksheets while printing the workbook. Most of the active worksheets should print, but a few of the worksheets should not print. The workbook is a template and the number of active and printed worksheets will change with each new workbook created. Lastly, should the VBA code go in the "ThisWorkbook" section? 回答1: I would use something like Sub PrintSheets () Dim Wks1 as Worksheet: set Wks1

Create a local port for a printer

放肆的年华 提交于 2019-12-13 07:31:05
问题 I am trying to make a installer for a printer driver. for that i need to create a port. for network printers I could create a port by using 'prnport.vbs'. cscript c:\Windows\System32\Printing_Admin_Scripts\en-US\prnport.vbs -a -r [PORTNAME] -h [IPADDRESS] -o raw But this script cannot create a local ports. I sow this post but it seems not work for Win7. Can anyone direct me to a cmd or C# solution to create a local port. 回答1: Found a solution from here. And it works for me. I put this as a

Is there a way to enable media print css to a normal view?

自作多情 提交于 2019-12-13 07:25:41
问题 I developed a website with a bunch of print media queries to align stuff when printing the page. when you go to the print mode on web browser, the queries works great. but i want apply/remove those @media print queries on a regular web page without having to go into the printing mode.(by clicking a button) is there any way to achieve this? 回答1: In addition to Boldewyn's answer, if you have @media print styles inside <style> tags, you can replace them with @media screen : Array.prototype

Print value of javascript in php

两盒软妹~` 提交于 2019-12-13 07:20:28
问题 I need to code something like that to print value of javascript in php <?php $url = ( Value of <script>document.write(top.location.href);</script> ); echo ''.$url.''; ?> Update: I need this to break frames, block proxy websites and bots so $_SERVER not useful Please can anyone help me ? Thank you 回答1: No, that's not possible because PHP (server-side) is run before javascript (client side) code. You can do the opposite though. You will have to resort to one of these: AJAX Hidden Field Query

Print Job Accepting and routing Software

北城余情 提交于 2019-12-13 07:09:35
问题 I want to create a software which can accept Print Jobs from other computers, and then route those print jobs to PCs on LAN with printers attached. How it's going to happen -> 1- When that software called "Virtual Printer" is installed on a computer "X", Windows should think that it is a print driver/attached printer to that computer. 2- Then administrator of that PC goes to "Devices and Printers" in windows and select the "Virtual Printer", right click and view properties and select the