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

T

techy techno

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/Articles.asp?Article=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
 
R

Ray at

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
 
B

Brynn

All it is is a differently formatted HTML page ... nothing special
about it.

Brynn
www.coolpier.com

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/Articles.asp?Article=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

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
 
T

techy techno

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

please tell me as its very imp
 
B

Brynn

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


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

please tell me as its very imp

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
 
T

techy techno

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
 
B

Brynn

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=no,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











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

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
 
T

techy techno

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
 
R

Ray at

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
 
B

Brynn

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



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

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!
 
J

Jeff Cochran

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top