Link to home
Start Free TrialLog in
Avatar of eyoung
eyoung

asked on

VB "CE" control to send file to internet address?

I have written a Visual Basic "CE" program on an H/PC Pro computer.  Output from the program (simple text) needs to be sent to an email address.

Currently I write the text to a DOS file, then quit my app and manually send the DOS file as an email attachment using the Microsoft "Inbox" program.

I want to eliminate this manual step and send the DOS file (output) directly to the internet address.

Recently I wanted to solve a similar problem with my printer and someone recommended I checkout a third party printer control from Field Software Products.  I did and that solved the problem.  Now I just easily and quickly print whatever I want directly to the printer without a lot of coding and limitations.

I want to find a similar way to send output over the wireless modem as easily as I now do with the printing process.

Any help would be most appreciated.

Thank you,
EYoung
Avatar of Erick37
Erick37
Flag of United States of America image

"The SMTP component is used to send Internet mail using the SMTP protocol (the Internet mail standard)."

http://www.dev-soft.com/ctl_SMTP.htm
Avatar of eyoung
eyoung

ASKER

Eric37,

Good to hear from you again.  It looks like the product may meet my needs, but I have sent off some questions to them first to find out.  It may be a while until they respond.

Thanks again for your responses.

Regards,
EYoung
there is the EasyMail OCX control.
i would send it to you but it's ZIP file encluding the BIG help is about 1.6MB, so try search for it on the net.
it is QuickSoft product andd can D\L.
try : http://www.quiksoft.com/easymail 

the regular mail functions have VB regular interface. to make attchments - there is a DLL that you should Declare and use as you use any API.
it's all explained in the Help.

   
Avatar of eyoung

ASKER

Eric37,

I think your suggestion of using the SMTP component will be the best solution for my project.  It sounds like it will be as simple to use as the printer solution you proposed.  Thanks for the suggestions.  Please convert your comment to a proposed answer and I'll pass on the points.

Regards,
EYoung
ASKER CERTIFIED SOLUTION
Avatar of Erick37
Erick37
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of eyoung

ASKER

Erick37,

Thanks.  I am submitting another question about ComboBoxs.  Should be viewable in a few minutes.  Would you please answer it if you have any ideas?

Regards,
EYoung

By the way, when I start up Visual Basic, some of my forms are initially shown in the development window as small.  Even if I maximize them all and save the project, the forms start small the next time I start up the project.  Any ideas about how to get them to stay maximized?  (Thanks.)
I believe that VB will use the last mode it was in to open a project.  That is, if VB exits in max mode, then it will startup in max mode, regardless of which project is opened.  That's how it works in VB5.
Avatar of eyoung

ASKER

Erick37,

I put the forms in max mode, save the project then close the project.  When I restart up the project, the forms are back in small mode.  This only happens in development not run time.  So in VB6 CE the last saved form mode does not seem to be retained.  That is why I am asking.  Quite frustrating.

Appreciate any ideas.

Regards,
EYoung
Are we talking about the WindowState property of the form, or the delvelopment window's state?  I'm confused :-/
Avatar of eyoung

ASKER

Erick37,

The WindowState property on each form is set to Maximized.  Even after saving the form and the project, the forms load in development in minimum (small - about 2 inches by 2 inches in the top left corner of my development screen.)

The development window seems to be the correct size.  Its the forms initial size on the development window when the project first starts up that is small until I click the max icon in the upper right corner of each form.  Should I be looking for another development window's state setting?  If yes, where would I find that setting?

Thanks,
EYoung
Ok, yes it is the same here.  I do not know if there is anything to do about this.  It may be by design, I cannot find any settings that affect how the development form's window is first displayed.
Avatar of eyoung

ASKER

Thanks for checking.  I have to take off for the rest of the day.  Will you be in tomorrow?  Have a nice rest of the weekend.

Regards,
EYoung
Thanks.

I just did a quick test, and this code works in VB5 for Win32:

Private Sub Combo1_Click()
    Text1.Text = Combo1.Text
    Text2.Text = Str(Combo1.ListIndex)
End Sub

Private Sub Form_Load()
    Combo1.AddItem "Test 1"
    Combo1.AddItem "Test 2"
    Combo1.AddItem "Test 3"
    Combo1.AddItem "Test 4"
    Combo1.ListIndex = 0
End Sub

If this does not work in CE, you may try a Text1.Refresh after updating it.