Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

OPI_RGZ_2011

.pdf
Скачиваний:
13
Добавлен:
07.02.2016
Размер:
2.93 Mб
Скачать

,

“ ”

6.050103 “' (” ( )

2011

2

-

. (” -

6.050103 “' (” ( -) / 0. .. . , 1. . 2, .. .. . . – ((:

56, 2011. – 66 .

0: 0 . . , . . .,

1 2,

. . ., . . ., . .

7: 8... 8 99, . . .,

:

: 0.:. ', . . .,

(

9

' ; 6

“2” 9 2010 .

3

...........................................................................................................

 

6

1 !-#$%& ' !( ) * 1

+, ' )

 

-./,! '0 MS Office (-# 8 Visual Basic for

 

Application ..................................................................................................

 

7

1.1

9 ..........................................................................................

 

7

1.2

. ..............................................................

 

7

1.2.1 2 VBA...............................................................

 

7

1.2.2 8 .......................................................

 

10

1.2.3 6 (

...........................................

11

1.2.4 A .................................................................................

 

13

1.2.5 0 VBA ............................................

 

16

1.2.6 VBA MS Word...................................................

 

19

1.3

9.............................................................................

 

20

1.4

............................................................................................

 

28

1.5

J ........................................................................

 

28

2 !-#$%& ' !( ) * 2

F ' ! #

 

'( #.........................................................................................

 

29

2.1

9 ........................................................................................

 

29

2.2

. ............................................................

 

29

2.2.1 8 K ............................................................

 

30

2.2.2 8 MDI- ................................................................

 

33

2.2.3 ' MdiLayout ..............................................................

 

36

2.2.4 :, K ..............

38

2.2.5 J K.............................................................................

 

39

2.2.6 A .................................................................................

 

42

2.2.7 9 ( .........................................

48

2.2.8 OpenFileDialog SaveFileDialog SDI- .......................

49

2.2.9 FontDialog.........................................................................................

 

51

2.2.10 ColorDialog .....................................................................................

 

52

2.2.11 StatusBar..........................................................................................

 

53

2.2.12 .........................................................................

 

56

2.2.13 CheckBox ........................................................................................

 

57

2.2.14 : TabIndex ...............................

60

 

4

 

 

2.3

9.............................................................................

 

64

2.4

............................................................................................

 

64

2.5

J ........................................................................

 

64

3 !-#$%& ' !( ) *3

F -' 8

 

F F !, ) %! # ...........................................................................

 

66

3.1

9 ........................................................................................

 

66

3.2

. ............................................................

 

66

3.2.1 K ......................................................................

 

66

3.2.1.1 J K..........................................................................

 

66

3.2.1.2 : K ................................................................

 

67

3.2.1.3 ' K..................................................................

 

67

3.2.1.4 J d ............................................................................

 

67

3.2.1.5 e d ...............................................................................

 

68

3.2.1.6 0 K .....................................

68

3.2.1.7 : 9 ( K.........................................

68

3.2.1.8 8 K ........................................................

 

69

3.2.2 .9 9 .......................................................

 

71

3.2.2.1 ' 9 9 ........................................................

 

72

3.2.2.2 e ........................................................................

 

76

3.2.2.3 ' .......................................................

 

77

3.2.2.4 5 ...............................................................

 

78

3.2.2.5 e .........................................................

 

79

3.2.2.6 J .............................................

 

80

3.3

...............................................................................................

 

83

3.4

............................................................................................

 

83

3.5

J ............................................................................

 

84

4 !-#$%& ' !( ) * 4

F ( -

 

! ' ) '/'-' %! ' ! ) #..................................................

 

85

4.1

9 ........................................................................................

 

85

4.2

. ............................................................

 

85

4.2.1 A ..................................................................................................

 

85

4.2.1.1 J PrintDocument............................................................

 

85

4.2.1.2 : ................................................................................

 

88

4.2.1.3 PrintPreviewControl ............

92

4.2.1.4 5 d .................................................

 

94

4.2.1.5 ' ................................

97

5

 

4.2.2 8 K. NET

 

Framework................................................................................................

105

4.2.2.1 GDI + ....................................................................

105

4.2.2.2 8 ................................................

116

4.2.2.3 7' , ' 9 K

...............................................................................

125

4.3

9...........................................................................

130

4.4

..........................................................................................

131

4.5

J ..........................................................................

131

L% '..............................................................................................

133

6

MN

A n

(.

A - -

K K, ( -

( o Internet.

A ( - -

n , ( n

K 9.

n :

d ( K ,

, , , 9, 9, o n , );

9;

9, 9

9, (

’ , .

K 9 A4 (210 x 297 ). 6 o K n . '

9 – 20 . 0 d KK K -

9 o K . 9 -

K .

' 9 - -

9, -

, ( 9,

nK

. 8 -

.

- K n

K , -

, n d

- ,

9 .

7

1 OM-P Q R * 1

S R TL U MS OFFICE N P Z VISUAL BASIC FOR APPLICATIO`

1.1 ' F ,

1.1.1 : ( Visual Basic for Application o .

1.1.2 5 K K Visual Basic for Application.

1.2 ! % ' ' ,& % !%(-%

.9 ( , K - 9 MS Office 9 Kn 9

VBA.

1.2.1 Q-, , ! & VBA

Visual Basic for Application n K -

9 K

( , . ). s ( . 1.1) n 9'n. 6, 9- 9'n, K ,

( . s ( -

9 d, .

s ( ( K ,

. Userform) — ( 9 ), o n

K .

7 9 K K n -

:

9 9;

Visual Basic;

;

;

;

9 9 .

8

7 1.1 – '

' 9 ( n

' ”. “' ” -

, ( . u o -

' ,

(, K View

Toolbox 9 ( d .

' ” (9 ' ”) -

9'n

VBA. 5 ( .

Label ( ) 9 , o, , -

K, ( n

.

Textbox ( ) – ,

n .

Commandbutton ( ) – , K

( . '

K . Listbox ( ) n 9 -

. ( 9 9 ,

K .

Combobox ( ) n 9

. v n n ( Listbox Textbox.

9

Scrolbar ( ) – , -

n , , 9 d.

K

9. , , 9, K

( 9 9 9 9 ( 9 d 9 9 d .

Spinbutton ( ) n 9

.

Optionbutton ( ) n 9

n K 9 . ' 9- ( K , 9 K ( 9.

Checkbox n ( 9. '-

n : .

Togglebutton ( ) – , d n

, n

.

Frame ( ) n 9'n-

-9 , K, o -

' ( 9 K.

Image ( ) n

. K ( 9- ( : bmp; cur; gif; ico; jpg; wmf.

Multipage (9 )

( 9 ( 9 . : ( n , o n , o -

(K K 9 ), - ( 9 .

Tabstrip (9 ) – ,

9 . : n

' .

Refedit ( ,

n , n , o -

n 9 9- 9 d. 5 9 d n:

Label ( );

Textbox ( );

Commandbutton ( );

10

Image (K);

Optionbutton ( );

Checkbox.

1.2.2 ! ' ) $ -, , ! &

A 9

:

1): 9 9- , (

K.

2): K 8 7 Visual Basic. : n Visual Basic.

3. J Insert Userform

Visual Basic 9 Insert Userform (:-

s ). ' ( . 1.2).

7 1.2 – 8

Тут вы можете оставить комментарий к выбранному абзацу или сообщить об ошибке.

Оставленные комментарии видны всем.

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]