system.printing

How to print flex spark datagrid by using the mx PrintDataGrid? Or is there other way to achieve this without using the mx PrintDataGrid?

ⅰ亾dé卋堺 提交于 2019-12-23 12:15:40
问题 this is my first time to ask here since my question is not answerable in the adobe flex forum. So at least finally, I've come to manage it here. Well, Flex 4.5+ is I guess everyone is working on nowadays so I asked this question since I haven't yet find working both spark datagrid and the mx printdatagrid components together . What I'm trying to achieve is to print all the data inside my spark datagrid. So when I do my research, we use the PrintJob or the FlexPrintJob classes. It works fine

Display special characters using System.out.println

岁酱吖の 提交于 2019-12-17 06:46:39
问题 I'm having trouble sending or displaying text with special characters from my webservice to my database. On my eclipse I have set the character encoding to UTF-8 but it still doesn't let me display the characters. For example a simple print like the code below String test ="привет"; System.out.println(test); OR String test ="привет"; String query = "insert into communication (`test`) VALUES ('"+ test +"'); PreparedStatement preparedStmt1 = con.prepareStatement(query); preparedStmt1

C# - Enumerating network printers on remote machine

。_饼干妹妹 提交于 2019-12-13 02:27:07
问题 I am writing an application to check if a network printer from a print server is connected to a remote machine, but having trouble with the remote part... I'm using System.Printing and passing in the remote hostname/IP address through the 'compID' variable. The problem I'm having is that the code always returns the networked printers on my LOCAL machine rather than the remote machine: EnumeratedPrintQueueTypes[] compEnumerationFlags = { EnumeratedPrintQueueTypes.Connections }; PrintServer

PrintQueueStatus returns None, printer is already turned off

与世无争的帅哥 提交于 2019-12-12 20:49:32
问题 I already turned off the printer, and my code still returns None Here is my code try { printServer.Refresh(); PrintQueue printQueue = new PrintQueue(printServer, cmbPrinters.Text.Trim()); printQueue.Refresh(); if (printQueue.QueueStatus == PrintQueueStatus.Offline) { MessageBox.Show("Offline"); } else if (printQueue.QueueStatus == PrintQueueStatus.None) { MessageBox.Show("None"); } } catch (Exception ex) { MessageBox.Show(ex.Message); } I am expecting that it should return offline because I

Exception occurred while creating the PrintServer object. Win32 error: The printer name is invalid

寵の児 提交于 2019-12-11 04:36:53
问题 Hi, I'm getting this exception when I try to create printserver object. Here is my code: PrintServer printServer = new PrintServer(@"\\" + printServerName); PrintQueue printQueue = printServer.GetPrintQueue(printerName); I'm trying to get the printers from another machine which is running on Windows Server 2012. Same code works fine if I try to access some OS based system. Any help will be appreciated. Thanks in advance. 回答1: I found the answer for this, and i know many others are also

How to get System.Printing.PrintServer.GetPrintQueues to return the print queue list from remote server?

て烟熏妆下的殇ゞ 提交于 2019-12-06 14:17:57
问题 Problem I'm trying to get a list of print queues available on a remote server . Ultimately this will need to be performed from ASP.NET, but for now I'd settle for a console application to work. When I create an instance of the System.Printing.PrintServer class using the path to a remote server I am able to get basic information about the Print Server. But when I call the GetPrintQueues method I only get queues that are defined on the local box . No matter what I use for the remote device.

C# Batch plot application (PrintServer & PrintQueue issues)

蓝咒 提交于 2019-12-06 05:27:24
问题 I have a problem that I need help with. For my current project I need to make a Batch Plot application. This application will have around ~2000 AutoCAD drawings that it will need to print. The application needs 5 printers, 1 for each format, going from A4 to A0. No problems yet so far. Now we all understand that we can not queue 2000 drawings simultaneously without some kind of trouble. I've did my research online and found methods to look at the current printer Queue. Using PrintServer and

How to get System.Printing.PrintServer.GetPrintQueues to return the print queue list from remote server?

冷暖自知 提交于 2019-12-04 18:53:23
Problem I'm trying to get a list of print queues available on a remote server . Ultimately this will need to be performed from ASP.NET, but for now I'd settle for a console application to work. When I create an instance of the System.Printing.PrintServer class using the path to a remote server I am able to get basic information about the Print Server. But when I call the GetPrintQueues method I only get queues that are defined on the local box . No matter what I use for the remote device. Code Imports System.Printing Module Module1 Sub Main() ListPrintQueues("\\local") ListPrintQueues("\

C# Batch plot application (PrintServer & PrintQueue issues)

让人想犯罪 __ 提交于 2019-12-04 09:55:31
I have a problem that I need help with. For my current project I need to make a Batch Plot application. This application will have around ~2000 AutoCAD drawings that it will need to print. The application needs 5 printers, 1 for each format, going from A4 to A0. No problems yet so far. Now we all understand that we can not queue 2000 drawings simultaneously without some kind of trouble. I've did my research online and found methods to look at the current printer Queue. Using PrintServer and PrintQueue. Here is where the problems begin. Firstly I am not able to find the network printers that I

Is there a way to check if a printing process was successful?

放肆的年华 提交于 2019-12-03 11:44:49
问题 I have an application where I need to print a ticket. Each ticket must be unique. The application is windows forms and written entirely in c#. For our application we're using Samsung ML- 2525 laser monochromatic printers. The flow is basically the following, the operator picks a product/ticket (which is unique) and then it presses a button that does 2 things: Connects to a database and updates the product as used Prints the ticket (this is done using System.Drawing and GDI+) For some reason,