We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Open a word document directly

Hi all,

I work with aspose 8.0 and with work with visual studio 2005.

when i click on a image on grid view i call a page who create a document word

the problem is that the document it's open in the same page and if user can open it he lost the page with the grid view and must be click on menu for to go again or click backward for to recovry the page !

here is it the code locate in grid view click on image

imgAttest.Attributes.Add("onclick", string.Format("BLOCKED SCRIPTlocation.href='{0}?ID={1}'; return false;", createWord.aspx, personId.ToString()));

in the end of the page who creates a document i do this :

doc.Save(GetLabel("myDoc.doc", Aspose.Words.SaveFormat.Doc, Aspose.Words.SaveType.OpenInApplication, Response);

how i can repair this problem ?

Thanks for your suggestion

Christophe

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. I think, you can resolve the problem by using one of the approaches suggested here:

http://www.aspose.com/demos/.net-components/aspose.words/csharp/ajax/default.aspx

Hope this helps. Please let me know if you need more assistance, I will be glad to help you.

Best regards,

hi,

thanks your for your post and that's work fine now

thanks for your quick reply

christophe

Hi Christophe,

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

It is perfect that you managed to resolve the problem. Please feel free to ask in case of any issues, I will be glad to help you.

Best regards,