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

Discussion in 'ASP General' started by techy techno, Jan 19, 2004.

  1. techy techno

    techy techno Guest

    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


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    techy techno, Jan 19, 2004
    #1
    1. Advertising

  2. techy techno

    Ray at Guest

    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" <> wrote in message
    news:...
    > 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
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!
     
    Ray at, Jan 19, 2004
    #2
    1. Advertising

  3. techy techno

    Brynn Guest

    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
    <> 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/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
    >
    >
    >*** 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
     
    Brynn, Jan 19, 2004
    #3
  4. techy techno

    techy techno Guest

    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!
     
    techy techno, Jan 19, 2004
    #4
  5. techy techno

    Brynn Guest

    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
    <> 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
     
    Brynn, Jan 19, 2004
    #5
  6. techy techno

    techy techno Guest

    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!
     
    techy techno, Jan 19, 2004
    #6
  7. techy techno

    Brynn Guest

    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











    On Mon, 19 Jan 2004 03:29:23 -0800, techy techno
    <> 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
     
    Brynn, Jan 19, 2004
    #7
  8. techy techno

    techy techno Guest

    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!
     
    techy techno, Jan 20, 2004
    #8
  9. techy techno

    Ray at Guest

    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" <> wrote in message
    news:...
    > 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!
     
    Ray at, Jan 20, 2004
    #9
  10. techy techno

    Brynn Guest

    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
    <> 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!
     
    Brynn, Jan 20, 2004
    #10
  11. techy techno

    Jeff Cochran Guest

    On Mon, 19 Jan 2004 21:09:29 -0800, techy techno
    <> 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
     
    Jeff Cochran, Jan 21, 2004
    #11
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Swaregirl
    Replies:
    19
    Views:
    598
    Kevin Spencer
    May 29, 2005
  2. Dave
    Replies:
    3
    Views:
    2,999
  3. meltedown
    Replies:
    9
    Views:
    1,037
    Steve Pugh
    Oct 17, 2006
  4. ©®
    Replies:
    8
    Views:
    376
    Joe (GKF)
    Feb 5, 2007
  5. Paul Lee
    Replies:
    4
    Views:
    108
    Thomas 'PointedEars' Lahn
    Dec 12, 2003
Loading...

Share This Page