plz state the problem much clearly. give some sample code which u have tried and failed. do u want to print the textfile content to a Dot Matrix Printer in DOS Mode? Do u want a formatted windows based output of the textfile content?
I am able to print now but I have a different situation, i need to print in landscape orientation instead of portrait
I am printing in text and I believe Notepad is the program that opens the reports by default
here is a sample of the code I am using and works fine
Public Declare Function apiShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA" _
(ByVal hWnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) _
Private Sub cmdPrint_Click()
Dim strFileAndPath As String
Dim lngReturn As String
strFileAndPath = "C:\Data\P139-C150-802-07-31-08.txt"
lngReturn = apiShellExecute(hWndAccessApp, "print", _
strFileAndPath, vbNullString, vbNullString, 0)
As I explained above, this code works and i am printing my reports but the orientation needs to be changed to landscape
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...