473,386 Members | 1,810 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,386 software developers and data experts.

How can I give a nice print friendly feature through IE for my website visitors

Hiii

Hello..

I just wanted to know if anyone can tell me how can I give my website
visitors the feature of "FRIENDLY PRINTING" through IE.

I would definitely like to give a feature like this
which is in the site below :

http://www.gulf-daily-news.com/Artic...=72007&Sn=WORL
Please see the feature of how the above site gives a good feature of
printing please tell me how can I do it.

The print a friendly version is just below the news article.

Thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #1
10 2227
All they're really doing is taking the text content and displaying it in a
TD with a 602 width. There is a certain width that you're supposed to stay
within that is considered the accepted standard, but I forget exactly what
that is. w3.org may have that info. But, basically, they're keeping their
article text in a datasource, perhaps a database, and displaying it in a
fixed with template.

Ray at home

"techy techno" <an**********@hotmail.com> wrote in message
news:uU**************@TK2MSFTNGP12.phx.gbl...
Hiii

Hello..

I just wanted to know if anyone can tell me how can I give my website
visitors the feature of "FRIENDLY PRINTING" through IE.

I would definitely like to give a feature like this
which is in the site below :

http://www.gulf-daily-news.com/Artic...=72007&Sn=WORL
Please see the feature of how the above site gives a good feature of
printing please tell me how can I do it.

The print a friendly version is just below the news article.

Thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #2
All it is is a differently formatted HTML page ... nothing special
about it.

Brynn
www.coolpier.com

On Sun, 18 Jan 2004 23:19:27 -0800, techy techno
<an**********@hotmail.com> wrote:
Hiii

Hello..

I just wanted to know if anyone can tell me how can I give my website
visitors the feature of "FRIENDLY PRINTING" through IE.

I would definitely like to give a feature like this
which is in the site below :

http://www.gulf-daily-news.com/Artic...=72007&Sn=WORL
Please see the feature of how the above site gives a good feature of
printing please tell me how can I do it.

The print a friendly version is just below the news article.

Thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


I participate in the group to help give examples of code. I do not guarantee the effects of any code posted. Test all code before use!

Brynn
www.coolpier.com
Jul 19 '05 #3


Can you please give me the source of reading from the datasource and
putting in TD

please tell me as its very imp

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #4

Is your data even stored in a database ... how is your original page
being written ... do you have a site with the original page

Brynn
www.coolpier.com
On Mon, 19 Jan 2004 01:19:47 -0800, techy techno
<an**********@hotmail.com> wrote:


Can you please give me the source of reading from the datasource and
putting in TD

please tell me as its very imp

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


I participate in the group to help give examples of code. I do not guarantee the effects of any code posted. Test all code before use!

Brynn
www.coolpier.com
Jul 19 '05 #5

Its Exactly like the site I should you

http://www.gulf-daily-news.com

Yes I am using MS Access and I store all my news in MS ACCESS DB

SO can you tell me how can I print friendly

with only my Defines logo above the news

please see the above website for a good example

thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #6

Just make a link called 'Printer Friendly' on your page that causes a
popup ... and have the news articles ID wrte into the link like so ...

<a href="#"
onClick="MyWindow=window.open('/yourPrinterFriendlyPage.asp?newsID=<%
=theNewsID
%>','MyWindow','toolbar=no,location=no,directories =no,status=no,menubar=no,scrollbars=no,resizable=n o,width=600,height=500,left=50,top=50');
return false;">Printer Friendly</a>
Then have a page called yourPrinterFriendlyPage.asp ...
((you can get my DBConn.asp file at the following link))
http://www.coolpier.com/cp/cp_scripts/index.asp



<!-- #include virtual="/coolpier_scripts/_database_tools/DBConn.asp"
-->

<html><body>
<table width="100%" cellpadding="4" cellspacing="0" align="center"
valign="top">
<tr><td align="center" valign="top">
<img src="/images/logo.jpg">

</td></tr><tr><td align="left" valign="top">

<%
Dim newsArticleArray '// will be a single dimensionsal array with only
one value.
Dim yourSQL '// your sql statement to your article

yourSQL = "select theStory from newsArticles where theID = '" &
Request.QueryString("theNewsID") & "';"

cp_TheConnectionString = "yourConnectionString;"
cp_DBConn("open")
newsArticleArray = cp_SqlArray(yourSQL)
cp_DBConn("close")

IF ISArray(newsArticleArray) THEN
'//Story found
Response.Write newsArticleArray(0)
ELSE
'// Story Not Found
Response.Write "Story Not Found ... contact webmaster with the error."
END IF
%>
</td></tr></table>
</body></html>

Now this is about as good of an answer here as it gets ... lol.
Do you know much about ASP ... of are you a designer that doesn't know
too much about programming. I have PLENTY of friends that are
designers (which I suck at) that trade me graphics for programming all
the time ... hehe.

If you need help further, I may be able to help, but it would have to
be off the group.

Take Care,
Brynn
www.coolpier.com



On Mon, 19 Jan 2004 03:29:23 -0800, techy techno
<an**********@hotmail.com> wrote:

Its Exactly like the site I should you

http://www.gulf-daily-news.com

Yes I am using MS Access and I store all my news in MS ACCESS DB

SO can you tell me how can I print friendly

with only my Defines logo above the news

please see the above website for a good example

thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


I participate in the group to help give examples of code. I do not guarantee the effects of any code posted. Test all code before use!

Brynn
www.coolpier.com
Jul 19 '05 #7
OK I will do that BUT

can you tell me how can I add a " CLICK TO PRINT " button in the pop up
window and make html page to give a print command to the printer

thanks a million man
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #8
Forget that it's a printable page. Do you know how to pull data from a
datasource and display it in a webpage? If so, all you have to do then is
do that in a page that has a fixed width.

Ray at home

"techy techno" <an**********@hotmail.com> wrote in message
news:Om**************@TK2MSFTNGP12.phx.gbl...
OK I will do that BUT

can you tell me how can I add a " CLICK TO PRINT " button in the pop up
window and make html page to give a print command to the printer

thanks a million man
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #9

This is a javascript command, for another group ... but anyway ...

I believe ..

<a href="#" onClick="window.print();">CLICK TO PRINT</a>

Brynn
www.coolpier.com

On Mon, 19 Jan 2004 21:09:29 -0800, techy techno
<an**********@hotmail.com> wrote:
OK I will do that BUT

can you tell me how can I add a " CLICK TO PRINT " button in the pop up
window and make html page to give a print command to the printer

thanks a million man
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Brynn
www.coolpier.com

I participate in the group to help give examples of code.
I do not guarantee the effects of any code posted.
Test all code before use!
Jul 19 '05 #10
On Mon, 19 Jan 2004 21:09:29 -0800, techy techno
<an**********@hotmail.com> wrote:
OK I will do that BUT

can you tell me how can I add a " CLICK TO PRINT " button in the pop up
window and make html page to give a print command to the printer


It's not an ASP issue, try a Javascript group. or Google "Javascript
Print Window" or the like.

Jeff
Jul 19 '05 #11

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

Similar topics

43
by: Dan Perl | last post by:
Here is a python feature that I would like: to be able to import modules from an archive like the jar files in Java. Maybe a regular tar file? Maybe a python specific file type, let's call it a...
1
by: weiwei | last post by:
HI I am having a problem with print friendly function with asp, I have download some code regard with print friendly, it works fine with static html information, however, I have the dynamic pages...
11
by: TomCat | last post by:
Hello, can anyone send me a link or even some sample of script that counts visits to a website ? Thanks, TomCat
4
by: Matt Mercer | last post by:
Hi, I have a asp .net/VB web app that does the typical submitting and retrieving from a SQL database. I am lost as to how I should create a print friendly page for the data. Here is the...
6
by: moony marouane | last post by:
Hi Everybody I have a problem opening a file with ADODB.Stream when <HTML> exists on the same page here is the code I use : =================================== <HTML> <%
3
by: Lad | last post by:
I would like to add on my website a possibility for visitors to upload video and watch other user's video. How much difficult would it be with Python? Thank you any for idea. L.
0
by: ashutoshkataruka | last post by:
Is your website getting very less no. of visitors .If so, then post your website to http://goodtolove.com to get unlimited visitors for lifetime...No need to pay a penny.
3
by: DavidPr | last post by:
I made a website for a group of people and they want a visitor counter on it. I don't like hit counters because if the site is dead everyone will know it. But, it's their website. I did an...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.