Hi Friends,
I am having some doubt. I want to print an ASP Page, for this i need to
use java script.
the problem is while printing if the line is too big, i can't print
those data properly . i am losing some data in the last.
What i want is if at all, the line is big, it should take landscape
proprety in place of Portrait..
Does anyone knows the answer give me reply soon
Thank u.. 11 2237 kr**********@gm ail.com wrote: What i want is if at all, the line is big, it should take landscape proprety in place of Portrait..
This is a nuisance and we really need a better solution.
But for IE-only, and by using an ActiveX you can fix this problem (and
set margins and headers too). Use MeadCo's ScriptX control. http://www.meadroid.com/scriptx/ kr**********@gm ail.com wrote: Hi Friends, I am having some doubt. I want to print an ASP Page, for this i need to use java script. the problem is while printing if the line is too big, i can't print those data properly . i am losing some data in the last.
What i want is if at all, the line is big, it should take landscape proprety in place of Portrait..
You mean, you want your web page to have greater control over the user's
computer than any other software that exists? Your web page doesn't know
what the printer's capabilities are. It doesn't know how much will fit
on a line. The printer doesn't report back to the browser while it's
printing to tell it things like, "Oh, I just printed a line more than 20
cm wide!" What do you expect to happen if your page is too wide to print
even in landscape?
What you should be doing is designing your web pages so that they fit
onto whatever medium they are displayed on or printed to. Flexible
layout, in other words.
Harlan Messinger wrote: What you should be doing is designing your web pages so that they fit onto whatever medium they are displayed on or printed to.
That's not the question here. The problem is how to force a physical
device into one mode (landscape) rather than another (portrait). This
is entirely reasonable for the page to request, no more than requesting
a color (and the printer is equally entitled to reject either request,
if it's a fan-fold printer with only black ink)
"Andy Dingley" <di*****@codesm iths.com> writes: Harlan Messinger wrote: What you should be doing is designing your web pages so that they fit onto whatever medium they are displayed on or printed to.
That's not the question here. The problem is how to force a physical device into one mode (landscape) rather than another (portrait). This is entirely reasonable for the page to request, no more than requesting a color (and the printer is equally entitled to reject either request, if it's a fan-fold printer with only black ink)
However, browser printing support is fairly poor anyway (I had a data
table I needed to print that was too wide to fit on a landscape A4
page last month - I couldn't find a browser that would print the
remainder of the width of the table on a second sheet)
--
Chris
Andy Dingley wrote: Harlan Messinger wrote:
What you should be doing is designing your web pages so that they fit onto whatever medium they are displayed on or printed to. That's not the question here. The problem is how to force a physical device into one mode (landscape) rather than another (portrait). This is entirely reasonable for the page to request,
It's reasonable to say, "This page is designed to print landscape", not
to expect the program to figure out the line length at print time and
decide what to force the printer to do.
But then, this is the web, and, just as one ought to be designing pages
to fit the browser rather than resizing the browser to fit the page (or,
worse, expecting to be able to change the screen to a higher
resolution), it would be better practice to arrange the page to fit the
dimensions available.
no more than requesting a color (and the printer is equally entitled to reject either request, if it's a fan-fold printer with only black ink)
The OP didn't say "request", he said "force", so obviously his
expectations are stronger than yours.
In article <87************ @dinopsis.dur.a c.uk>,
Chris Morris <c.********@dur ham.ac.uk> wrote: However, browser printing support is fairly poor anyway (I had a data table I needed to print that was too wide to fit on a landscape A4 page last month - I couldn't find a browser that would print the remainder of the width of the table on a second sheet)
Opera will scale the print output however you want. I like this
feature.
-A ax**@spamcop.ne t (axlq) writes: Chris Morris <c.********@dur ham.ac.uk> wrote:However, browser printing support is fairly poor anyway (I had a data table I needed to print that was too wide to fit on a landscape A4 page last month - I couldn't find a browser that would print the remainder of the width of the table on a second sheet)
Opera will scale the print output however you want. I like this feature.
Opera was what I eventually used to print it out. The table was about
five A4 sheets wide at normal zoom, though, and when reduced to 25% so
it fit on A4 landscape it was barely readable. It was sufficient -
just - but not what I actually wanted to print.
What I could have done was found a driver that supported A0, printed
to file, and then used some postscript utilities to cut it up into
separate A4 sheets, but I didn't have time to do all that and was
hoping that *some* browser had it as a feature.
This is getting off-topic, though.
--
Chris This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Patrick Herb |
last post by:
Hello,
I'm trying to print the content of a RichTextBox from my VB 6 app.
What I want is that the CommonDialog shows up, the user selects a
printer and the content of the RichTextBox prints to the selected
printer. I'm not concerned about the text format.
What I tried is something like this
CommonDialog1.ShowPrinter
|
by: Alejandra Parra |
last post by:
In my code, I print a dataSet
' get grid's PrintDocument object
Dim pd As System.Drawing.Printing.PrintDocument
pd = flexgrid.PrintParameters.PrintDocument()
' set up the page (landscape, 1.5" left margin)
With pd.DefaultPageSettings
..Landscape = False
..Margins.Left = 50
Dim a As New Printing.PaperSize("Carta", 850, 1100)
|
by: KohlerTommy |
last post by:
In my application I need to give the user the ability to print duplex if the
selected printer supports duplex printing. Many of the printer options do
not make much sense in my application, and many of the settings in the common
printer dialog would have a negative impact on my printing process. To
handle this strict printing constraint on which my application imposes I do
not want to show the common print dialog. I want to be able to...
|
by: Angel Mazo |
last post by:
Recently, Terminal Server was set-up by site server responsible to
give remote access to some users.
I tested it and application runs ok. Now users get Error # 2202 when
they try to "Preview"/"Print" a report because a printer is not setup.
Users confirmed that they have a printer defined.
I am not much familiar with Terminal Services protocol, I know that
everything is done at server and users only receive the screen updates
so that...
|
by: akhosravi4703 |
last post by:
I'm having a problem with an application I pushed out recently.
First, some background
The application was made with Access 97 (unfortunately I'm stuck with
this older version for the moment)
The app is compiled into an MDE on a network drive from which several
users access it in one location
I'm an entry-level programmer, so please frame your answers for less
experienced =)
| |
by: Alejandra Parra |
last post by:
In my code, I print a dataSet
' get grid's PrintDocument object
Dim pd As System.Drawing.Printing.PrintDocument
pd = flexgrid.PrintParameters.PrintDocument()
' set up the page (landscape, 1.5" left margin)
With pd.DefaultPageSettings
..Landscape = False
..Margins.Left = 50
Dim a As New Printing.PaperSize("Carta", 850, 1100)
|
by: ThunderMusic |
last post by:
hi,
Is there an easy way to change the default printer from .net?
thanks
ThunderMusic
|
by: groulder |
last post by:
hi all,
i have a problem with a network database that's used by a lot of
people.
people are finding, they will start the database, and if the mouse is
moved over the print icon, the tooltip appears to show which printer it
will print to as normal. this printer however is a printer that the
user doesn't even have installed.
|
by: ekynox |
last post by:
Hi guys,
have been playing with WMI to add a network printer connection to a Windows XP pc. My environment consists of a server running Windows Server 2003 and Visual Studio 2005 and a test pc running windows xp. Further, I have setup a full domain controller environment.
I have managed to write the code to add the network printer and it works fine when installing the printer on the same machine the code is executing from i.e the server or...
|
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...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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,...
|
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...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |