autoitxp Posted November 24, 2007 Share Posted November 24, 2007 Hi i didnt found any help about printing data like if i want to to print GUICtrlCreateInput data then wat to do how i can print that Regards sim Link to comment Share on other sites More sharing options...
tW34k Posted November 24, 2007 Share Posted November 24, 2007 You can use guictrlread. Look at the thread I made 2 seconds ago. Valuta helped me out there big time. Link to comment Share on other sites More sharing options...
autoitxp Posted November 24, 2007 Author Share Posted November 24, 2007 no i mean to say it print page for GUICtrlCreateInput i want to print page for my GUICtrlCreateInput fields Hope u got it Link to comment Share on other sites More sharing options...
martin Posted November 24, 2007 Share Posted November 24, 2007 no i mean to say it print page for GUICtrlCreateInput i want to print page for my GUICtrlCreateInput fields Hope u got it If you mean print on a printer then maybe have a look at this. I think it might do what you want, although I am a bit biased.Or you could just write the data to a text file then open the text file with notepad and print from there, or send the data directly to notepad and print. There is also a word udf which might be good for this. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Valuater Posted November 24, 2007 Share Posted November 24, 2007 Maybe... _PrintText("This is a test letter for the default printer") Func _PrintText($File_or_Text) Local $s_File = $File_or_Text If Not FileExists($s_File) Then $s_File = @TempDir & "\Print Manager.txt" FileDelete($s_File) FileWrite($s_File, $File_or_Text) EndIf Local $a_Ret = DllCall("shell32.dll", "long", "ShellExecute", _ "hwnd", 0, _ "string", "print", _ "string", $s_File, _ "string", "", _ "string", "", _ "int", @SW_HIDE) If $a_Ret[0] > 32 And Not @error Then Return 1 Return SetError($a_Ret[0],"",0) EndFunc I actually did a lot of research into dll calls and objects, this would be the easy way to do it without additional dlls 8) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now