473,396 Members | 1,809 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,396 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 16 '05 #1
1 1056
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 16 '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: 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: 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...
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...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...

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.