USING:
Define Variable type Automation "'NaviPrinter Library'.NaviPrinterClass" and use method DirectPrint.
Printer name parameter you can read from Navision table 2000000039 - Printer
I register the .dll file and declare the variables..
Name DataType Subtype Length
naviPrinter Automation 'NaviPrinter Library'.NaviPrinterClass
RecPrinter Record Printer
I place a button on the item card form , in the button click i wrote code as below....
naviPrinter.DirectPrint(RecPrinter.Name,"No.");
I can't access the Network BarCode Printer ZDesigner TLP 2844 which uses an LPT1 Port.
'RecPrinter.Name' variable have always blank.
What i do for this.... Is any setting with the Printer needed...?
Pls Help me..... ](*,)
Comments
You instructed to do like below...
USING:
Define Variable type Automation "'NaviPrinter Library'.NaviPrinterClass" and use method DirectPrint.
Printer name parameter you can read from Navision table 2000000039 - Printer
I register the .dll file and declare the variables..
Name DataType Subtype Length
naviPrinter Automation 'NaviPrinter Library'.NaviPrinterClass
RecPrinter Record Printer
I place a button on the item card form , in the button click i wrote code as below....
naviPrinter.DirectPrint(RecPrinter.Name,"No.");
I can't access the Network BarCode Printer ZDesigner TLP 2844 which uses an LPT1 Port.
'RecPrinter.Name' variable have always blank.
What i do for this.... Is any setting with the Printer needed...?
Pls Help me..... ](*,)
Regards,
Jayasankar
i have tried you suggestion and the only problem i am facing is it is only printing the documents number not the full data.
CREATE(Print_rec);
Print_Select_Rec."Printer Name" := '\\sreddy\HP LaserJet 2300 Series PCL 5';
Print_rec.DirectPrint(Print_Select_Rec."Printer Name","No.");
using this command only printing the no. , can you tell me how do i print the whole invoice?