0
Answer

VISIO SDK problems

francislc

francislc

20y
1.6k
1
Hi all. I am trying to build the 'Print Preview' sample that can be found in the VISIO SDK samples (under the category 'c# - publishing' in code librarian). I follow these steps (these steps are exactly the ones indicated in the Microsoft Office Visio SDK Documentation): quote: -------------------------------------------------------------------------------- In Microsoft Visual Studio .NET 2003, on the File menu, point to New and then click Project. In the New Project dialog box, under Project Types, click Visual C# Projects, and then in the Templates list, select Windows Application. Name the project, specify the location where you want to save it, and click OK. On the Project menu, click Add Windows Form, and name the form PrintPreview.cs. Double-click the form to open the code window. Open Code Librarian, double-click Microsoft Visual C#.NET, double-click Publishing, and then click Print Preview. Copy the sample code, and in Visual Studio, paste the sample code into the PrintPreview.cs code window, replacing the previous code. On the Project menu, click Add Reference. In the component list, select stdole and then click Select. Click the COM tab, select Microsoft Office 11.0 Object Library and Microsoft Visio 11.0 Type Library, click Select, and then click OK. -------------------------------------------------------------------------------- When I try to build it I get an error: "The type or namespace name 'Interop' does not exist in the class or namespace 'Microsoft.Office'" This error happens whenever I try to use: "Microsoft.Office.Interop.Visio" Am I missing a reference? I added the three references indicated in the steps above. Of course, I installed Visio SDK and also VSIP. I need for this to be built! What reference am I missing? What am I doing wrong? Any help will be greatly appreciated.
Next Recommended Forum