Lm th? no ? ?t m?t h?nh ?nh vo m?t nt trong InfoPath 2003 ho?c trong InfoPath 2007

D?ch tiu ? D?ch tiu ?
ID c?a bi: 832511 - Xem s?n ph?m m bi ny p d?ng vo.
Bung t?t c? | Thu g?n t?t c?

TM T?T

B?n c th? ?t m?t h?nh ?nh t? m?t t?p tin .gif trn m?t c?a m?t Nt ki?m sot trong Microsoft Office InfoPath 2007 ho?c Microsoft Office InfoPath 2003. B?n c th? lm i?u ny b?ng cch xc ?nh cc thu?c tnh c?a cc nt trong file View.xsl c?a cc h?nh th?c. B?n ph?i s?a ?i phong cch c?a cc ?U VO y?u t? c?a cc t?p tin View.xsl ? n.

THNG TIN THM

Cc b?c sau m t? lm th? no ? xy d?ng m?t m?u ?t m?t t?p tin .gif vo m?t nt. Cc b?c sau y yu c?u b?n s? d?ng m?t t?p tin .gif. M?t i?n h?nh ci ?t c?a Microsoft Office c m?t th m?c cc t?p tin .gif, b?n c th? ch?n ? gip b?n pht tri?n cc v d? c?a b?n. Theo m?c ?nh, th m?c cc t?p tin .gif ?c ?t t?i C:\Program Files\Microsoft Office\ClipArt\PUB60Cor.
  1. B?t ?u InfoPath. T?o ra m?t h?nh th?c tr?ng.
  2. Trong cc Cng vi?c thi?t k? nhi?m v? ngn, b?m vo cc Cac iu khin lin k?t. B?m vo cc Nt ki?m sot.

    Mt Nt ki?m sot xu?t hi?n trn cc h?nh th?c tr?ng.
  3. Nh?p chu?t ph?i vo cc Nt trn cc h?nh th?c, v sau nh?p vo Thu?c tnh nt. Trong cc Thu?c tnh nt h?p tho?i h?p, b?m vo cc Kich thc tab. thay ?i chi?u cao 100 i?m ?nh. Thay ?i chi?u r?ng 100 i?m ?nh. Nh?p vo Ok.
  4. InfoPath 2007, nh?p vo T?p tin ti nguyn trn cc Cng cu tr?nh n. Trong cc T?p tin ti nguyn h?p tho?i h?p, b?m vo Thm. Di chuy?n ?n th m?c ch?a cc t?p tin .gif, v sau b?m p chu?t vo .gif t?p tin m b?n mu?n. Nh?p vo Ok ? ng nh?ng T?p tin ti nguyn h?p tho?i.

    Trong InfoPath 2003, h?y nh?p vo Ngu?n l?c qu?n l? trn cc Cng cu tr?nh n. Trong cc Ngu?n l?c qu?n l? h?p tho?i h?p, b?m vo Thm. Di chuy?n ?n th m?c ch?a cc t?p tin .gif, v sau b?m p chu?t vo .gif t?p tin m b?n mu?n. Nh?p vo Ok ? ng nh?ng Ngu?n l?c qu?n l? h?p tho?i.

    Chu y Cc t?p tin ?c s? d?ng trong v d? ny l AG00174_.gif.
  5. Trn cc Tp tr?nh n, nh?p vo Lu.
  6. Trong cc Tn tp h?p, lo?i Button1 ? thay ?i tn c?a cc h?nh th?c. Lu bi?u m?u vo m?t th m?c c?a b?n l?a ch?n. Nh?p vo Lu ? ng nh?ng Lu lam h?p tho?i.

    Chu y ?ng ng m?u m b?n ang thi?t k?.
  7. InfoPath 2007, nh?p vo Lu nh t?p tin m? ngu?n trn cc Tp tr?nh n.

    Trong InfoPath 2003, h?y nh?p vo Gi?i nn t?p tin m?u trn cc Tp tr?nh n.
  8. Trong cc Duy?t t?m c?p h?p tho?i, di chuy?n ?n th m?c m b?n ? lu cc h?nh th?c Button1. B?m vo c?p v b?m Ok ? ng nh?ng Duy?t t?m c?p h?p tho?i. Trn cc Tp tr?nh n, nh?p vo ong ? ng h?nh th?c.
  9. Trong Microsoft Windows Explorer, di chuy?n ?n th m?c ch?a cc h?nh th?c v cc t?p tin ?c trch xu?t t? Button1.xsn file.

    Chu y C?p ch?a t?p Button1.xsn g?c v cc file trch xu?t sau y:
    • Manifest.xsf
    • Sampledata.xml
    • Template.xml
    • Myschema.xsd
    • View1.XSL
  10. M? t?p tin View1.xsl trong Notepad. thc hin vic nay, hay lam theo nhng bc sau:
    1. Nh?p chu?t ph?i vo ccView1.XSL t?p tin.
    2. Nh?p vo M? v?i.
    3. Nh?p vo Notepad cc ty ch?n c s?n.
  11. Trong t?p tin View1.xsl by gi? l m? trong Notepad, xc ?nh v? tr d?ng sau M?:
    <input class="langFont" title="" style="WIDTH: 86px; HEIGHT: 85px" type="button" value="Button" xd:xctname="Button" 
         xd:CtrlId="CTRL1_5" tabIndex="0"/>
    T? thu?c tnh phong cch sau y, sao chp m?t ph?n l trong d?u ngo?c kp:
    style="BORDER: none; BACKGROUND-IMAGE: url(yourImageHere.gif); BACKGROUND-POSITION: left top; BACKGROUND-REPEAT: no-repeat;"
    Chu y Nh?ng g? b?n sao chp s? trng gi?ng nh cc m? sau y:
    BORDER: none; BACKGROUND-IMAGE: urlYourImageHere.gif; BACKGROUND-POSITION: left top; BACKGROUND-REPEAT: no-repeat;
    Chn nh?ng g? b?n ch? c?n sao chp vo thu?c tnh hi?n c phong cch do d?ng hon thnh s? by gi? trng tng t? nh cc m? sau y:
    <input class="langFont" title="" style="BORDER: none; BACKGROUND-IMAGE: url(yourImageHere.gif); 
         BACKGROUND-POSITION: left top; BACKGROUND-REPEAT: no-repeat; WIDTH: 86px; HEIGHT: 85px" type="button" 
         value="Button" xd:xctname="Button" xd:CtrlId="CTRL1_5" tabIndex="0"/>
  12. Thay ?i gi tr? URL phong cch t? URL(yourimageHere.gif) ? url(AG00174_.gif).

    Chu y B?n c?ng c th? dng tn t?p cho t?p .gif b?n tr?c ? ch?n.

    M? xu?t hi?n s? trng gi?ng nh cc m? sau y:
    <input class="langFont" title="" style="BORDER: none; BACKGROUND-IMAGE: url(AG00174_.gif); 
         BACKGROUND-POSITION: left top; BACKGROUND-REPEAT: no-repeat; WIDTH: 86px; HEIGHT: 85px" type="button" 
         value="Button" xd:xctname="Button" xd:CtrlId="CTRL1_5" tabIndex="0"/>
  13. Lu cc t?p tin View1.xsl s?a ?i. ng Notepad.
  14. Di chuy?n t?i c?p c cc t?p tin m b?n trch xu?t t? Button1.xsn.

    Chu y y l th m?c v?i t?p tin View1.xsl s?a ?i.
  15. B?m p Manifest.xsf ? m? cc h?nh th?c trong InfoPath.

    Chu y Nt g?c cho th?y h?nh ?nh .gif lc pha trn bn tri v?i t? Nt ? trung tm c?a nt.
  16. ng InfoPath.
  17. Trong Notepad, m? l?i cc t?p tin View1.xsl. ? s?a ?i cc "<input .="" .="" ./="">"ph?n, h?y lm theo cc b?c sau:
    1. Thay ?i kch th?c nt 100 i?m ?nh b?i 100 i?m ?nh.

      B?n c th? lm i?u ny b?ng cch thay ?i cc CHI?U R?NG thu?c tnh c?a cc nt v b?ng cch thay ?i cc CHI?U CAO thu?c tnh c?a cc nt.
    2. Xa t? Nt ? lo?i b? t? Nt t? b? m?t c?a cc nt.

      B?n c th? lm i?u ny b?ng cch thay ?i cc GI TR? thu?c tnh c?a cc nt.
    3. Trung tm h?nh ?nh .gif vo nt.

      B?n c th? lm i?u ny b?ng cch thay ?i cc V? TR N?N thu?c tnh c?a cc nt.

      Cc thay ?i <input...></input...> ph?n t? s? trng gi?ng nh cc m? sau y:
      <input class="langFont" title="" style="BORDER: none; BACKGROUND-IMAGE: url(AG00174_.gif); 
           BACKGROUND-POSITION: center; BACKGROUND-REPEAT: no-repeat; WIDTH: 100px; HEIGHT: 100px" type="button" 
           value="" xd:xctname="Button" xd:CtrlId="CTRL1_5" tabIndex="0"/>
    4. Lu cc t?p tin View1.xsl s?a ?i. ng Notepad.
  18. Thay th? phin b?n tr?c c?a t?p Manifest.xsf v?i phin b?n m?i hn c?a cc t?p tin Manifest.xsf.

    Chu y N?u b?n nh?p p vo t?p tin Manifest.xsf, b?n m? m?u trong InfoPath. Nh?ng thay ?i khng c trong cc h?nh th?c. Hnh vi ny x?y ra b?i v? cc phin b?n tr?c c?a cc t?p tin Manifest.xsf trong b? nh? cache. B?n ph?i thay th? cc phin b?n tr?c c?a t?p Manifest.xsf v?i phin b?n hi?n t?i c?a cc t?p tin Manifest.xsf. ? th?c hi?n vi?c ny, s? d?ng m?t trong nh?ng phng php sau y:
    • Phng php 1: Trn d?ng l?nh Windows, g? l?nh sau, v sau nh?n ENTER:
      InfoPath.exe /cache clearall
    • Phng phap 2:
      1. M? t?p tin Manifest.xsf trong Notepad.
      2. Trn cc Tp tr?nh n, nh?p vo Lu lam.

        Cc Lu lam h?p tho?i s? nh?c cho d b?n mu?n thay th? t?p hi?n c v?i t?p cng tn.
      3. Nh?p vo Co
    Phin b?n m?i hn c?a cc t?p tin Manifest.xsf c m?t con d?u th?i gian m?i hn. V? v?y, khi b?n nh?p p vo phin b?n m?i hn c?a Manifest.xsf t?p tin, cc t?p tin ?c lu tr? ?c b? i. Cc t?p tin ?c lu tr? ?c thay th? v?i phin b?n m?i hn c?a cc t?p tin Manifest.xsf. Sau khi hon t?t m?t trong hai phng php 1 ho?c phng php 2, b?m p vo phin b?n m?i hn c?a cc t?p tin Manifest.xsf. B?n c th? th?y nt m?i c?a b?n.

Thu?c tnh

ID c?a bi: 832511 - L?n xem xt sau cng: 22 Thang Chin 2011 - Xem xt l?i: 3.0
p d?ng
  • Microsoft Office InfoPath 2007
  • Microsoft Office InfoPath 2003
T? kha:
kbhowtomaster kbmt KB832511 KbMtvi
My d?ch
QUAN TRONG: Bi vi?t ny ?c d?ch b?ng ph?n m?m d?ch my c?a Microsoft ch? khng ph?i do con ng?i d?ch. Microsoft cung c?p cc bi vi?t do con ng?i d?ch v c? cc bi vi?t do my d?ch ? b?n c th? truy c?p vo t?t c? cc bi vi?t trong C s? Ki?n th?c c?a chng ti b?ng ngn ng? c?a b?n. Tuy nhin, bi vi?t do my d?ch khng ph?i lc no c?ng hon h?o. Lo?i bi vi?t ny c th? ch?a cc sai st v? t? v?ng, c php ho?c ng? php, gi?ng nh m?t ng?i n?c ngoi c th? m?c sai st khi ni ngn ng? c?a b?n. Microsoft khng ch?u trch nhi?m v? b?t k? s? thi?u chnh xc, sai st ho?c thi?t h?i no do vi?c d?ch sai n?i dung ho?c do ho?t ?ng s? d?ng c?a khch hng gy ra. Microsoft c?ng th?ng xuyn c?p nh?t ph?n m?m d?ch my ny.
Nh?p chu?t vo y ? xem b?n ti?ng Anh c?a bi vi?t ny:832511

Cung cp Phan hi

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com