-
In the App_Code subfolder of the NorthwindWebService project, open the file Service.vb (in Visual Basic) or Service.cs (in C#).
-
Find the comment that is labeled TODO:.
-
Change the value of the workbookLocation variable to point to the installation location of the sample.
-
In the NorthwindWebSite project, open the file Default.aspx.vb (in Visual Basic) or Default.aspx.cs (in C#).
-
Find the two comments that are labeled TODO:.
-
Change the values of the invoiceDirectory and workbookLocation variables to point to the installation location of the sample.
-
Select the project NorthwindInvoice.
-
On the Project menu, click NorthwindInvoice Properties.
-
Click the Settings tab.
-
On the Settings page, change the value of RollupLocation to point to the location of NorthwindOrderRollup.xls on your computer.
-
Press F5.
-
On the actions pane, select a category of products.
-
Select a product in the worksheet and then click Order.
-
Type a positive number in the dialog box and then click OK.
-
On the actions pane, click View Cart.
You can delete a product from the order or change the quantity.
-
Click Continue Shopping to add more products to the order.
— or —
Click Checkout to finish the order.
-
Type the shipping information in the dialog box and then click OK to submit the order.
The order is submitted to the Northwind Web service.
-
To view order history for all products, open the Northwind Order Rollup workbook and view the reports that are available on the actions pane.
-
To create an invoice for an order, open the Northwind Web site, click an Order ID, and then click Create Invoice.
The Northwind Web site reads the order data from the data cache in the Northwind Order Rollup workbook and saves it in a new document created from the Northwind Invoice template.
-
To view the invoice, click View Invoice on the Web page.
— or —
Open the new Word document in the NorthwindInvoice\bin or NorthwindInvoice\bin\Debug folder.
-
To create another invoice, open the Northwind Invoice template, select a Customer and an Order ID, and then click OK.