How to save the file on Desktop by default ?

Posted by Laghaterohan under Regular Expressions on 4/22/2011 | Points: 10 | Views : 2032 | Status : [Member] | Replies : 1
How to save the file on Desktop by default by using ExportToDisk method??? or is there any way around??

Please help..

Best Regards,
Rohan Laghate



Responses

Posted by: Prabhakar on: 4/22/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi Laghaterohan

try it. .

string add;
add="C:\Windows\Desktop";

MyReport.ExportToDisk(ExportFormatType.PortableDocFormat,"add + MyReport");

Best Regard's
Prabhakar

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response