random topics: ole objects, mail merge and xml exporting

69
CSC 240 (Blum) 1 Random Topics: OLE Objects, Mail Merge and XML Exporting

Upload: miette

Post on 06-Jan-2016

42 views

Category:

Documents


0 download

DESCRIPTION

Random Topics: OLE Objects, Mail Merge and XML Exporting. OLE Objects (specifically images). Open the Player table and in Design View add description for the fields made the last time. Add a new field called Picture and choose OLE Object as the Data Type. OLE definition in Webopedia.com. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 1

Random Topics: OLE Objects, Mail Merge and

XML Exporting

Page 2: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 2

OLE Objects (specifically images)

Page 3: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 3

Open the Player table and in Design View add

description for the fields made the last time.

Page 4: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 4

Add a new field called Picture and choose

OLE Object as the Data Type.

Page 5: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 5

OLE definition in Webopedia.com

Page 6: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 6

Access’s OLE Object Data Type

Page 7: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 7

Save Keith Adams’ picture.

• Return to the Eagles roster page http://www.philadelphiaeagles.com/team/default.jsp

• Click on the Adams, Keith hyperlink.

Page 8: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 8

Right click on the picture and choose Save Picture As …

Page 9: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 9

Click on the Create New Folder button and

rename the file. Click Open.

Page 10: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 10

Click on Save.

Page 11: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 11

Similarly pull down images of David Akers and Ian Allen.

Page 12: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 12

Open the Player table in DataSheet View. Right click in the Picture field for the Keith Adams record and choose Insert Object …

Page 13: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 13

In the dialog box, select the Create from File radio

button and check the Link checkbox.

Page 14: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 14

Click on Browse ... and locate and highlight

the file and click OK.

Page 15: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 15

The file’s path should be filled in the File textbox. Click OK.

Page 16: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 16

Result of inserting the OLE object.

Page 17: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 17

Close the table. Click on the drop-down arrow next

to the New Object button and select AutoForm.

Page 18: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 18

Result of AutoForm on Player table.

Page 19: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 19

Double click on the jpg icon on the form. A package that displays the jpg image (in this case Internet Explorer) should arise. Save the Form.

Page 20: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 20

Right click on the next image file, choose Open With/Choose Program and select Microsoft Paint from the list and click OK. Or open Microsoft Paint under Programs/Accessories and use File/Open ….

Page 21: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 21

Go to File/Save As …. Choose 256 Color

Bitmap as the type. Click Save. Answer Yes.

Page 22: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 22

Similarly save David Akers’ image as a bitmap. Close Paint.

Page 23: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 23

Return to the Player table in DataSheet view. Right click in the Picture field of the David Akers record. Choose Insert Object …

Page 24: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 24

Add the David Akers bmp file. Check Display as Icon.

Page 25: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 25

Repeat for the Ian Allen image but do not

check Display as Icon this time.

Page 26: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 26

Result of adding bitmap files. Note the field displays “Bitmap Image” instead of “Package”

Page 27: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 27

Result in Form view. The bitmap not displayed as icon can be seen.

Page 28: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 28

Close the database. Return to Paint and change

the bitmap files and save them. Close Paint.

Page 29: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 29

Reopen the database. The display as icon image should change, the other should not.

Page 30: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 30

Mail Merge

Page 31: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 31

Open a Word document, go to Tools/Letters and Mailings/Mail Merge

Page 32: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 32

Select the type of document for the merge.

Proceed to the next step.

Page 33: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 33

Make further choices about the document to be merged.

Page 34: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 34

Select recipients from an existing list. Browse.

Page 35: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 35

Find the database using the dialog box. Click Open.

Page 36: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 36

Choose the table or query for the merge.

Page 37: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 37

Select recipients. Sort recipients.

Page 38: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 38

Result of recipient selection. Proceed to next step.

Page 39: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 39

Insert Date

Page 40: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 40

Prepare to add address block to your letter.

Page 41: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 41

In the Insert Address Block dialog box, click Match Fields ….

Page 42: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 42

Use the Match Fields dialog box to relate the database fields

to those standard to addressing a letter.

Page 43: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 43

Matched fields. Address 2 is under Optional.

Page 44: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 44

Result of adding Address Block, position cursor to add Greeting.

Page 45: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 45

Use the Greeting Line dialog box to select the greeting. We should have had a title field in our database to allow for a more formal address.

Page 46: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 46

Document after Greeting Line added. Start

writing your letter.

Page 47: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 47

Document after adding body of letter. Proceed to the letter preview.

Page 48: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 48

Preview shows examples of your letter. You

can return to previous steps to fix any errors.

Page 49: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 49

Another preview obtained by clicked >>. Proceed to merge the letter.

Page 50: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 50

We will choose to create a merged document

rather than print – to save on paper.

Page 51: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 51

Created a six page document with each

page being a letter to a different recipient.

Page 52: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 52

Save merged letters document.

Page 53: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 53

Save document that did merging.

Page 54: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 54

Open the database and add a new record.

Page 55: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 55

Opening document that did merging.

Page 56: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 56

Quickly run through merge process.

Page 57: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 57

Repeating previous procedure (not from

scratch) yields a 7-page document.

Page 58: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 58

Exporting XML

Page 59: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 59

Open up the database, select a table, go to File/Export.

Page 60: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 60

In the export dialog box, choose XML from the Save as Type drop-down list. Then click Export.

Page 61: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 61

Webopedia.com definition of XML.

Page 62: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 62

For our case, check all the boxes. Click OK.

Page 63: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 63

Webopedia.com definition of XSD.

Page 64: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 64

Webopedia.com definition of XSL.

Page 65: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 65

View files created in Windows Explorer.

Page 66: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 66

The .htm file opened in Internet Explorer.

Page 67: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 67

The .htm file opened in Notepad.

Page 68: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 68

The .xml file opened in Internet Explorer.

Page 69: Random Topics:  OLE Objects, Mail Merge and XML Exporting

CSC 240 (Blum) 69

The .xml file opened Notepad.