Sign in to follow this  
Followers 0
autoitxp

print current input data

5 posts in this topic

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

Share this post


Link to post
Share on other sites



You can use guictrlread. Look at the thread I made 2 seconds ago. Valuta helped me out there big time.

Share this post


Link to post
Share on other sites

no i mean to say it print page for GUICtrlCreateInput i want to print page for my GUICtrlCreateInput fields

Hope u got it

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0