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

Printer margin and orientation settings from ASP

Hi everybody,

sorry for my English first of all.
I've an ASP page (ASP 3.0) used on an intranet which fill up some particular
Mail sheets getting data from a database.
Those pre-compiled sheets are then showed in IE 6 for checking and then have
to be printed.
To correct printing the sheets I have to change the print margins and paper
orientation from IE 6 settings.
Reading around it looks like I can't change IE 6 print settings without
using C++ (which I don't know), therefore I tried using different ActiveX
Components (such ad aspPrint.dll or ARPrint.dll) but I can't success. When I
try using them, mainly, I got generical errors relative the printer (the
error descriptions doesn't give any deep information, just something like
"problems with the printer" messages or similar) on the lines where I should
set the "Printer Name" and/or "Printer Driver Name" properties (required
settings, not optional settings). I tried setting those properties with all
the "names" I've been able to get from the system (XP Pro SP2) from
Printers, Control Panel, even from the Registry, but nothing is good for
them.
Is there someone on the NG who already fixed those problems and can help me?
Thanks in advance.

Ciao
Giovanni

P.S. I even thought to write by myself such that ActiveX Component from
Visual Basic 6.0, using the VBs Printer object which exposes some methods to
get the default printer of the system. What do you think about it? Someone
has experience on that matter? There are some problems with security
settings or something like that?
Sep 28 '06 #1
3 5539
Giovanni Benedetti wrote on 28 Sep 2006 in
microsoft.public.inetserver.asp.general:
I've an ASP page (ASP 3.0) used on an intranet which fill up some
particular Mail sheets getting data from a database.
Those pre-compiled sheets are then showed in IE 6 for checking and
then have to be printed.
ASP is a serverside platform for applying vbscript or j[ava]script on the
server to dynamicly render html stream to a client browser.
To correct printing the sheets I have to change the print margins and
paper orientation from IE 6 settings.
Since ASP only influences the content of the above client stream, it cannot
do what a static html steam cannnot do on the client, and so it cannot
change the client's printer settings.

ASP could fire a programme on the server for dedicated server prnting,
I suppose.
[..]
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Sep 28 '06 #2
>I've an ASP page (ASP 3.0) used on an intranet which fill up some
>particular Mail sheets getting data from a database.
Those pre-compiled sheets are then showed in IE 6 for checking and
then have to be printed.

ASP is a serverside platform for applying vbscript or j[ava]script on the
server to dynamicly render html stream to a client browser.
>To correct printing the sheets I have to change the print margins and
paper orientation from IE 6 settings.

Since ASP only influences the content of the above client stream, it
cannot
do what a static html steam cannnot do on the client, and so it cannot
change the client's printer settings.

ASP could fire a programme on the server for dedicated server prnting,
I suppose.
Thank you for your answer.

Sorry, surely I've not been clear enough on my post.
I know ASP can't manage client site settings. The ActiveX Controls I
mentionned (aspPrint.dll or ARPrint.dll) can only print on server but,
dueing we are talking about an intranet, that's not a problem for me. My
problem is I can't get that controls working, neither on server.
Those controls still doesn't accept the "printer name" and "printer driver
name" property values they required to me. The reason of my post is just for
getting help from someone who already used such controls or similar
controls.

But please also consider, even ASP is a serverside technolgy, I could
include a client side ActiveX Control through the <objecttag on an htm
page and call that page from an asp page trying that way to manage the
printer settings. Is this correct?

Thanks again for your answer

Ciao
Giovanni
Sep 28 '06 #3
Giovanni Benedetti wrote on 28 Sep 2006 in
microsoft.public.inetserver.asp.general:
Sorry, surely I've not been clear enough on my post.
I know ASP can't manage client site settings. The ActiveX Controls I
mentionned (aspPrint.dll or ARPrint.dll) can only print on server but,
dueing we are talking about an intranet, that's not a problem for me.
My problem is I can't get that controls working, neither on server.
Those controls still doesn't accept the "printer name" and "printer
driver name" property values they required to me. The reason of my
post is just for getting help from someone who already used such
controls or similar controls.
Perhaps the printers are not accessable under the server's iis user
security?
But please also consider, even ASP is a serverside technolgy, I could
include a client side ActiveX Control through the <objecttag on an
htm page
An asp page, and a html page are the same in that sense.
they both render a html [and sometimes the same] stream to the client.
and call that page from an asp page trying that way to manage
the printer settings. Is this correct?
No, because that is not a asp problem,
you will have to ask in a clientside NG.

An exagerating example:

<%
response.write "<imgh src='blah.jpg'>"
%>

Not showing that jpg clientside surely is not an asp problem?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Sep 28 '06 #4

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

Similar topics

1
by: Bruce Adams | last post by:
I am using VB6 SP6. I have an application that prints charts. Specifically, it prints line charts of plant process information nightly. The code is a mix of API calls and Printer methods. I am...
0
by: hari krishna | last post by:
hi, i am using window.print to print some details that are fetched on to an ASPX page. since its a long list, it should be printed in Landscape. when window.print command is executed, a printer...
2
by: jess | last post by:
Hi All, I am using the PrtDevMode property of a report open in design view to try and flip the orientation of the report between Portrait and Landscape in a user control box before the report is...
0
by: Paul E Collins | last post by:
I am using the IE browser control to print HTML reports from a C# application. I do not know of any way to pass print settings to the control (such as landscape orientation), and cannot prompt the...
1
by: Karthic | last post by:
When i right click on the .rpt file in the VS 2003, i see a property printer setting. It says "No printer" on the top and there is option to select printer and paper settings etc.. I want to...
1
by: Anthony Nystrom | last post by:
I need to within code control some printer settings before raising the print dialog... I need to set some properties for the printer such as "The Printer to Print too", Page settings such as paper...
0
by: Richard Caldwell | last post by:
we received a access 97 database that runs on Windows 2000 workstations. Before the program added to the system everything worked correctly on the computers. Reports that were landscape showed...
7
by: Mark | last post by:
Hi, I am creating application in VB 2005. and when I print report it adds extra 0.45 cm margin on left and top, and the reason for this is physical margins of printer. Is it possible to change...
4
by: nano2k | last post by:
Hello I need to display and then automatically print a PDF file. I'm using AxAcroPDF to display the PDF. AxAcroPDF class has a very good method: printAll(). The only thing is that I need to...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...

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.