473,324 Members | 2,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

C# service printing

Tom
Does anyone know if the following kb article applies to the .NET
framework 1.1?

http://support.microsoft.com/?kbid=324565

It states: 'Any service that is designed to print must directly use the
Win32 APIs, instead of the .NET Framework Printing classes.'.... 'This
behaviour is by design'

Is this true? Can we not safely use the C# printing API when running
as a service?

I am creating a console app that will run as a service. A major
function of this app will create and send print documents to a local
printer. It is written in C# and uses the PrintDocument class.

Has anybody successfully written something like this using the C#
printing API.

Nov 17 '05 #1
4 5127
APPLIES TO
. Microsoft .NET Framework Software Development Kit 1.0 Service Pack 2
Regards,
--
Angel J. Hernández M.
MCP - MCAD - MCSD - MCDBA
http://groups.msn.com/desarrolladoresmiranda
http://www.consein.com
"Tom" <to********@yahoo.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
Does anyone know if the following kb article applies to the .NET
framework 1.1?

http://support.microsoft.com/?kbid=324565

It states: 'Any service that is designed to print must directly use the
Win32 APIs, instead of the .NET Framework Printing classes.'.... 'This
behaviour is by design'

Is this true? Can we not safely use the C# printing API when running
as a service?

I am creating a console app that will run as a service. A major
function of this app will create and send print documents to a local
printer. It is written in C# and uses the PrintDocument class.

Has anybody successfully written something like this using the C#
printing API.

Nov 17 '05 #2
Tom
Hi... Thanks for replying.

Does this mean that if I am using .NET SDK 1.1 or greater, I will be
okay?

My concern is because the kb article stated that the "behaviour is by
design".

Nov 17 '05 #3
Yes...

Regards,

Angel

"Tom" <to********@yahoo.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Hi... Thanks for replying.

Does this mean that if I am using .NET SDK 1.1 or greater, I will be
okay?

My concern is because the kb article stated that the "behaviour is by
design".

Nov 17 '05 #4

"Tom" <to********@yahoo.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
Does anyone know if the following kb article applies to the .NET
framework 1.1?

http://support.microsoft.com/?kbid=324565

It states: 'Any service that is designed to print must directly use the
Win32 APIs, instead of the .NET Framework Printing classes.'.... 'This
behaviour is by design'

Is this true? Can we not safely use the C# printing API when running
as a service?

I am creating a console app that will run as a service. A major
function of this app will create and send print documents to a local
printer. It is written in C# and uses the PrintDocument class.

Has anybody successfully written something like this using the C#
printing API.


The .NET Framework Printing classes are not designed nor supported in
Windows Services or any other Service like applications like asp, asp.net
etc...
The applies to in this KB article is misleading ast it makes you think it
only applies to Microsoft .NET Framework Software Development Kit 1.0
Service Pack 2 (which doesn't even exists, there is a SP2 for the framework
but not for the SDK), but it applies to all .NET versions, the use of the
System.Drawing.Printing classes is not supported from services.
Willy.
Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Selden McCabe | last post by:
I have a web service that is supposed to print some files. I've set up the virtual directory security to use a domain user account, and added the printer to the server logged in as that account. ...
3
by: Chris | last post by:
Hi, I need to create a windows service that will poll a database every 10 sec and print processed orders to a printer. Where can I find info on this? Thanks
1
by: hinsbr | last post by:
Hello, I am trying to learn about web services. I was able to get a working VS 2005 web service and VS 2005 web service consumer application to communicate. The service would return the passed...
0
by: Glenn Venzke | last post by:
I'm trying to use system.diagnostics.process to print a pdf from ASP.NET 2.0 webservice (using a network printer). It works fine in an executable, but fails in asp.net. What happens is that the...
1
by: Glenn Venzke | last post by:
I'm trying to use system.diagnostics.process to print a pdf from ASP.NET 2.0 webservice (using a network printer). It works fine in an executable, but fails in asp.net. What happens is that the...
1
by: Frank | last post by:
Hello to all. I'm trying to print a Crystal Report report from a Web Service. If I try to print in a local printer it works (printer installed in localhost), but if I try to print in a network...
0
by: M. Bruil | last post by:
I've created a project which runs as Windows service (Visual Studio 2005). Part of this project is printing (Crystal reports) and sending email messages with file attachments. The service is...
7
by: TClancey | last post by:
Hi all. I hope someone can give me a few pointers on 'best practice' for an app I'm about to start. I'm writing a small and simple label design application, users will define text fields on the...
0
by: =?Utf-8?B?S290aQ==?= | last post by:
Hi, Windows service designed in .net 2005 ahving problems to print an excel sheet using the worksheetobject.printout() method. This problem is there only when the service run under the system...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shćllîpôpď 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.