Dim hFile As Long 'call funtion for make a format in print page and content and add in print() 'example 'Print(hfile, ManageSpace("Receipt No: " + ds.Tables(0).Rows(0).Item("RR_Number").ToString, 20, 1)) hFile = FreeFile() Dim StrFile2 As String StrFile2 = strAppPath &"\salesbill.txt"; 'StrFile2=G:\ANIYAN\Projects\silentproject\bin\Release\salesbill.txt FileOpen(hFile, StrTmpReportBatFile, OpenMode.Output) Print(hFile,"TYPE"&StrFile2 &">prn") FileClose(hFile) Shell(StrTmpReportBatFile, AppWinStyle.Hide)
Dim monProcess As New Process() monProcess.StartInfo.FileName = Chemin monProcess.StartInfo.Verb = "Print" monProcess.StartInfo.CreateNoWindow = True monProcess.Start()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)