.net - PrintPreview Window in C# -


in windows application in .net, need have print preview option excel file. followings codings.

//excel.application excelapp = new excel.application();

        excel.workbook wb = excelapp.workbooks.open(@"c:\\documents , settings \\admin \\desktop \\docomo\\ news5.xls",                        type.missing, type.missing, type.missing, type.missing, type.missing,                         type.missing, type.missing, type.missing, type.missing, type.missing,                         type.missing, type.missing, type.missing, type.missing);         excel.worksheet ws = (excel.worksheet)wb.worksheets[1];         ws.printpreview(type.missing); 

the compilation successful. didn't print preview window. there requirement of additional parameters or other. don't know how achieve . please guide me.i great full our "techies" timely help. from, m.thillai

make sure worksheet has data in it, , make sure visible.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -