By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,985 Members | 1,830 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,985 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
10 Replies


P: n/a
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

P: n/a
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

P: n/a


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

P: n/a

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

P: n/a

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

P: n/a

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

P: n/a
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

P: n/a
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

P: n/a

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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.