Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi

i get this error while running my web application

(are you missing an assembly reference?)C:\Documents and Settings\mostafa\My Documents\Visual Studio 2008\search_last\search\App_Code\Office.cs1 33 98 search


and i added

C#
using Microsoft.Office;
using Microsoft.Office.Interop.Word;
using Microsoft.Office.Interop.Excel;
using Visio = Microsoft.Office.Interop.Visio;
using VisioWeb = Microsoft.Office.Interop.Visio.SaveAsWeb;
using PowerPoint = Microsoft.Office.Interop.PowerPoint;


in my Code and add the reference


the error here
C#
presentation = powerPoint.Presentations.Open(refSourceFileName, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse);
               presentation.SaveAs(newRefTargetDirectory, PowerPoint.PpSaveAsFileType.ppSaveAsHTML, Microsoft.Office.Core.MsoTriState.msoCTrue);



what can i do???

Thx
Posted
Comments
[no name] 5-Mar-13 9:23am    
Did you add a reference to the DLLs in your solution explorer?
Darsh_Basha 5-Mar-13 9:35am    
yea
added reference for (word,Excel, PowerPoint,Visio)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900