Click here to Skip to main content
15,897,187 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Good .NET Hosting Companies??? Pin
R. Giskard Reventlov16-Sep-10 1:17
R. Giskard Reventlov16-Sep-10 1:17 
AnswerRe: Good .NET Hosting Companies??? Pin
NeverHeardOfMe16-Sep-10 1:36
NeverHeardOfMe16-Sep-10 1:36 
GeneralOne DB, many clients Pin
David Mujica16-Sep-10 3:24
David Mujica16-Sep-10 3:24 
GeneralRe: One DB, many clients Pin
NeverHeardOfMe16-Sep-10 3:34
NeverHeardOfMe16-Sep-10 3:34 
GeneralRe: Good .NET Hosting Companies??? Pin
Daniel Ormisher16-Sep-10 10:00
Daniel Ormisher16-Sep-10 10:00 
Questionurlrewrite - catch all paths on iis Pin
Hanzaplast16-Sep-10 1:07
Hanzaplast16-Sep-10 1:07 
QuestionHow to convert document to PDF format in Asp.net using c# Pin
hemananthan15-Sep-10 19:26
hemananthan15-Sep-10 19:26 
AnswerRe: How to convert document to PDF format in Asp.net using c# Pin
Abhijit Jana15-Sep-10 19:45
professionalAbhijit Jana15-Sep-10 19:45 
Plese, use PRE tag for your code block ! Like,

public static void ConverWordToPDF(string Filepath, string Targetpath)
 {

 object Unknown = Type.Missing;
 object Source = Filepath;
 object Target = Targetpath;

 ApplicationClass MSdoc = new ApplicationClass();

 try
 {

 MSdoc.Visible = false;
 MSdoc.Documents.Open(ref Source, ref Unknown,
 ref Unknown, ref Unknown, ref Unknown,
 ref Unknown, ref Unknown, ref Unknown,
 ref Unknown, ref Unknown, ref Unknown,
 ref Unknown, ref Unknown, ref Unknown, ref Unknown, ref Unknown);
 MSdoc.Application.Visible = false;
 MSdoc.WindowState = Microsoft.Office.Interop.Word.WdWindowState.wdWindowStateMinimize;

 object format = Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatPDF;

 MSdoc.ActiveDocument.SaveAs(ref Target, ref format,
 ref Unknown, ref Unknown, ref Unknown,
 ref Unknown, ref Unknown, ref Unknown,
 ref Unknown, ref Unknown, ref Unknown,
 ref Unknown, ref Unknown, ref Unknown,
 ref Unknown, ref Unknown);
 }
 catch (Exception e)
 {
 log.Info("Converted Word to PDF", e);

 }
 finally
 {
 if (MSdoc != null)
 {
 MSdoc.Documents.Close(ref Unknown, ref Unknown, ref Unknown);

 }

 MSdoc.Quit(ref Unknown, ref Unknown, ref Unknown);
 }
 }


It will help us to read the code properly.

AnswerRe: How to convert document to PDF format in Asp.net using c# Pin
fjdiewornncalwe16-Sep-10 2:14
professionalfjdiewornncalwe16-Sep-10 2:14 
AnswerRe: How to convert document to PDF format in Asp.net using c# Pin
T M Gray16-Sep-10 9:08
T M Gray16-Sep-10 9:08 
Questionrange validator for text box not taking range properly Pin
Dhyanga15-Sep-10 10:50
Dhyanga15-Sep-10 10:50 
AnswerRe: range validator for text box not taking range properly Pin
Luc Pattyn15-Sep-10 11:06
sitebuilderLuc Pattyn15-Sep-10 11:06 
GeneralRe: range validator for text box not taking range properly Pin
Dhyanga15-Sep-10 11:42
Dhyanga15-Sep-10 11:42 
AnswerRe: range validator for text box not taking range properly Pin
Arun Jacob15-Sep-10 18:58
Arun Jacob15-Sep-10 18:58 
GeneralRe: range validator for text box not taking range properly Pin
Abhijit Jana15-Sep-10 19:21
professionalAbhijit Jana15-Sep-10 19:21 
AnswerRe: range validator for text box not taking range properly Pin
Abhijit Jana15-Sep-10 19:28
professionalAbhijit Jana15-Sep-10 19:28 
AnswerRe: range validator for text box not taking range properly Pin
Dhyanga16-Sep-10 3:02
Dhyanga16-Sep-10 3:02 
Questionone or more web.config Pin
Jassim Rahma15-Sep-10 9:05
Jassim Rahma15-Sep-10 9:05 
AnswerRe: one or more web.config Pin
Dhyanga15-Sep-10 10:31
Dhyanga15-Sep-10 10:31 
AnswerRe: one or more web.config Pin
Arun Jacob15-Sep-10 19:00
Arun Jacob15-Sep-10 19:00 
GeneralRe: one or more web.config Pin
Abhijit Jana15-Sep-10 19:32
professionalAbhijit Jana15-Sep-10 19:32 
AnswerRe: one or more web.config Pin
Abhijit Jana15-Sep-10 19:39
professionalAbhijit Jana15-Sep-10 19:39 
Questiondiff bw Master page and panel ??? Pin
JC.KaNNaN15-Sep-10 1:33
JC.KaNNaN15-Sep-10 1:33 
AnswerRe: diff bw Master page and panel ??? Pin
Not Active15-Sep-10 3:13
mentorNot Active15-Sep-10 3:13 
Questionshorting in gridview Pin
Dhyanga14-Sep-10 6:46
Dhyanga14-Sep-10 6:46 

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.