function OpenWin(url, w, h) { if(!w) w = 400; if(!h) h = 300; window.open(url, "_new", "width=" + w + ",height=" + h + ",menubar=no,toobar=no,scrollbars=yes", true); } function Print() { window.focus(); if(window.print) { window.print(); window.setTimeout('window.close();',5000); } }
| Team-Fly | |
| Special Edition Using Microsoft® Visual Basic® .NET By Brian Siler, Jeff Spotts
| Table of Contents | | Part V: Visual Basic and Databases |
In this chapter Printing with Windows Forms Using Crystal Reports From Here… Despite the high availability of electronic and online information, the "paperless office" remains a fantasy. Printed reports are still an important part of most software systems. In this chapter, we will discuss two different techniques you can use to add report-printing capability to your Visual Basic applications. First, we will look at the Windows forms Printing namespace, which allows you to precisely control low-level printer operations using Visual Basic code. The second half of the chapter covers Crystal Reports, a professional reporting tool included with Visual Studio .NET that allows you to quickly design complex data-driven reports. To demonstrate these techniques, we will create sales reports for a fictitious company that produces toys and food for cats. |
| Team-Fly | |
|
| |
|