I am exporting some custom Layout information into different formats like pdf,excel,txt etc from the grid.
When I am exporting the system it is asking ,with what name the file has to be stored and the path.
And if I provide them, it is getting save successfully .But,After saving the document it is asking the user to open the document or not.
as FileC:\Users\Srikrishna.Murthy\Desktop\Default.jpeg.Do you want to open it?...Now I want to customize this text.I am not handling this message.Upon saving the document,it pops up the user to open or not.
Now How Can I customize this message.Should I Override any events?
This following is the piece of code.
private void ExportTo(string filename, CustomLayoutData layoutData)
Cursor currentCursor = Cursor.Current;
Cursor.Current = Cursors.WaitCursor;
XmlSerializerFactory factory = new XmlSerializerFactory();
string xmlString = string.Empty;
using (TextWriter twriter = new StringWriter())
XmlSerializer xs = factory.CreateSerializer(typeof(CustomLayoutData));
xmlString = twriter.ToString();
XmlDocument xmlDoc = new XmlDocument();
Cursor.Current = currentCursor;
catch (Exception ex)
Thanks In advance,