Author Topic: PRINT a TXT file, from VISUAL LISP  (Read 1027 times)

0 Members and 1 Guest are viewing this topic.

VovKa

  • Swamp Rat
  • Posts: 1166
  • Ukraine
Re: PRINT a TXT file, from VISUAL LISP
« Reply #15 on: April 16, 2019, 06:57:47 PM »
create MTEXT, get the bounding box, plot the window

domenicomaria

  • Mosquito
  • Posts: 16
Re: PRINT a TXT file, from VISUAL LISP
« Reply #16 on: April 17, 2019, 02:57:00 AM »
The true
is that
there is no real need
to print a TXT file !

Because everybody
can open a TXT, or INI or XML or LSP file
with a simple text editor
and print it.

I needed
to wrote
my Notepad
internal to Acad
. . .
and just
to make complete it
I want to be able
to print
the edited file.
. . .

roy_043

  • Water Moccasin
  • Posts: 1731
  • BricsCAD 18
Re: PRINT a TXT file, from VISUAL LISP
« Reply #17 on: April 17, 2019, 03:06:56 AM »
My test shows that printing via notepad.exe works. And if you don't like the window that pops up, you can try calling notepad.exe via the Windows Scripting Host.

domenicomaria

  • Mosquito
  • Posts: 16
Re: PRINT a TXT file, from VISUAL LISP
« Reply #18 on: April 17, 2019, 04:41:07 AM »
yes
this
(startapp "notepad.exe /p \"X:\\Your path\\File.txt\"")
WORKS !
. . .
But I will be happy
if it will be possible
to get the access
to the printer preferences . . .
. . .
and
without cross
notepad . . . !


roy_043

  • Water Moccasin
  • Posts: 1731
  • BricsCAD 18
Re: PRINT a TXT file, from VISUAL LISP
« Reply #19 on: April 17, 2019, 05:46:50 AM »
good
to
know
that
it
works
for
you
too
!
 :-D

domenicomaria

  • Mosquito
  • Posts: 16
Re: PRINT a TXT file, from VISUAL LISP
« Reply #20 on: April 17, 2019, 06:16:30 AM »
thank
you
very
much
!
!
!