473,573 Members | 4,448 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2182
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.c om...
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******@takem pis.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:
*p180x180YA re your Checks and Reports accurate?*p180 x280YAre 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.c om...
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
5820
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 jpedal but both have their small issues. Suggestions?
1
9563
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 error message "the data area passed to a system call is too small", and nothing else. With SSRS when I try to print the report from the IDE I get the...
7
2480
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 grid's contents. If you could just point me at the classes that I should consider and some very broad guidelines that would be great. For instances,...
5
2612
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 problem as below.And iam unable to figure it out.Do any one come out with good solution is appreciated .And it is a must for me .Because of this...
3
6280
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 computer has drivers installed for this printer, and this printer is shared for the network. Question 1:
12
6341
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 of course it's thrown up a whole host of new issues... I'm generating a multi page printable document in HTML from my app, and displaying it in a...
3
4586
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 PrintPageEventHandler (this.pd_PrintPage); PrintDialog PrintDialog1 = new PrintDialog(); PrintDialog1.Document = pd; DialogResult result =...
3
5045
by: =?Utf-8?B?QnJpYW4gQ29vaw==?= | last post by:
Is there a way to force printing in black and white programatically?
0
1385
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 I'm off base, please feel free to let me know. I performed a test printing the font of "OCR A Extended" to a printer in my office but didn't...
0
7978
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8167
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8028
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6349
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5550
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5252
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3692
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2164
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
987
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.