473,748 Members | 4,951 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5559
Giovanni Benedetti wrote on 28 Sep 2006 in
microsoft.publi c.inetserver.as p.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.publi c.inetserver.as p.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
10961
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 currently migrating to a new PC running XP. The charting application is hanging on a single line of code: Printer.Orientation = vbPRORLandscape It throws an error '484', "Problem getting information from the printer. Make sure printer is set up...
0
554
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 settings dailogue box is appeared and need to set the orientation to landscape. I need to give my user a facility to print it in Landscape orientation automatically. How to setup landscape for the orientation in printer settings through the
2
4650
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 opened. I pretty much used the example out of the help verbatim and Im not having any luck with it working. I thought originally that because some of my controls (Lines) extended to the right margin of the report (designed in Landscape) that...
0
1628
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 user every time because many reports are printed in sequence. Therefore, I need to manipulate the default printer's persistent settings (as displayed in Control Panel) using C# code. I know how to obtain the name of the default printer, but how...
1
12176
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 know how will this affect a report rendered by a crystal viewer. I have a web page with a crystal viewer rendering the report on the page. I build my application in one of my development machines and deploy it
1
4310
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 type (according to the list associated with the printer driver itself) and orientation... It would be nice to programmically control the printer, paper settings and orientation all together to avoid the print dialog and the potential for the user to...
0
2027
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 landscape, portrait showed as portrait. After the program was executed the first time - all the apps on the system show all the reports as portrait. even if you change the default printer settings to landscape. It changes back to portrait. This...
7
20723
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 printer's physical margins using VB coding? Cheers -- Osmotion Blue
4
9143
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 print as landscape. AxAcroPDF doesn't allow me to change the paper orientation (in fact doesn't support any setting changing). To workaround, I need to set the paper orientation of the default
0
8989
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
9537
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9319
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9243
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
8241
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...
0
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3309
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
2
2780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2213
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.