Hi,
1. I have tried using this but I can still expand and contract the width and height for rows and columns. Any other Idea?
2. One more thing. The subject is out side the grid. I hope you will answer me. I am using the Aspose.Grid. So all the applications where I am using Aspose.Grid should be created with the location as http. There are other locations (Ftp and FileSystem) too.
Now I need to open an word document. I have provided all the rights inside "dcomcnfg.exe" for Microsoft word. The instance is created successfully. But its not executing any line of code after Open. Its stick there only. And its keep me waiting. While I have created another application with similar code using locaiton as "FileSystem", it works completely fine. But its not working with "http"as location. So, how can I run this code. I am using IIS ver 5.1 in the local and IIS ver 6.0 in the server.
The thing gets stuck in --> 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);
Here is the Code sample:
private Microsoft.Office.Interop.Word.ApplicationClass MSdoc;
protected void btnUpload_Click(object sender, EventArgs e)
{
string str_path=Server.MapPath("");
object Unknown = Type.Missing;
if (flUploadDoc.FileName.Substring(flUploadDoc.FileName.LastIndexOf('.') + 1).ToLower() == "doc")
{
flUploadDoc.PostedFile.SaveAs(str_path+"\\App_Data\\"+flUploadDoc.FileName);
object source = str_path+"\\App_Data\\"+flUploadDoc.FileName;
object target = str_path+"\\App_Data\\Target.pdf";
if (MSdoc == null)
{
MSdoc = new Microsoft.Office.Interop.Word.ApplicationClass();
}
try
{
MSdoc.Visible = true;
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 = true;
MSdoc.WindowState = WdWindowState.wdWindowStateMaximize;
object Format = Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatPDF;
