Hi,
I would like to send a sequence of ascape to a printer by building a report? Is it possible ?
I read about an OCX (See this
http://www.mibuso.com/dlinfo.asp?FileID=341) made by Ing. Kamil Sacek. Could every one help me to use it ? I'm really new in development on NAVISION.
Thanks a lot !!
Alex
Comments
If you install the ocx and you will create Automation variable for it ('NaviPrinter Library'.NaviPrinterClass), the variable has one method DirectPrint with two parameters. First is name of printer (look into Pritner table for the names of available printers) and second one is string with the data which will be direclty send to the printer. And that's all... :-)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thank's
Alex
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
This is the sequence that i've done:
1) I've registered your dll with REGSVR32
2) I've created a new CU and instantiate a variable (named NaviPrint) of type "Automation" referencing 'NaviPrinter Library'.NaviPrinterClass.
3) I've created two other variable:
pathtxtFile - Text - 30
PrinterName - Text - 50
4) Then in OnRun() event:
pathtxtFile := 'c:\text.txt';
PrinterName := '\\Printer\Generic / Text Only';
NaviPrint.DirectPrint(PrinterName, pathtxtFile);
What's wrong?
Thank's ](*,)
Alex
Regards
Thomas
Now I try.
Alex
it work!! Actually only on local printer... :?
Have this DLL a limit of size of th printing variable? I have to print a heuge sequence of ascape (around 830 char....) containing some special characters (like { or ; or , ) .
How can I do?
Thanks to all.
Alex
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
It is working over Terminal Services too, you just needs to send the data to correct network printer.... :-)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I've a problem: ](*,) when I execute the CU, now it show this error:
What does it means? The string wasn't max. 1024 char long ?
I'm sure that I do some errors but I don't know how to do.
Thanks
Alex
I enclose the source.
In OnRun() Event:
And in GLOBALS:
txtFile File pathtxtFile Text 30 strOutStream OutStream NaviPrint Automation 'NaviPrinter Library'.NaviPrinterClass PrinterName Text 50
"MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
IT WORKS VERY WELL THIS DLL!! GREAT!!
Now it work correctly also the correct network printer !!!
Thanks.
Alex
And please, should you add [solved] prefix into the first post subject? Thanks.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.