Need help with Delphi Printing


[ Related Articles and Replies ] [ DelphiLand FAQ ] [ Delphi Tutorials ]

Posted by SteD on October 29, 2002:

Thanks for ur input on my last questions they were really usefull.

iv downloaded the printer thingy, and it does exactly want i want my program 2do, print a word document from delphi but when i try using the following code from ur document on a button:

ShellExecute(Handle, 'print', PChar('C:\Files\WPFILES\test.doc'), nil, nil, SW_SHOW);

I get this error:

[Error] Unit1.pas(30): Undeclared identifier: 'ShellExecute'

im new 2 delphi, so please could u tell me well im going wrong, do i need 2 declare shellexecute in the variables???if so what as???please help

cheers SteD


Related Articles and Replies:


[ Related Articles and Replies ] [ DelphiLand FAQ ] [ Delphi Tutorials ]