Convert ASP to Word Document

Discussion in 'ASP General' started by m2h9111, Jan 16, 2012.

  1. m2h9111

    m2h9111

    Joined:
    Jan 16, 2012
    Messages:
    1
    Likes Received:
    0
    Greetings Everyone,

    I am using classic ASP language and I would like to convert the page into Word Document.

    I used the below line:
    Response.ContentType = "application/ms-word"

    It works fine with me except that the background images at the chart are not showing into the Word Document after conversion.

    Below is the code for the chart that is not showing:


    StyleSheet Code:
    ul.xAxis{margin:0 0 0 27px;padding:0;float:left;clear:left;display:inline;width:454px;}
    ul.yAxis{margin:27px 0 0 0;padding:0;display:inline;float:left;}
    ul.xAxis li{float:left; list-style:none;width:66px;text-align:center;}
    ul.yAxis li{
    list-style:none;
    height:33px;
    text-align:right;
    float:left;
    clear:left; }
    dl#csschart, dl#csschart dt, dl#csschart dd{
    margin:0;
    padding:0; }
    dl#csschart{
    background:url(../images/ESR-Graph.gif) no-repeat 0 0;
    width:265px;
    height:150px;
    padding-left:11px;
    float:left; }
    dl#csschart dt{
    display:none; }
    dl#csschart dd{
    position:relative;
    float:left;
    display:inline;
    width:66px;
    height:330px;
    margin-top:22px;
    margin:-195px 0px 11px 0px }
    dl#csschart span{
    position:absolute;
    display:block;
    width:66px;
    bottom:0;
    left:0;
    z-index:1;
    color:#555;
    text-decoration:none; }
    dl#csschart span b{
    display:block;
    font-weight:bold;
    font-style:normal;
    float:left;
    line-height:200%;
    color:#fff;
    position:absolute;
    top:5px;
    left:3px;
    text-align:center;
    width:60px; }

    /* default column styling */
    dl#csschart span{
    height:50%;
    background:url(../images/bar.png); }


    dl#csschart .sub{
    margin-left:-33px;

    }
    dl#csschart .sub span{
    background:url(../images/subBar.png) repeat-y;
    }

    /* // column types */
    /* percentages */
    dl#csschart .p0 span{height:0%}
    dl#csschart .p15 span{height:10%;}

    dl#csschart .p20 span{height:14%}



    HTML Code:
    <table border="1" cellpadding="0" cellspacing="0" width="75%" align="center">
    <tr>
    <td align="center">


    <ul class="yAxis">
    <li>45</li>
    <li>30</li>
    <li>15</li>
    </ul>


    <dl id="csschart">

    <dt></dt>
    <dd class="p0"><span><b></b></span></dd>

    <dt>Week</dt>
    <dd class="p20"><span style="background-image:url(images/bar2.png)"><b>20</b></span></dd>

    <dt>YTD</dt>
    <dd class="p15"><span><b>15</b></span></dd>

    </dl>

    <ul class="xAxis">
    <li></li>
    <li>Week</li>
    <li>YTD</li>
    </ul>

    </td></tr></table>

    I need your help to resolve this issue.

    Thanks,
     
    m2h9111, Jan 16, 2012
    #1
    1. Advertisements

  2. m2h9111

    gabe aufiero

    Joined:
    Aug 14, 2012
    Messages:
    6
    Likes Received:
    0
    ASP conversion to Word

    Word document conversion from ASP, has an answer been provided regarding this yet? Thanks
     
    gabe aufiero, Aug 14, 2012
    #2
    1. Advertisements

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. srk
    Replies:
    0
    Views:
    886
  2. srk
    Replies:
    0
    Views:
    821
  3. digbydog

    Convert word document to pdf

    digbydog, May 26, 2007, in forum: ASP .Net
    Replies:
    11
    Views:
    1,185
    Mark Rae
    May 29, 2007
  4. prajwala
    Replies:
    2
    Views:
    1,466
    Paddy
    Sep 20, 2007
  5. =?Utf-8?B?S3VtYXIuQS5QLlA=?=

    convert Microsoft Word Document into HTML

    =?Utf-8?B?S3VtYXIuQS5QLlA=?=, Oct 8, 2007, in forum: ASP .Net
    Replies:
    4
    Views:
    864
    John Lam
    May 3, 2011
  6. KYG
    Replies:
    2
    Views:
    1,237
    Ian Collins
    Aug 18, 2008
  7. Michael G. Schneider

    Modifying a Word document without using Word Automation

    Michael G. Schneider, Dec 15, 2003, in forum: ASP General
    Replies:
    5
    Views:
    566
    el.c. - myLittleTools.net
    Dec 16, 2003
  8. Andrew Banks

    COnvert word document to html on server

    Andrew Banks, Apr 20, 2004, in forum: ASP General
    Replies:
    1
    Views:
    456
Loading...