Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > How can I give a nice print friendly feature through IE for my website visitors

Reply
Thread Tools

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

 
 
techy techno
Guest
Posts: n/a
 
      01-19-2004
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!
 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      01-19-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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!



 
Reply With Quote
 
 
 
 
Brynn
Guest
Posts: n/a
 
      01-19-2004
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
<(E-Mail Removed)> 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
 
Reply With Quote
 
techy techno
Guest
Posts: n/a
 
      01-19-2004


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!
 
Reply With Quote
 
Brynn
Guest
Posts: n/a
 
      01-19-2004

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
<(E-Mail Removed)> 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
 
Reply With Quote
 
techy techno
Guest
Posts: n/a
 
      01-19-2004

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!
 
Reply With Quote
 
Brynn
Guest
Posts: n/a
 
      01-19-2004

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
<(E-Mail Removed)> 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
 
Reply With Quote
 
techy techno
Guest
Posts: n/a
 
      01-20-2004
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!
 
Reply With Quote
 
Ray at
Guest
Posts: n/a
 
      01-20-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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!



 
Reply With Quote
 
Brynn
Guest
Posts: n/a
 
      01-20-2004

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
<(E-Mail Removed)> 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!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
NIce feature I would like to adapt on my website paradise NZ Computing 1 10-26-2006 11:05 AM
more unique visitors than visitors meltedown HTML 9 10-17-2006 09:43 AM
Not nice for visitors, HILARIOUS for regulars. admin69 Computer Support 2 01-12-2006 02:05 PM
can visitors add comments to a Website? Dave HTML 3 11-24-2005 12:18 PM



Advertisments