User Profile

Collapse

Profile Sidebar

Collapse
markjavascript
markjavascript
Last Activity: Dec 23 '08, 06:34 PM
Joined: Dec 17 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • markjavascript
    started a topic VBA in Word

    VBA in Word

    Hi,

    Can you tell me what is the difference between two codes below:
    Code:
        Set wdTable = wdDoc.Tables(2)
        Set wdRange = wdTable.Range
        wdRange.Collapse wdCollapseEnd
        wdRange.Paste
    --------------------------
    Code:
    wdDoc.Tables(2).Range.Collapse wdCollapseEnd
    wdDoc.Tables(2).Range.Paste
    Why their behaviors not the same?
    See more | Go to post
    Last edited by Frinavale; Jan 9 '09, 09:54 PM. Reason: Moved to Access Answers from Insights

  • markjavascript
    replied to pasteHTML and font size
    Thanks a lot for all your helps.
    See more | Go to post

    Leave a comment:


  • markjavascript
    replied to pasteHTML and font size
    Thank you.
    Can I put you code into a function setFont('14px') ?
    However, even I can put into the function setFont('14px') , do you think
    pasteHTML("<fon t size='5'>A</font>");setFont ('14px');
    will solve my problem?
    See more | Go to post

    Leave a comment:


  • markjavascript
    replied to pasteHTML and font size
    To all the experts above,

    If my problem may not be solved, can we think another way:
    a javascript function that says "all the typed in letters for the DIV will be with font-size=14px"?
    See more | Go to post

    Leave a comment:


  • markjavascript
    replied to pasteHTML and font size
    Thank you.

    Do you think we can use css for the font size in pasteHTML("<fon t size='5'>A</font> ")? Anyway, I will try again.

    In my website, only 1% visitors not use IE. I will let them select <textarea> or <div>.
    See more | Go to post

    Leave a comment:


  • markjavascript
    replied to pasteHTML and font size
    Dormilich,

    Thank you.
    I think we cannot use css for the font size in pasteHTML("<fon t size='5'>A</font> ")
    Yse <textarea> is very good, but it is not "rich", we cannot display subscript for example.
    See more | Go to post

    Leave a comment:


  • markjavascript
    replied to pasteHTML and font size
    In the div, I use STYLE="font-size:14px;" while in the javascript use ("<font size='5'>A</font> ".I include the font size in the div now:
    -----------------------------
    Code:
    <html> 
    <script> 
       function Test() 
       { 
          document.getElementById("testDiv").focus();
          var Rng = document.selection.createRange(); 
          Rng.pasteHTML("<font
    ...
    See more | Go to post
    Last edited by acoder; Dec 17 '08, 09:51 PM. Reason: Added [code] tags

    Leave a comment:


  • markjavascript
    replied to pasteHTML and font size
    Thank you.
    The problem is that I cannot disallow the user type a letter next to the big letter and there is no way to recover the font size since my div's font size is in px.
    See more | Go to post

    Leave a comment:


  • markjavascript
    started a topic pasteHTML and font size

    pasteHTML and font size

    Hi,

    In an editable div, I inserted a big letter, Rng.pasteHTML(" <font size=5>A</font>");,fine. However, after that, when type in other letters, (sometimes) I got big letters with size=5.

    Here is the code:

    Code:
    <html>
    <script>
       function Test()
       {
          document.getElementById("testDiv").focus()
          var Rng = document.selection.createRange();
    ...
    See more | Go to post
    Last edited by acoder; Dec 17 '08, 06:54 PM. Reason: Added [code] tags
No activity results to display
Show More
Working...