You have to open the files that your project consist of, and then print it.
VB Code:
Private Sub Command3_Click() CommonDialog1.ShowPrinter Open "C:\MyApp\Form1.frm" For Binary As #1 s = Input(LOF(1), 1) Close #1 Printer.Print s, CommonDialog1.hDC Printer.EndDoc End Sub
the sample will print source code (and some) of the From1 in the project located in C:\MyApp




Reply With Quote