3
Answers

Windows form Printing

Rashid Khan

Rashid Khan

14y
7.3k
1
Hello every1

I m developing a windows(desktop) project.using asp.net, c# and in that project i have few forms and reports(also form layout).
those having datagridview and textboxes.
some forms having both datagirdview and textboxes and some reports having only gridview . now i want to print them.
values which they contain is result of runtime calculation and database record.
please suggest me how to print

6 forms 9 reports

Thanks
Answers (3)
0
Iftikar Hussain
NA 18.9k 275.5k 11y
Hi,
        Try like this, use unadorned:yes;

ScriptManager.RegisterStartupScript(this, typeof(Page), UniqueID, "javascript:var ans = window.showModalDialog('TransactionHistoryDetail.aspx?' + '&rowID=" + rowID + "&Type=" + OrderType + "&OrderNo=" + OrderNo + "', 'unadorned:yes;dialogWidth=1000px;dialogHeight=700px;resizable: yes;dialogLeft=' + ((screen.width - 1000) / 2) + ';dialogTop=' + (screen.height - 700) / 2 + ''); ", true);

Regards,
Iftikar