472,800 Members | 1,539 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Direct printing using non-default printer (IE only)

Hello,

I realise this is not a pure Javascript question, and that VBscript is
probably involved at some point, though not as much as I fear. If you
opened this item looking for a pute Javascript question, I'm sorry.

For an IE6 intranet application I'm running into some problems
regarding printing screens from the browser. The specs dictate these
requirements:

1. Print dialog should not be shown (depending on type of screen).
2. Default Internet Explorer 6 headers and footers to be turned off or
content changed.
3. Direct printing to both default printer and non-default printer
(latter to be identified by name).

The site can be placed in the 'trusted sites' zone. I do have some
influence over the client PC as well, as it's all running within an
internal enviroment.

Using the WebControl ActiveX, I've achieved the first requirement, but
I can't seem to be able to control the variables for items 2 and 3.
Apart from Javascript, I used to work with Java a lot, but I'm not
much of a VB(S)/WSH programmer. So preferably I'd use javascript, at
least as a wrapper for the ActiveX methods.

Any tips?

Regards,
Gerb
Jul 23 '05 #1
2 12385
"gerb"
<g_*****@na.het.apestaartje.alle.tekst.verwijderen .tot.aan.hotmail.com>
wrote in message news:09********************************@4ax.com...
Hello,

I realise this is not a pure Javascript question, and that VBscript is
probably involved at some point, though not as much as I fear. If you
opened this item looking for a pute Javascript question, I'm sorry.

For an IE6 intranet application I'm running into some problems
regarding printing screens from the browser. The specs dictate these
requirements:

1. Print dialog should not be shown (depending on type of screen).
2. Default Internet Explorer 6 headers and footers to be turned off or
content changed.
3. Direct printing to both default printer and non-default printer
(latter to be identified by name).

The site can be placed in the 'trusted sites' zone. I do have some
influence over the client PC as well, as it's all running within an
internal enviroment.

Using the WebControl ActiveX, I've achieved the first requirement, but
I can't seem to be able to control the variables for items 2 and 3.
Apart from Javascript, I used to work with Java a lot, but I'm not
much of a VB(S)/WSH programmer. So preferably I'd use javascript, at
least as a wrapper for the ActiveX methods.

Any tips?

Regards,
Gerb


Can you use a third-party control?

http://www.meadroid.com/scriptx/

Absolute control over document printing operations from client and server
computers running Microsoft's Internet Explorer browser.

Support for all versions of Internet Explorer from IE 4.01 SP1 to IE 6.0 SP2
on Microsoft operating systems from Windows 95 to Windows XP SP2.

Enables the secure application of custom Print Templates to browser-based
content in IE 5.5 and above.

An estimated millions of hits are made each working day on ScriptX-enabled
documents.

A near-100% record of successful deployment.

A basic subset of ScriptX printing functionality is available at no charge.

Global deployment costs start at $1 per day regardless of user numbers.

Acknowledged as the de facto web-technology printing utility.

Download the current version of ScriptX here.
Jul 23 '05 #2
Other (similar) option is www.htmlprinting.com

gerb wrote:
Hello,

I realise this is not a pure Javascript question, and that VBscript is probably involved at some point, though not as much as I fear. If you
opened this item looking for a pute Javascript question, I'm sorry.

For an IE6 intranet application I'm running into some problems
regarding printing screens from the browser. The specs dictate these
requirements:

1. Print dialog should not be shown (depending on type of screen).
2. Default Internet Explorer 6 headers and footers to be turned off or content changed.
3. Direct printing to both default printer and non-default printer
(latter to be identified by name).

The site can be placed in the 'trusted sites' zone. I do have some
influence over the client PC as well, as it's all running within an
internal enviroment.

Using the WebControl ActiveX, I've achieved the first requirement, but I can't seem to be able to control the variables for items 2 and 3.
Apart from Javascript, I used to work with Java a lot, but I'm not
much of a VB(S)/WSH programmer. So preferably I'd use javascript, at
least as a wrapper for the ActiveX methods.

Any tips?

Regards,
Gerb


Jul 23 '05 #3

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

Similar topics

2
by: Marc Champagne | last post by:
Hi folks, I wish to print on pre-printed continuous forms on a dot matrix printer. My initial intent was to access to printer directly (in raw mode, somehow) in order to send whatever is...
0
by: yulyos | last post by:
Hi, printing to the printer with vb.net from right to left how do i print to the printer from right to left with vb.net example in vb6: Printer.RightToLeft = True
1
by: notregister | last post by:
does anyone know how to do broadcast printing using vb.net? or do u know of any other resources that do so ? thanks...
3
by: Srinu | last post by:
How do i hide status bar in firefox using java script only Plz help me iam new to this group.
0
by: Sandipan | last post by:
hi...im new to asp.net. i ve to do a project where the i ve to perform client side printing using asp.net. moreover i cant use the windows.print() function for this as per the requirement of the...
6
by: =?Utf-8?B?QnJhc3NpY2FOaWdyYQ==?= | last post by:
Greetings, I have a web application that prints a form using PrintDocument on the server. Currently it is set up to print to the default printer (on the server). My users would like to be...
3
by: RajeshNamal | last post by:
Developing asp.net/C# web site, When I testing in my PC Crystal report Direct printing .but when i was Host in my web server it doesn't work. when i preview in crystal report viewer and Print...
17
by: msmjsuarez | last post by:
Hello, I need help... How to automatically insert data to mysql database without submit button using php? Is there a way on this? thanks a lot.
2
by: msmjsuarez | last post by:
Hello. Is it possible to insert data to two tables at one time using one form only? I'm using php and mysql. Thanks advance.
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.