473,383 Members | 1,859 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.

print a from a webpage control

I am creating a report and loading it into a web control in my C#
application. I need to change some printer settings, specifically, change
paper type to legal and the orientation to landscape and then print it. I
know how to change the settings through Drawing.Printing.PrintDocument but I
don't know hot to send a webpage to it. I also know how to bring the
printdialog up through JavaScript but don't know how to automatically change
the settings.
Any help would be appreciated
~Logan
Nov 22 '05 #1
1 1584
Hi,

Basically you cannot, All you can do is using window.print() in the client
, nor can you remove the footer or header IE put (with code)

the only solutions may be an ActiveX running in the client.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Logan McKinley" <lo***@globalweb.net> wrote in message
news:Ou*************@tk2msftngp13.phx.gbl...
I am creating a report and loading it into a web control in my C#
application. I need to change some printer settings, specifically, change
paper type to legal and the orientation to landscape and then print it. I
know how to change the settings through Drawing.Printing.PrintDocument but I don't know hot to send a webpage to it. I also know how to bring the
printdialog up through JavaScript but don't know how to automatically change the settings.
Any help would be appreciated
~Logan

Nov 22 '05 #2

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

Similar topics

1
by: RoDzZzZ | last post by:
when i try print (ctrl +p) my webpage, my printer not print the backgrounds and bgcolors of my tables.... what i need make to show the backgrounds and bgcolors in my paper when the user print...
1
by: Logan McKinley | last post by:
I am creating a report and loading it into a web control in my C# application. I need to change some printer settings, specifically, change paper type to legal and the orientation to landscape and...
4
by: Kjell Arne | last post by:
Hi, How do one add parameters to a URL from a UserControl? My problem is that I want to set a unique value to the webpage when the page loads. This value I will use as a identifier for that...
2
by: Jurjen de Groot | last post by:
I would like to implement a button which will, upon click, print the current webpage. I have no idea where to begin, I think I need some sort of client scripting but I suppose there's a simple...
4
by: Lucas Correa | last post by:
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...
6
by: martin | last post by:
Hi, I am a web page and a web user control. My web user control is placed in my web page using the following directive <%@ Register TagPrefix="uc1" TagName="Header"...
0
by: Kresten Buch | last post by:
Hi, I have a central webapplication with lots of clients connected to it over the internet, and some of theese clients has to do a lot of printing. This is where the fun begins. One client...
0
by: JMH | last post by:
Hi, I've seen plenty of examples of printing a windows form without previewing the data, but I was wondering if anyone knew of a way to do this on a webpage? I have a webform, reportviewer...
1
by: eqiz | last post by:
I'm looking for a way to print stuff from my program. I have searched and searched for a way to print and the only thing I have found is PrintFORM which only takes a picture of the form and prints it...
3
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
I have a asp.net page, it uses js to print in IE. It always has the prompting user window appear. I have tried: <input onclick="document.all.WebBrowser.ExecWB(6,6)" type="button"...
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
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: 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
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.