By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,501 Members | 2,850 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,501 IT Pros & Developers. It's quick & easy.

Print a external file

P: n/a
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

Jan 13 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

"NV" <nu*********@potain.com> schreef in bericht news:11**********************@f14g2000cwb.googlegr oups.com...
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

Jan 13 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.