Print a .txt file

bamverbamver Member Posts: 30
Hi,

I need to print a .txt file from Navision, but not using the default printer. The code I'm using is this:

CREATE(ObjShell);
objFolder := ObjShell.NameSpace(Folder);
objFolderItems := objFolder.Items;
objFolderItem := objFolderItems.Item(Filename);
objFolderItem.InvokeVerb('PRINT');

But this always prints the file using the default printer. How can I do it to ask the user for the desired printer and print the file on it?

Thanks in advance.
Sign In or Register to comment.