473,669 Members | 2,414 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 2184
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
5823
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
9575
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 same error, I can load the report up to the report server and view it with IE, then print it from...
7
2489
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, would a good approach be to build an rich text document somehow with the proper formatting and then...
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 issues my further work is getting hampered .
3
6294
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
6363
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 WebBrowser control. I've looked into using some CSS
3
4600
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 = PrintDialog1.ShowDialog();
3
5049
by: =?Utf-8?B?QnJpYW4gQ29vaw==?= | last post by:
Is there a way to force printing in black and white programatically?
0
1387
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 reproduce the problem on my side. The font was printed properly in my test. The model of the printer I...
0
8465
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8383
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8658
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7407
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6210
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5682
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4206
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4384
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1787
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.