Results 1 to 5 of 5

Thread: cellfonttag not working

  1. #1
    indra Guest

    cellfonttag not working


    Here's my code:
    <HTML>
    <HEAD><TITLE></TITLE>
    <body>
    <br>
    <br>
    <%
    Set MyDb = Server.CreateObject(&#34;Asp.DB&#34
    MyDb.dbDSN = Application(&#34;sDSN&#34

    MyDb.dbUnit = 210
    if (Request(&#34;Reset&#34 = 1) then MyDb.dbReset(DB_UNIT)

    MyDb.dbMode = &#34;grid&#34;
    MyDb.dbDBType = &#34;SQL&#34;
    MyDb.dbSQL = &#34;select * from classes&#34;

    MyDb.dbOptions = &#34;HeaderFontTag=Face=&#34;&#34;verdana&#34;&#34 ; size=2, CellFontTag=Face=&#34;&#34;verdana&#34;&#34; Size=2&#34;
    MyDb.dbNavigation = True
    MyDb.dbImageDir=&#34;/images/aspdb/&#34;
    Mydb.dbNavigationIcon=&#34;std&#34;
    MyDb.dbNavigation = &#34;Top&#34;
    MyDb.dbButtonAnchor = False
    MyDb.dbGridDisplayFlds = &#34;1, 2, 3, 4&#34;
    MyDb.aspDB
    Set MyDb = Nothing
    %>

    </BODY>
    </HTML>


    I changed the size for cellfonttag to 1 or 6 and no effect on display.
    When I change the size for headerfonttag the display changed accordingly.
    I am using te enterprise version.




  2. #2
    Mark Guest

    cellfonttag not working (reply)

    Hi Indra,

    First, you have a typo in your program.
    MyDb.dbReset(DB_UNIT)
    Should be:
    MyDb.dbReset(210)

    Second, I&#39;m not sure that 6 is a legitimate HTML size. Try 1-5.

    Mark.



    ------------
    indra at 2/28/2002 1:18:43 PM


    Here&#39;s my code:
    <HTML>
    <HEAD><TITLE></TITLE>
    <body>
    <br>
    <br>
    <%
    Set MyDb = Server.CreateObject(&#34;Asp.DB&#34
    MyDb.dbDSN = Application(&#34;sDSN&#34

    MyDb.dbUnit = 210
    if (Request(&#34;Reset&#34 = 1) then MyDb.dbReset(DB_UNIT)

    MyDb.dbMode = &#34;grid&#34;
    MyDb.dbDBType = &#34;SQL&#34;
    MyDb.dbSQL = &#34;select * from classes&#34;

    MyDb.dbOptions = &#34;HeaderFontTag=Face=&#34;&#34;verdana&#34;&#34 ; size=2, CellFontTag=Face=&#34;&#34;verdana&#34;&#34; Size=2&#34;
    MyDb.dbNavigation = True
    MyDb.dbImageDir=&#34;/images/aspdb/&#34;
    Mydb.dbNavigationIcon=&#34;std&#34;
    MyDb.dbNavigation = &#34;Top&#34;
    MyDb.dbButtonAnchor = False
    MyDb.dbGridDisplayFlds = &#34;1, 2, 3, 4&#34;
    MyDb.aspDB
    Set MyDb = Nothing
    %>

    </BODY>
    </HTML>


    I changed the size for cellfonttag to 1 or 6 and no effect on display.
    When I change the size for headerfonttag the display changed accordingly.
    I am using te enterprise version.




  3. #3
    indra Guest

    cellfonttag not working (reply)

    I forgot to change MyDb.dbReset(DB_UNIT) to MyDb.dbReset(210).
    As I mentioned previously that changing the size has no effect. I used 1, 2, 3, 4, 5 and no changes in the display.
    But when I changed the headerfonttag&#39;s size from 1 to 5, the header text got bigger and when I changed it to 2 the header text became smaller.

    Here is the updated code:

    <HTML>
    <HEAD><TITLE></TITLE>
    <body>
    <br>
    <br>
    <%
    Set MyDb = Server.CreateObject(&#34;Asp.DB&#34
    MyDb.dbDSN = Application(&#34;sDSN&#34

    MyDb.dbUnit = 210
    if (Request(&#34;Reset&#34 = 1) then MyDb.dbReset(210)

    MyDb.dbMode = &#34;grid&#34;
    MyDb.dbDBType = &#34;SQL&#34;
    MyDb.dbSQL = &#34;select * from classes&#34;

    MyDb.dbOptions = &#34;HeaderFontTag=Face=&#34;&#34;verdana&#34;&#34 ; size=2, CellFontTag=Face=&#34;&#34;verdana&#34;&#34; Size=2&#34;
    MyDb.dbNavigation = True
    MyDb.dbImageDir=&#34;/images/aspdb/&#34;
    Mydb.dbNavigationIcon=&#34;std&#34;
    MyDb.dbNavigation = &#34;Top&#34;
    MyDb.dbButtonAnchor = False
    MyDb.dbGridDisplayFlds = &#34;1, 2, 3, 4&#34;
    MyDb.aspDB
    Set MyDb = Nothing
    %>

    </BODY>
    </HTML>



    ------------
    Mark at 2/28/2002 2:25:02 PM

    Hi Indra,

    First, you have a typo in your program.
    MyDb.dbReset(DB_UNIT)
    Should be:
    MyDb.dbReset(210)

    Second, I&#39;m not sure that 6 is a legitimate HTML size. Try 1-5.

    Mark.



    ------------
    indra at 2/28/2002 1:18:43 PM


    Here&#39;s my code:
    <HTML>
    <HEAD><TITLE></TITLE>
    <body>
    <br>
    <br>
    <%
    Set MyDb = Server.CreateObject(&#34;Asp.DB&#34
    MyDb.dbDSN = Application(&#34;sDSN&#34

    MyDb.dbUnit = 210
    if (Request(&#34;Reset&#34 = 1) then MyDb.dbReset(DB_UNIT)

    MyDb.dbMode = &#34;grid&#34;
    MyDb.dbDBType = &#34;SQL&#34;
    MyDb.dbSQL = &#34;select * from classes&#34;

    MyDb.dbOptions = &#34;HeaderFontTag=Face=&#34;&#34;verdana&#34;&#34 ; size=2, CellFontTag=Face=&#34;&#34;verdana&#34;&#34; Size=2&#34;
    MyDb.dbNavigation = True
    MyDb.dbImageDir=&#34;/images/aspdb/&#34;
    Mydb.dbNavigationIcon=&#34;std&#34;
    MyDb.dbNavigation = &#34;Top&#34;
    MyDb.dbButtonAnchor = False
    MyDb.dbGridDisplayFlds = &#34;1, 2, 3, 4&#34;
    MyDb.aspDB
    Set MyDb = Nothing
    %>

    </BODY>
    </HTML>


    I changed the size for cellfonttag to 1 or 6 and no effect on display.
    When I change the size for headerfonttag the display changed accordingly.
    I am using te enterprise version.




  4. #4
    Mark Guest

    cellfonttag not working (reply)

    Try this code ...
    <%
    Set MyDb = Server.CreateObject(&#34;Asp.DB&#34
    MyDb.dbDSN = Application(&#34;sDSN&#34
    MyDb.dbMode = &#34;grid&#34;
    MyDb.dbDBType = &#34;SQL&#34;
    MyDb.dbSQL = &#34;select * from classes&#34;
    MyDb.dbOptions = &#34;CellFontTag=Size=5&#34;
    MyDb.dbGridDisplayFlds = &#34;1, 2, 3, 4&#34;
    MyDb.aspDB
    %>



    ------------
    indra at 2/28/2002 2:40:19 PM

    I forgot to change MyDb.dbReset(DB_UNIT) to MyDb.dbReset(210).
    As I mentioned previously that changing the size has no effect. I used 1, 2, 3, 4, 5 and no changes in the display.
    But when I changed the headerfonttag&#39;s size from 1 to 5, the header text got bigger and when I changed it to 2 the header text became smaller.

    Here is the updated code:

    <HTML>
    <HEAD><TITLE></TITLE>
    <body>
    <br>
    <br>
    <%
    Set MyDb = Server.CreateObject(&#34;Asp.DB&#34
    MyDb.dbDSN = Application(&#34;sDSN&#34

    MyDb.dbUnit = 210
    if (Request(&#34;Reset&#34 = 1) then MyDb.dbReset(210)

    MyDb.dbMode = &#34;grid&#34;
    MyDb.dbDBType = &#34;SQL&#34;
    MyDb.dbSQL = &#34;select * from classes&#34;

    MyDb.dbOptions = &#34;HeaderFontTag=Face=&#34;&#34;verdana&#34;&#34 ; size=2, CellFontTag=Face=&#34;&#34;verdana&#34;&#34; Size=2&#34;
    MyDb.dbNavigation = True
    MyDb.dbImageDir=&#34;/images/aspdb/&#34;
    Mydb.dbNavigationIcon=&#34;std&#34;
    MyDb.dbNavigation = &#34;Top&#34;
    MyDb.dbButtonAnchor = False
    MyDb.dbGridDisplayFlds = &#34;1, 2, 3, 4&#34;
    MyDb.aspDB
    Set MyDb = Nothing
    %>

    </BODY>
    </HTML>



    ------------
    Mark at 2/28/2002 2:25:02 PM

    Hi Indra,

    First, you have a typo in your program.
    MyDb.dbReset(DB_UNIT)
    Should be:
    MyDb.dbReset(210)

    Second, I&#39;m not sure that 6 is a legitimate HTML size. Try 1-5.

    Mark.



    ------------
    indra at 2/28/2002 1:18:43 PM


    Here&#39;s my code:
    <HTML>
    <HEAD><TITLE></TITLE>
    <body>
    <br>
    <br>
    <%
    Set MyDb = Server.CreateObject(&#34;Asp.DB&#34
    MyDb.dbDSN = Application(&#34;sDSN&#34

    MyDb.dbUnit = 210
    if (Request(&#34;Reset&#34 = 1) then MyDb.dbReset(DB_UNIT)

    MyDb.dbMode = &#34;grid&#34;
    MyDb.dbDBType = &#34;SQL&#34;
    MyDb.dbSQL = &#34;select * from classes&#34;

    MyDb.dbOptions = &#34;HeaderFontTag=Face=&#34;&#34;verdana&#34;&#34 ; size=2, CellFontTag=Face=&#34;&#34;verdana&#34;&#34; Size=2&#34;
    MyDb.dbNavigation = True
    MyDb.dbImageDir=&#34;/images/aspdb/&#34;
    Mydb.dbNavigationIcon=&#34;std&#34;
    MyDb.dbNavigation = &#34;Top&#34;
    MyDb.dbButtonAnchor = False
    MyDb.dbGridDisplayFlds = &#34;1, 2, 3, 4&#34;
    MyDb.aspDB
    Set MyDb = Nothing
    %>

    </BODY>
    </HTML>


    I changed the size for cellfonttag to 1 or 6 and no effect on display.
    When I change the size for headerfonttag the display changed accordingly.
    I am using te enterprise version.




  5. #5
    iwui Guest

    cellfonttag not working (reply)



    Thanks!
    I found the problem in the code. It works now!
    Thank you for your help.

    Indra
    ------------
    Mark at 2/28/2002 5:36:27 PM

    Try this code ...
    <%
    Set MyDb = Server.CreateObject(&#34;Asp.DB&#34
    MyDb.dbDSN = Application(&#34;sDSN&#34
    MyDb.dbMode = &#34;grid&#34;
    MyDb.dbDBType = &#34;SQL&#34;
    MyDb.dbSQL = &#34;select * from classes&#34;
    MyDb.dbOptions = &#34;CellFontTag=Size=5&#34;
    MyDb.dbGridDisplayFlds = &#34;1, 2, 3, 4&#34;
    MyDb.aspDB
    %>



    ------------
    indra at 2/28/2002 2:40:19 PM

    I forgot to change MyDb.dbReset(DB_UNIT) to MyDb.dbReset(210).
    As I mentioned previously that changing the size has no effect. I used 1, 2, 3, 4, 5 and no changes in the display.
    But when I changed the headerfonttag&#39;s size from 1 to 5, the header text got bigger and when I changed it to 2 the header text became smaller.

    Here is the updated code:

    <HTML>
    <HEAD><TITLE></TITLE>
    <body>
    <br>
    <br>
    <%
    Set MyDb = Server.CreateObject(&#34;Asp.DB&#34
    MyDb.dbDSN = Application(&#34;sDSN&#34

    MyDb.dbUnit = 210
    if (Request(&#34;Reset&#34 = 1) then MyDb.dbReset(210)

    MyDb.dbMode = &#34;grid&#34;
    MyDb.dbDBType = &#34;SQL&#34;
    MyDb.dbSQL = &#34;select * from classes&#34;

    MyDb.dbOptions = &#34;HeaderFontTag=Face=&#34;&#34;verdana&#34;&#34 ; size=2, CellFontTag=Face=&#34;&#34;verdana&#34;&#34; Size=2&#34;
    MyDb.dbNavigation = True
    MyDb.dbImageDir=&#34;/images/aspdb/&#34;
    Mydb.dbNavigationIcon=&#34;std&#34;
    MyDb.dbNavigation = &#34;Top&#34;
    MyDb.dbButtonAnchor = False
    MyDb.dbGridDisplayFlds = &#34;1, 2, 3, 4&#34;
    MyDb.aspDB
    Set MyDb = Nothing
    %>

    </BODY>
    </HTML>



    ------------
    Mark at 2/28/2002 2:25:02 PM

    Hi Indra,

    First, you have a typo in your program.
    MyDb.dbReset(DB_UNIT)
    Should be:
    MyDb.dbReset(210)

    Second, I&#39;m not sure that 6 is a legitimate HTML size. Try 1-5.

    Mark.



    ------------
    indra at 2/28/2002 1:18:43 PM


    Here&#39;s my code:
    <HTML>
    <HEAD><TITLE></TITLE>
    <body>
    <br>
    <br>
    <%
    Set MyDb = Server.CreateObject(&#34;Asp.DB&#34
    MyDb.dbDSN = Application(&#34;sDSN&#34

    MyDb.dbUnit = 210
    if (Request(&#34;Reset&#34 = 1) then MyDb.dbReset(DB_UNIT)

    MyDb.dbMode = &#34;grid&#34;
    MyDb.dbDBType = &#34;SQL&#34;
    MyDb.dbSQL = &#34;select * from classes&#34;

    MyDb.dbOptions = &#34;HeaderFontTag=Face=&#34;&#34;verdana&#34;&#34 ; size=2, CellFontTag=Face=&#34;&#34;verdana&#34;&#34; Size=2&#34;
    MyDb.dbNavigation = True
    MyDb.dbImageDir=&#34;/images/aspdb/&#34;
    Mydb.dbNavigationIcon=&#34;std&#34;
    MyDb.dbNavigation = &#34;Top&#34;
    MyDb.dbButtonAnchor = False
    MyDb.dbGridDisplayFlds = &#34;1, 2, 3, 4&#34;
    MyDb.aspDB
    Set MyDb = Nothing
    %>

    </BODY>
    </HTML>


    I changed the size for cellfonttag to 1 or 6 and no effect on display.
    When I change the size for headerfonttag the display changed accordingly.
    I am using te enterprise version.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •