Print a external file

  • Thread starter Thread starter NV
  • Start date Start date
N

NV

With the help and hints from this group I've collected a code that
allows me to print a file (pdf/doc/xls ...) nby clicking a button in a
form.

This works fine if I introduce the file name in the procedure, but what
I need is that the file name dependes on the choice of a combo box, in
the same form. That combo box is called ArticleCode.

Does anyone has any suggestion ?

Thank's in advance
 
It might help if you would show some of the relevant code you are using now...

What you might need is a generic procedure like:
Sub Print(strFileName as string)
Printingcode for the file strFileName here...
End sub

Call the procedure when you click your button like:
Call Print(Me!ArticleCode)

Arno R
 
Back
Top