Try
Shell("print /d:com1 file.dat")
Where file.dat contains data you want to send via COM1.
Cheers
Main Topics
Browse All TopicsHi All,
How to Send data to a Serial port (COM1) through VB DLL without mscomm.ocx?
ThanX in advance...
Shan Konduru
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I realise this has been closed for a while now but for the record, another way of accessing the serial port via VB or VBA is to use Cheapcomm, a freeware OCX that does all the basic functions of MSCOMM.
I've used this successfully on a few projects.
See http://ourworld.compuserve
Business Accounts
Answer for Membership
by: marconovaroPosted on 2003-04-15 at 05:14:41ID: 8333179
I guess there isn't another way of doing this, without using MSCOMM.
If "VB DLL" you mean an ActiveX DLL project without forms, then I would add a (dummy) form to the project, only used as a container for the MSCOMM object.
This form could be set as not visible (also at design time), and your DLL will continue working without an user interface.
Hope this helps
M