473,406 Members | 2,633 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,406 software developers and data experts.

Convert IHtmlDocument to PrintDocument

I am having a major issue trying to print html document in landscape mode.
you can us I.E. page setup when you get prompted for a printer but I don't
want to prompt the user. I want to be able to change the orientation then
print all in code. Is there a way to convert an IHtmldocument to a
PrintDocument? That would be real easy, but I know that probably isn't that
easy. This is horrible. I looked at templates but that seems alot of
overhead and there needs to be an easier way. Can someone shed some light?
Sean


Nov 16 '05 #1
1 2813
Sean,

I don't want to sound picky, but could you please continue replying to
the past thread(s) in which you were asking about this?

There is already a thread in which someone came up with the idea of
using templates, and gave some links. If that solution doesn't work for
you, that's fine, but please reply in that thread rather than starting
a new discussion every day.

It's easier for the people reading here to be able to see the whole
history of your programming problem in one place. It helps us
understand the big picture and increases your chances of getting help.

As well, some of us may be monitoring specific threads. If you start a
new one every day rather than responding to the previous one, we may
not see your new thread and be waiting for more activity when in fact
the conversation has moved elsewhere.

As well, if your problem is spread across a dozen different threads of
a few posts each, you will have to explain yourself over again each
time. Not good for you, not good for us.

Nov 16 '05 #2

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

Similar topics

3
by: Palli Olafs | last post by:
Hi Is it possible to save the PrintDocument as file without using a printer?
1
by: Frank Rizzo | last post by:
Hello, I have an OCX control on my WinForm (don't ask, i have to use it) and it generally works well. One of the methods of the OCX prints to an hDC (device context handle for history buffs). ...
2
by: Dan Holmes | last post by:
I figured out most of it but i don't know what to do with the addhandler in the constructor. Public Class ScreenCapture Dim thisImage As System.Drawing.Image Dim d As...
0
by: active | last post by:
Dim mPD As PrintDocument Dim mPrinternameSaved As PrintDocument Public WriteOnly Property PrintDocument() As PrintDocument Set(ByVal value As PrintDocument) mPD = value mPrinternameSaved = mPD...
3
by: Mika M | last post by:
Hi all! I have made an application for printing simple barcode labels using PrintDocument object, and it's working fine. Barcode printer that I use is attached to the computer, and this...
0
by: Tchek | last post by:
Hello. Does anybody know how to get IHTMLDocument interface from webBrowser1->Document->DomDocument? As I know in C# it looks like this mshtml.IHTMLDocument2 doc2 =...
2
by: Steve | last post by:
I'm trying real hard to set the printer resolution for a PrintDocument. It appears that the printer is already set to 300 x 300 dpi, which is JUST what I want. But the Margins and PrintableArea...
2
by: bp | last post by:
Hi, I try to use my own PreviewDialog with a PrinPreviewControl, to preview a document of type MyPrintDocument, and I want to implement the PrintRange functionnality (print some pages between 2...
1
by: kig25 | last post by:
Hello, When using the VB.NET PrintDocument class, I seem to be encountering an issue where the sub pd_PrintPage handles PrintDocument.PrintPage (upon continuing if HasMorePages = true) will...
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: 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
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...
0
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,...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.