Click here to Skip to main content
16,006,013 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Faliure Sending mail---urgent Pin
Arnab198729-Mar-09 20:54
Arnab198729-Mar-09 20:54 
AnswerRe: Faliure Sending mail---urgent Pin
dpkdiya25-Mar-09 5:24
dpkdiya25-Mar-09 5:24 
GeneralRe: Faliure Sending mail---urgent Pin
Arnab198729-Mar-09 21:06
Arnab198729-Mar-09 21:06 
Questiondisplay image inside aspx page and edit it Pin
samerh25-Mar-09 3:56
samerh25-Mar-09 3:56 
AnswerRe: display image inside aspx page and edit it Pin
Yusuf25-Mar-09 4:29
Yusuf25-Mar-09 4:29 
Questionmaster pages Pin
viit.projectgroup25-Mar-09 3:48
viit.projectgroup25-Mar-09 3:48 
AnswerRe: master pages Pin
Rutvik Dave25-Mar-09 4:18
professionalRutvik Dave25-Mar-09 4:18 
QuestionHow to convert any file to .pdf using Adobe PDF Printer ? Pin
Krushna Sahu25-Mar-09 3:28
Krushna Sahu25-Mar-09 3:28 
Hi,
I've an application developed in ASP.Net to convert any file to pdf file using PDF Printer.
In the .aspx page I've kept one button control and in the click event I've written :

protected void Button1_Click(object sender, EventArgs e)
{
try
{
System.Diagnostics.Process printProcess = new System.Diagnostics.Process();

printProcess.StartInfo.FileName = "E:\\Krushna.doc";

printProcess.StartInfo.Verb = "printto";
printProcess.StartInfo.Arguments = "\"Adobe PDF\"";

printProcess.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
printProcess.StartInfo.CreateNoWindow = true;
printProcess.Start();

printProcess.Dispose();
}
catch (Exception ex)
{
throw ex;
}
}

I've set the PDF Printer to my default printer.
In the properties of the PDF Printer, in the Port tab, I've set the port to "My Document\*.pdf " . It will save the .pdf file to My Document.

I'm using ASP.Net 2.0 with IIS 5.1 installed.

The issue is :
This is working fine while running the application directly(i.e. the Krushna.doc file is converting to Krushna.pdf and save to My Document Folder) .

But when the application running from IIS, it is asking to save the pdf file i.e. one save dialog window is opened. But I need to directly save the pdf file to the My Document Folder.

Please reply...It is urgent requirment.

Thank you.

--Krushna Chandra Sahu
prfkrushna@gmail.com

AnswerRe: How to convert any file to .pdf using Adobe PDF Printer ? Pin
Yusuf25-Mar-09 4:40
Yusuf25-Mar-09 4:40 
GeneralRe: How to convert any file to .pdf using Adobe PDF Printer ? Pin
Krushna Sahu25-Mar-09 19:36
Krushna Sahu25-Mar-09 19:36 
Questionupdate panel validation problem Pin
Mogaambo25-Mar-09 3:01
Mogaambo25-Mar-09 3:01 
AnswerRe: update panel validation problem Pin
Yusuf25-Mar-09 4:41
Yusuf25-Mar-09 4:41 
QuestionUpdatePanel for Buttion Pin
antony beula25-Mar-09 2:56
antony beula25-Mar-09 2:56 
AnswerRe: UpdatePanel for Buttion Pin
Viral Upadhyay25-Mar-09 3:47
Viral Upadhyay25-Mar-09 3:47 
QuestionDon`t know whether its a bug in Gridviews empty data template Pin
www.Developerof.NET25-Mar-09 2:48
www.Developerof.NET25-Mar-09 2:48 
AnswerRe: Don`t know whether its a bug in Gridviews empty data template Pin
samerh25-Mar-09 4:13
samerh25-Mar-09 4:13 
GeneralRe: Don`t know whether its a bug in Gridviews empty data template Pin
www.Developerof.NET25-Mar-09 4:28
www.Developerof.NET25-Mar-09 4:28 
GeneralRe: Don`t know whether its a bug in Gridviews empty data template Pin
tech60325-Mar-09 15:43
tech60325-Mar-09 15:43 
GeneralRe: Don`t know whether its a bug in Gridviews empty data template Pin
www.Developerof.NET25-Mar-09 22:15
www.Developerof.NET25-Mar-09 22:15 
Questionchart in asp.net Pin
Jooda Funsho Joseph25-Mar-09 2:44
Jooda Funsho Joseph25-Mar-09 2:44 
AnswerRe: chart in asp.net Pin
Viral Upadhyay25-Mar-09 3:21
Viral Upadhyay25-Mar-09 3:21 
AnswerRe: chart in asp.net Pin
www.Developerof.NET25-Mar-09 3:24
www.Developerof.NET25-Mar-09 3:24 
AnswerRe: chart in asp.net Pin
samerh25-Mar-09 4:19
samerh25-Mar-09 4:19 
QuestionSQL database Pin
kibromg25-Mar-09 2:31
kibromg25-Mar-09 2:31 
AnswerRe: SQL database Pin
Brian W King25-Mar-09 3:23
Brian W King25-Mar-09 3:23 

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.