Questions tagged [system.printing]

80 questions
21
votes
4 answers

Display special characters using System.out.println

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…
Amanni
  • 1,924
  • 6
  • 31
  • 51
14
votes
2 answers

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

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…
lopezbertoni
  • 3,551
  • 3
  • 37
  • 53
10
votes
3 answers

Printing from ASP.NET to a network printer

I need to send documents to a network printer (\myserver\myprinter). I'm using the System.Printing classes to print, and it works fine when it's from a Windows Service, but from an ASP.NET app, it's only able to print to local printers, not network…
Prabhu
  • 12,995
  • 33
  • 127
  • 210
6
votes
2 answers

Convert PaperKind to PageMediaSizeName

I manually converted PaperKind to PageMediaSizeName like this: static PageMediaSizeName ConvertPaperKindToPageMediaSize(PaperKind paperKind) { switch (paperKind) { case PaperKind.Custom: return…
Mo0gles
  • 10,517
  • 2
  • 21
  • 15
6
votes
2 answers

System.Printing.PrintQueue QueueStatus not updating

Is there a way to update the print queue status information contained in the PrintQueue object? I've tried calling Refresh on the PrintQueue object but that doesn't really do anything. For instance, I've turned off the printer and the Control Panel…
Mike Dinescu
  • 54,171
  • 16
  • 118
  • 151
6
votes
2 answers

Network printers and the PrintServer.GetPrintQueues method

I have a feeling that the PrintServer.GetPrintQueues method does not return the network printers. If this one is true, what other choices do i have?
OrElse
  • 9,709
  • 39
  • 140
  • 253
5
votes
3 answers

PrintableArea in C# - Bug?

I am having an issue with PageSettings.PrintableArea's width and height values. Width, Height, and Size properties claim to "get or set" the values. Also, the inflate() function claims to change the size based on values passed in. However, all of…
Brandi
  • 1,549
  • 4
  • 24
  • 32
4
votes
1 answer

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

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…
Ted
  • 41
  • 2
4
votes
1 answer

C# Batch plot application (PrintServer & PrintQueue issues)

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…
Kaiwa
  • 171
  • 1
  • 6
4
votes
1 answer

Printing with custom margins in .NET

I am printing labels through a Dymo printer using vb.Net and the standard .NET printing routines, my app has to support any type of label printer though. Because the dymo driver does not have accessible margins in control panel, and control panel is…
Molloch
  • 2,261
  • 4
  • 29
  • 48
4
votes
0 answers

How to know if user has access rights(like print, manage documents) on network printer in C#

I want to know if the user has access rights on network printer or not. My scenario is i am using system.printing library to get the printer information, but when i try to create object Printqueue then the following statement never completed its…
Sagar
  • 399
  • 4
  • 11
4
votes
2 answers

get print queue details for a shared printer

Am trying to print a document on a shared printer; i need to get print queue details.The following code always gets queue from 'Microsoft XPS Document' as Number of jobs=0.But my default printer is configured as 'HP LaserJet P1505n' …
Murali Uppangala
  • 884
  • 6
  • 22
  • 49
3
votes
2 answers

hide header and footer on text files when direct print using win32 and python

I am stuck here when printing directly to text files using this code win32api.ShellExecute (0, "print", "datafile.txt", None, ".", 0) it always print the header "datafile.txt" and footer "Page1". I want to hide or remove this when printing on…
kuslahne
  • 720
  • 4
  • 10
  • 21
3
votes
3 answers

Need help with modifying PrintTickets through XML

Doing some work on controlling printing via the System.Printing framework (main classes are PrintQueue, PrintTicket and PrinterCapabilities). Like with most stuff I've been working on lately, there's damn little information about it. I'm hoping to…
user1228
3
votes
1 answer

How to check printer Status in C#?

I'm fairly new to printing in C# and am trying to find the current status of a specific printer (if it's offline, if it's out of paper, etc) before printing. LocalPrintServer server = new LocalPrintServer(); PrintQueue printQueue =…
Roger
  • 97
  • 2
  • 7
1
2 3 4 5 6