Yes, you can use these customization techniques if you are hosting IE or
running client side code, but the fundamental model here is that you have
native Win32 code that is intercepting Windows Messages and doing
customization there. While the customization itself is an HTML file, you
need to be writing native C++ code and not simply DHTML code. I am under the
impression (since you mention trying to do this as a WebForms application)
that you don't intend to run client-side executable code, though you
certainly can do so using an embedded WinForms control - assuming your users
have the .NET runtime - or ActiveX control.
Mehmet gives a link that appears to be broken for me. There is always the
possibility that there is some feature out there which can be scripted, but
if there is I am unaware of it. I never mind being proven wrong, and in fact
I'm more likely to remember something if it breaks some fundamental
assumption of mine, but I'd have to see this site to determine if I am
missing something that I am currently unaware of.
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--
Lucas said:
But the printer customization is possible !
Take a look at this following articles:
http://msdn.microsoft.com/workshop/browser/hosting/printpre
view/reference/reference.asp?frame=true
http://msdn.microsoft.com/library/en-
us/dnie55/html/beyondprintpreview.asp?frame=true
http://msdn.microsoft.com/library/en-
us/dnie55/html/printtemplate2.asp?
frame=true#printtemplate2_topic3
If we use IE:TEMPLATEPRINTER is possible to customize the
print. There are an example in this articles that runs
perfectly, but when I try to code it, a "Access Denied"
warning is prompted in the IE status bar.
Regards,
Lucas
-----Original Message-----
You don't have control over that. The printer settings are as defined by IE,
and IE doesn't trust any web site (nor should it) to modify these settings -
such settings are entirely under the control of the user.
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--
Lucas Correa said:
Hi,
I am trying to customize printing for a webpage, setting
the top and left margin, and cleaning the header and
footer. The idea is to customize printer without user
interaction, and don't using the Page Setup box.
In window forms is possible using System.Drawing.Printing.
But in web forms, it doesn't function.
How can I do that ?
[ ]'s
Lucas
.