Click here to Skip to main content
15,891,704 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to publish website through IIS Pin
hi_everybody25-Feb-10 19:49
hi_everybody25-Feb-10 19:49 
QuestionNo results.. please try again message Pin
DaithiBoo25-Feb-10 1:02
DaithiBoo25-Feb-10 1:02 
AnswerRe: No results.. please try again message Pin
Dinesh Mani25-Feb-10 1:20
Dinesh Mani25-Feb-10 1:20 
GeneralRe: No results.. please try again message Pin
DaithiBoo25-Feb-10 1:47
DaithiBoo25-Feb-10 1:47 
QuestionDynamic Report Designing Pin
Kashif Sabir25-Feb-10 0:43
Kashif Sabir25-Feb-10 0:43 
AnswerRe: Dynamic Report Designing Pin
i gr825-Feb-10 19:31
i gr825-Feb-10 19:31 
Questionneed help for writting javascript for transferring data from one system to another Pin
hi_everybody25-Feb-10 0:28
hi_everybody25-Feb-10 0:28 
Questionthe command is not available because no document is open Pin
vimalkumarsinghal24-Feb-10 23:06
vimalkumarsinghal24-Feb-10 23:06 
hi guys

i m using asp.net an C#

im trying to convert .docx to html

when i use my machine documents open and also easily converted to html,,my machine have (xp sp2,visual studio2008,MS Office 2007)

when i go for client pc when i click convert button i m getting error like this

"the command is not available because no document is open"
Microsoft.Office.Interop.Word.ApplicationClass wordApplication = new ApplicationClass();
                    object o_nullobject = System.Reflection.Missing.Value;
                    String strfiletoupload = @"C:\inetpub\wwwroot\wss\VirtualDirectories\12122\uploaded\template\DeveloperEmail.docx";
                    object o_filePath = strfiletoupload;
                    Microsoft.Office.Interop.Word.Document doc = wordApplication.Documents.Open(ref o_filePath,
                                  ref o_nullobject, ref o_nullobject, ref o_nullobject, ref o_nullobject, ref o_nullobject,
                                 ref o_nullobject, ref o_nullobject, ref o_nullobject, ref o_nullobject, ref o_nullobject,
                                ref o_nullobject, ref o_nullobject, ref o_nullobject, ref o_nullobject, ref o_nullobject);
                    object o_newfilename = @"C:\inetpub\wwwroot\wss\VirtualDirectories\12122\uploaded\template\NewsletterEmail.html";
                    object o_format = Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatFilteredHTML;
                    //object o_format = Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatHTML;
                    object o_encoding = Microsoft.Office.Core.MsoEncoding.msoEncodingUTF8;
                    object o_endings = Microsoft.Office.Interop.Word.WdLineEndingType.wdCRLF;
                    //Microsoft.Office.Interop.Word.wd
                    object o_BiDiMark = true;

                    wordApplication.ActiveDocument.SaveAs(ref o_newfilename, ref o_format, ref o_nullobject,
                            ref o_nullobject, ref o_nullobject, ref o_nullobject, ref o_nullobject, ref o_BiDiMark,
                            ref o_BiDiMark,
                        ref o_nullobject, ref o_nullobject, ref o_encoding, ref o_nullobject,
                            ref o_nullobject, ref o_endings, ref o_BiDiMark);
                    doc.Close(ref o_nullobject, ref o_nullobject, ref o_nullobject);

                    wordApplication.Quit(ref o_nullobject, ref o_nullobject, ref o_nullobject);
                    System.Runtime.InteropServices.Marshal.ReleaseComObject(wordApplication);



Please help me to fix this

regard
vimal
AnswerRe: the command is not available because no document is open Pin
Nasri871-Mar-10 21:39
Nasri871-Mar-10 21:39 
QuestionHow do we convert a data from database into XMLfile using asp.net with vb.net Pin
vbmadhavi24-Feb-10 23:05
vbmadhavi24-Feb-10 23:05 
AnswerRe: How do we convert a data from database into XMLfile using asp.net with vb.net Pin
Nuri Ismail25-Feb-10 0:18
Nuri Ismail25-Feb-10 0:18 
GeneralRe: How do we convert a data from database into XMLfile using asp.net with vb.net Pin
Sanjay Jaiswal 123456725-Feb-10 0:32
Sanjay Jaiswal 123456725-Feb-10 0:32 
GeneralRe: How do we convert a data from database into XMLfile using asp.net with vb.net Pin
Nuri Ismail25-Feb-10 0:41
Nuri Ismail25-Feb-10 0:41 
QuestionOnclick Event Pin
Paulraj G24-Feb-10 22:54
Paulraj G24-Feb-10 22:54 
AnswerRe: Onclick Event Pin
R. Giskard Reventlov24-Feb-10 23:24
R. Giskard Reventlov24-Feb-10 23:24 
AnswerRe: Onclick Event Pin
Lokesh Zende25-Feb-10 4:04
professionalLokesh Zende25-Feb-10 4:04 
GeneralRe: Onclick Event Pin
Not Active25-Feb-10 4:12
mentorNot Active25-Feb-10 4:12 
QuestionCannot get checkbox element in Datagrid using javascript in FF Pin
lahari_padigala24-Feb-10 21:09
lahari_padigala24-Feb-10 21:09 
AnswerRe: Cannot get checkbox element in Datagrid using javascript in FF Pin
Chetan Patel24-Feb-10 22:38
Chetan Patel24-Feb-10 22:38 
GeneralRe: Cannot get checkbox element in Datagrid using javascript in FF Pin
lahari_padigala25-Feb-10 1:13
lahari_padigala25-Feb-10 1:13 
QuestionNot loading Images in login page web application Pin
myms.net24-Feb-10 21:03
myms.net24-Feb-10 21:03 
AnswerRe: Not loading Images in login page web application Pin
anushh24-Feb-10 22:35
anushh24-Feb-10 22:35 
GeneralRe: Not loading Images in login page web application Pin
myms.net24-Feb-10 23:06
myms.net24-Feb-10 23:06 
AnswerRe: Not loading Images in login page web application Pin
Ravindra Nidhonkar24-Feb-10 23:07
Ravindra Nidhonkar24-Feb-10 23:07 
Questionhow to insert the data into xml file using asp.net with vb.net Pin
vbmadhavi24-Feb-10 20:18
vbmadhavi24-Feb-10 20:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.