In my web application, I am using two different CSS based on media. In my
Print CSS, I can suppress button, header and ad objects using "Display:
None;". However, I need to print an object that does not actually display on
the ASPX page. In my Screen CSS, I tried to use "Display: None" for that
object (by ID). It will not print based on my various attempts to print that
object (by ID) in my Print CSS.
I would appreciate suggestions on how I can print an object but not display
that object on my ASPX page. I prefer to use CSS if possible.
Thanks! 1 2513
Lynda,
Here is a sample of how to do this with CSS. For my purposes, this
displayed a DropDownList to the user of the site, but hid it and displayed a
text label upon printing.
..accountListDr opdown
{
text-transform: capitalize;
font-size: 0.9em;
}
..accountListLa bel
{
display: none;
visibility: hidden;
}
@media print
{
.accountListDro pdown
{
display: none;
visibility: hidden;
}
.accountListLab el
{
display: inline;
visibility: visible;
text-align: left;
}
}
Hope this helps,
Steve
"Lynda" <Ly***@discussi ons.microsoft.c omwrote in message
news:92******** *************** ***********@mic rosoft.com...
In my web application, I am using two different CSS based on media. In my
Print CSS, I can suppress button, header and ad objects using "Display:
None;". However, I need to print an object that does not actually display
on
the ASPX page. In my Screen CSS, I tried to use "Display: None" for that
object (by ID). It will not print based on my various attempts to print
that
object (by ID) in my Print CSS.
I would appreciate suggestions on how I can print an object but not
display
that object on my ASPX page. I prefer to use CSS if possible.
Thanks!
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: wolfiecat |
last post by:
Hello -
I am new to this forum. Let me start off by saying that I have never
used ASP before. I am working on a project where the site was already
created using frames and .aspx pages. I was asked to update pages as
well as add new functions. This project is an online training course
for internal use only.
So, my question is.... I need to put a Print Button on the left frame
called "buttons.aspx". I need it to print whatever...
|
by: Niyazi |
last post by:
Hi all,
This my aspx page first line of code.
<%@ Page CodeBehind="index.aspx.vb" Language="vb" AutoEventWireup="false"
Inherits="TB.index" %>
Than inside head tag I have following script(s)
---------------------------------------------------------------------------------------------------------------------
<script language="JavaScript">
//Disable Mouse Right Click Button
|
by: Smitha Nataraj |
last post by:
Hello,
Please let me know if you have the solution for a similar kind of problem...
Background: I have an aspx page which is used as a report i.e. will be used
for printing some information. The page has some text fields, some bulleted
lists, 4 tables, a diagram. All the data is variable based on some
parameters. Hence the height of the text fields, height of the table nor the
height of the image is known.
|
by: Sukh |
last post by:
Hi
I am stuck with a problem Can anyone help me out from this...
I am printing a report on pre-printed continue paper using dot-matrix
printer using vb.net.
Data is printing on all the locations. But
After printing first page it increase paper 3cm vertically/Height so on
second
|
by: Siv |
last post by:
Hi,
I am getting into printing with VB.NET 2005 and want to implement the usual
capability that a user can select a selection of pages. I have a report
that is generated by my application that if the user wants all pages will
produce 3 pages. I want to offer the user the ability to select via the
print dialog that only pages 1 and 2 of it are printed or possibly pages 1
and 3 but not 2.
At the moment I can produce all three pages...
| |
by: Lucas Ponzo |
last post by:
Hi All,
I have an ASP.NET 2.0 app. The users access the pages, uniquely via pocket
pc ...
I need to print a page. But I need that the page print on a printer
installed on the web server hosting my application.
Step 1)
The user clicks the Print icon in the web page
|
by: Neo Geshel |
last post by:
Greetings.
BACKGROUND:
My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are
delivered as application/xhtml+xml for all non-MS web clients, and as
text/xml for all MS web clients (Internet Explorer).
My flash content was originally brought in via the “flash satay” method,
but I have since used some server-side magic do deliver one <objecttag
|
by: deepakfordotnet |
last post by:
Hi,
First of all let me confess that I could not get the solution to the same problem from an earlier post Printing :by Mr.Richard MSL (dated September 24th 2006) working.
(Replied by Mr.Walter Wang - September 27th 2006)
My problem is to Print a text from a RichTextBox with all options like - AllowMultiplePages enabled plus PrintPreview and PageSetup.
I tried 2 algorithms - 1 posted in Microsoft and 1 posted in this forum.
...
|
by: Brett |
last post by:
I have an ASP.NET page that displays work orders in a GridView. In that
GridView is a checkbox column. When the user clicks a "Print" button, I
create a report, using the .NET Framework printing classes, for each of the
checked rows in the GridView. This works fine in the Visual Studio 2005
development environment on localhost. But, when I move the page to the web
server, I get the error "Settings to access printer...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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: 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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
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...
| |