- Home
- Products
- Integration
- Tutorial
- Barcode FAQ
- Purchase
- Company
Part 7: Integrating Excel with Other Applications in Visual C#.NET
Part 7: Integrating Excel with Other Applications QR-Code Printer In Visual C# Using Barcode generation for Visual Studio .NET Control to generate, create QR Code image in .NET applications. www.OnBarcode.comQR Code Scanner In C#.NET Using Barcode scanner for VS .NET Control to read, scan read, scan image in .NET framework applications. www.OnBarcode.comUsing Excel Data in Word and PowerPoint Documents
Encode Bar Code In Visual C#.NET Using Barcode maker for .NET Control to generate, create bar code image in .NET applications. www.OnBarcode.comRecognize Barcode In C# Using Barcode decoder for .NET Control to read, scan read, scan image in .NET applications. www.OnBarcode.comPaste-Linking an Excel Table into Word
Encoding QR In .NET Using Barcode generator for ASP.NET Control to generate, create QR image in ASP.NET applications. www.OnBarcode.comQR Code Maker In Visual Studio .NET Using Barcode maker for Visual Studio .NET Control to generate, create QR Code image in Visual Studio .NET applications. www.OnBarcode.comYou can paste-link any of the formats shown in Figure 23-3 and described in the preceding sections by selecting Paste Link in the Paste Special dialog box. When you do this, Word creates a field that references the source of your Excel data. The field is a code (comparable to an external-reference formula in Excel) that tells the application how to update the data if you request a manual update. The code also tells the application how to locate the data for editing if you double-click the linked information on your Word document. You can see the code by choosing Tools, Options in Word, clicking the View tab, and selecting the Field Codes check box. Links from Excel into Word are automatic by default, which means that any time the Excel source is changed, the Word document is automatically adjusted. You can switch to manual linking by choosing Edit, Links, selecting the linked item, and selecting the Manual Update option in Word. In the Links dialog box, as shown in Figure 23-5, you can also click Break Link to disassociate the Word data from its Excel source, or Change Source to point the link to different data. QR Code Encoder In Visual Basic .NET Using Barcode encoder for VS .NET Control to generate, create Denso QR Bar Code image in .NET applications. www.OnBarcode.comBarcode Generation In C# Using Barcode drawer for Visual Studio .NET Control to generate, create bar code image in Visual Studio .NET applications. www.OnBarcode.comf23ie05
PDF 417 Printer In Visual C#.NET Using Barcode encoder for Visual Studio .NET Control to generate, create PDF 417 image in Visual Studio .NET applications. www.OnBarcode.comMake Matrix Barcode In C#.NET Using Barcode creator for .NET framework Control to generate, create Matrix Barcode image in Visual Studio .NET applications. www.OnBarcode.comIf you re using manual updating, you can also force an update by clicking Update Now in the Links dialog box. A simpler way to update your table is to select it and press F9. Code 3 Of 9 Printer In C# Using Barcode drawer for Visual Studio .NET Control to generate, create Code 3/9 image in .NET framework applications. www.OnBarcode.comCreate EAN / UCC - 8 In Visual C# Using Barcode generation for .NET framework Control to generate, create EAN 8 image in Visual Studio .NET applications. www.OnBarcode.comLinking to Named Ranges
GS1 128 Creation In Java Using Barcode generator for Java Control to generate, create GS1 128 image in Java applications. www.OnBarcode.comDataMatrix Generator In Java Using Barcode generator for Eclipse BIRT Control to generate, create DataMatrix image in BIRT applications. www.OnBarcode.comIt is extremely important that you make sure Word identifies the source of an Excel link by means of a range name, not by an ordinary range reference. Otherwise, if the source table changes location for any reason (for example, if someone inserts or deletes a few rows), the link will no longer reference the original table. For information about naming ranges, see Defining and Managing Names on page 370. 595 Scanning UPC-A Supplement 2 In None Using Barcode scanner for Software Control to read, scan read, scan image in Software applications. www.OnBarcode.comANSI/AIM Code 39 Drawer In None Using Barcode generator for Online Control to generate, create Code-39 image in Online applications. www.OnBarcode.com 23
Make Code 128 Code Set C In None Using Barcode creator for Software Control to generate, create Code-128 image in Software applications. www.OnBarcode.comCode-128 Creator In Java Using Barcode generator for Eclipse BIRT Control to generate, create Code 128 Code Set B image in BIRT reports applications. www.OnBarcode.comFigure 23-5. In Word s Links dialog box, you can switch between manual and automatic updating, modify the link specification, or break the link. Scan Quick Response Code In Visual C# Using Barcode reader for VS .NET Control to read, scan read, scan image in .NET framework applications. www.OnBarcode.comGenerate Code-128 In Visual Studio .NET Using Barcode drawer for Reporting Service Control to generate, create Code 128C image in Reporting Service applications. www.OnBarcode.comPart 7: Integrating Excel with Other Applications
Microsoft Office Excel 2003 Inside Out If the worksheet range has a name at the time you copy it to the Clipboard, Word will reference it by name when you perform your paste-link. If it is not named, Word will reference it by cell address, using R1C1 notation. If you subsequently assign a name to the range in Excel and perform a manual update, Word will continue to reference it by address, not by name. To fix the reference by hand, do the following. 1 Choose Edit, Links in Word.
You ll see a dialog box similar to the one shown in Figure 23-5, and in the Item column for your link, you ll find the R1C1 address of the source table. 2 Click Change Source.
A file-browser dialog box will appear.
3 Click Item in this dialog box to get to the Set Item dialog box, shown here.
g23ie01
4 Delete the R1C1 range reference, type your new range name, and click OK. You ll be
returned to the file-browser.
5 Select the name of the file in which your table resides, and click Open. 6 Back in the Links dialog box, click OK, and your link will henceforth know its name. Linking with Hyperlinks
An alternative way to create a link between a Word document and an Excel document is to use hyperlinks. With an Excel range on the Clipboard, you can choose Edit, Paste As Hyperlink in Word. As Figure 23-6 shows, each cell in the copied range becomes a separate, individual hyperlink. Each hyperlink points to the upper left corner cell (not necessarily the active cell) in the copied range. Formats are preserved (but each cell gets a hyperlink underline unless you change the way Word normally displays hyperlinks); graphical elements are omitted from the copy. 23
Part 7: Integrating Excel with Other Applications
Using Excel Data in Word and PowerPoint Documents
f23ie06
Figure 23-6. Hyperlinks can connect a Word document to an Excel document, but they are not updated when the source changes. The principal disadvantage of using hyperlinks instead of OLE links (that is, paste-linking) is that hyperlinks don t get updated when the source changes. A hyperlink can make it easy for you or another user to find your way back to the data source, but it provides no assurance that your Word document is faithful to the source.
|
|