473,416 Members | 1,660 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,416 software developers and data experts.

Printing issues

To ASP.NET printing experts:

My Asp.net web form needs to print some reports at the client side.
I've been trying to research this and find some confusing and
conflicting information in previous news group answers. Some say
"Crystal Reports", others say "PDF" or "Word", and others say that you
cannot do this at all on client side???

My reports are text documents that are already formatted, contain form
feeds, and positioning controls specifically for certain HP printers.
The users will have the correct printer so that is not a problem. My
issues are:

1. Need to display a page showing reports available and allow user to
select to print one or more of them.

2. Must not require to display the actual report in a web page prior
to printing.

3. Need some way to specify which client side printer the report will
be sent to (in cases where client has multiple printers).

All clients will be running latest version of IE, so compatibility is
not a problem.

From what I have read, IE does not have capability to handle the above
in any straight forward way. Please confirm this.

My thoughts are something along the lines of developing a plug-in for
IE which can handle the printing as I require, and distribute the plug
in to the clients. Is this feasible, and if so can anyone point me to
some documentation or sample code that will help me figure out how to
do this? Or can anyone suggest an alternative way? I have no
experience in programming for IE, but I have written Active X controls
in VC++. My Web forms are written in C#.

Thanks much for your insight.

Russ

Nov 18 '05 #1
4 2165
Hi Russ,

First, your reports are NOT text documents (text documents contain ONLY
text), but that isn't really an issue.

Second, you will definitely need to write an ActiveX control or similar
client-side executable to do what you want. The browser is designed to print
a certain way, and that includes displaying the document. The browser can't
print it if it isn't loaded into the browser, which means viewable.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Russ" <ru****@eticomm.net> wrote in message
news:2u********************************@4ax.com...
To ASP.NET printing experts:

My Asp.net web form needs to print some reports at the client side.
I've been trying to research this and find some confusing and
conflicting information in previous news group answers. Some say
"Crystal Reports", others say "PDF" or "Word", and others say that you
cannot do this at all on client side???

My reports are text documents that are already formatted, contain form
feeds, and positioning controls specifically for certain HP printers.
The users will have the correct printer so that is not a problem. My
issues are:

1. Need to display a page showing reports available and allow user to
select to print one or more of them.

2. Must not require to display the actual report in a web page prior
to printing.

3. Need some way to specify which client side printer the report will
be sent to (in cases where client has multiple printers).

All clients will be running latest version of IE, so compatibility is
not a problem.

From what I have read, IE does not have capability to handle the above
in any straight forward way. Please confirm this.

My thoughts are something along the lines of developing a plug-in for
IE which can handle the printing as I require, and distribute the plug
in to the clients. Is this feasible, and if so can anyone point me to
some documentation or sample code that will help me figure out how to
do this? Or can anyone suggest an alternative way? I have no
experience in programming for IE, but I have written Active X controls
in VC++. My Web forms are written in C#.

Thanks much for your insight.

Russ

Nov 18 '05 #2
On Mon, 30 Aug 2004 15:52:45 -0400, "Kevin Spencer"
<ks******@takempis.com> wrote:
Hi Russ,

First, your reports are NOT text documents (text documents contain ONLY
text), but that isn't really an issue.

Second, you will definitely need to write an ActiveX control or similar
client-side executable to do what you want. The browser is designed to print
a certain way, and that includes displaying the document. The browser can't
print it if it isn't loaded into the browser, which means viewable.
Thanks for the reply Kevin, but I beg to differ with you about Text.
Here is a small sample:
*p180x180YAre your Checks and Reports accurate?*p180x280YAre your Deliveries made on time?


This is clearly text in my book; it's certainly not binary data. The
only non-printing character is the escape char which is shown as a
black box. You might argue that makes it not text. But escape
characters are used all the time in text documents.

Anyway, thanks for veryfying my thoughts on what I will need to do.
And I know that I will need to find an IE newsgroup to ask questions
about writing a control for it. But I also need to know how the
interaction between my web form client code (C# code behind), and the
IE plug-in will work - or will not work...

So, my question remains - can anyone here provide some information on
how to proceed, or supply references to documentation or code
examples?

Thanks, Russ
Nov 18 '05 #3
you will have to write an active/x control.

the control should do everything, display the list ui (this could be passed
as parameters on the page), handle selecting the printer, and download the
selected files and printing them.

-- bruce (sqlwork.com)
"Russ" <ru****@eticomm.net> wrote in message
news:2u********************************@4ax.com...
To ASP.NET printing experts:

My Asp.net web form needs to print some reports at the client side.
I've been trying to research this and find some confusing and
conflicting information in previous news group answers. Some say
"Crystal Reports", others say "PDF" or "Word", and others say that you
cannot do this at all on client side???

My reports are text documents that are already formatted, contain form
feeds, and positioning controls specifically for certain HP printers.
The users will have the correct printer so that is not a problem. My
issues are:

1. Need to display a page showing reports available and allow user to
select to print one or more of them.

2. Must not require to display the actual report in a web page prior
to printing.

3. Need some way to specify which client side printer the report will
be sent to (in cases where client has multiple printers).

All clients will be running latest version of IE, so compatibility is
not a problem.

From what I have read, IE does not have capability to handle the above
in any straight forward way. Please confirm this.

My thoughts are something along the lines of developing a plug-in for
IE which can handle the printing as I require, and distribute the plug
in to the clients. Is this feasible, and if so can anyone point me to
some documentation or sample code that will help me figure out how to
do this? Or can anyone suggest an alternative way? I have no
experience in programming for IE, but I have written Active X controls
in VC++. My Web forms are written in C#.

Thanks much for your insight.

Russ

Nov 18 '05 #4
Thank you Bruce. Now I need to learn how to integrate my control with
IE. A quick look at the Visual Studio help file contents last night
did not turn up anything that looked helpful. Guess it is time for a
google search.

Thanks again, Russ

On Mon, 30 Aug 2004 18:49:37 -0700, "bruce barker"
<no***********@safeco.com> wrote:
you will have to write an active/x control.

the control should do everything, display the list ui (this could be passed
as parameters on the page), handle selecting the printer, and download the
selected files and printing them.

-- bruce (sqlwork.com)
"Russ" <ru****@eticomm.net> wrote in message
news:2u********************************@4ax.com.. .
To ASP.NET printing experts:

My Asp.net web form needs to print some reports at the client side.
I've been trying to research this and find some confusing and
conflicting information in previous news group answers. Some say
"Crystal Reports", others say "PDF" or "Word", and others say that you
cannot do this at all on client side???

My reports are text documents that are already formatted, contain form
feeds, and positioning controls specifically for certain HP printers.
The users will have the correct printer so that is not a problem. My
issues are:

1. Need to display a page showing reports available and allow user to
select to print one or more of them.

2. Must not require to display the actual report in a web page prior
to printing.

3. Need some way to specify which client side printer the report will
be sent to (in cases where client has multiple printers).

All clients will be running latest version of IE, so compatibility is
not a problem.

From what I have read, IE does not have capability to handle the above
in any straight forward way. Please confirm this.

My thoughts are something along the lines of developing a plug-in for
IE which can handle the printing as I require, and distribute the plug
in to the clients. Is this feasible, and if so can anyone point me to
some documentation or sample code that will help me figure out how to
do this? Or can anyone suggest an alternative way? I have no
experience in programming for IE, but I have written Active X controls
in VC++. My Web forms are written in C#.

Thanks much for your insight.

Russ


Nov 18 '05 #5

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

Similar topics

12
by: memmmmm | last post by:
So I have a client program written in java and it needs to be able to print pdfs. By print pdfs I dont mean print to a pdf file but rather print a pdf file to a real printer. I have tried pdfgo and...
1
by: DCraig | last post by:
I'm having problems printing to a line printer from both Crystal Reports and SQL Server reporting services using dotnet. When I try and print a report from an application with Crystal I get the...
7
by: Dennis C. Drumm | last post by:
I was wondering if someone could suggest were/how I could get started with setting up printing of a collection of text that includes tables from a grid and other supporting information about the...
5
by: Senthil Kumar | last post by:
hi Group, Iam developing one Component in c#.It will load any kind of image either from Local machine or URL.Finally I do have options for printing and preview. While printing Iam facing the...
3
by: Mika M | last post by:
Hi all! I have made an application for printing simple barcode labels using PrintDocument object, and it's working fine. Barcode printer that I use is attached to the computer, and this...
12
by: Alex Clark | last post by:
Greetings, (.NET 2.0, WinXP Pro/Server 2003, IE6 with latest service packs). I've decided to take advantage of the layout characteristics of HTML documents to simplify my printing tasks, but...
3
by: Richard MSL | last post by:
I have an application that prints documents that it creates. It uses what I believe is a standard .NET way of doing so, like this: PrintDocument pd = new PrintDocument(); pd.PrintPage += new...
3
by: =?Utf-8?B?QnJpYW4gQ29vaw==?= | last post by:
Is there a way to force printing in black and white programatically?
0
by: Linda Liu[MSFT] | last post by:
Hi Al, Based on my understanding, you have an application which prints something to printers. The problem is that the font of "OCR A Extended" cannot be printed properly on some of printers. If...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.