send crystal report4.6 by email via vb6
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: send crystal report4.6 by email via vb6

  1. #1
    Join Date
    Aug 2012
    Posts
    4

    send crystal report4.6 by email via vb6

    Hello;
    When I designed an report by crystal report4.6 , The mapi button work well and can send the report via email
    But when I use the same report in an application made by vb6 I can' use the mapi button , and also I can't send the report via email

    can I get your help

    regards

    Fkwinna

  2. #2
    Join Date
    Jul 2005
    Posts
    1,076

    Re: send crystal report4.6 by email via vb6

    The 4.6 version of CR is a very old version
    In the VB6 app, where you call the report, try the next code (I think that you are using ocx)
    Code:
    With CrystalReport1 '(or your control's name)
      .Destination = crptMail
      .EMailMessage = " Here goes the message"
      .EMailSubject = "Subject"
      .EMailToList ="someemail@hotmail.com"   
      .Action = 1
    End With
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  3. #3
    Join Date
    Aug 2012
    Posts
    4

    Re: send crystal report4.6 by email via vb6

    kindly post an sample (the form and its code)
    Thank's

  4. #4
    Join Date
    Aug 2012
    Posts
    4

    Re: send crystal report4.6 by email via vb6

    Kindly note that I'm still waiting your post
    Thank's

  5. #5
    Join Date
    Jul 2005
    Posts
    1,076

    Re: send crystal report4.6 by email via vb6

    Did you try the code in post #2 ?
    Is there something that you don't understand?
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  6. #6
    Join Date
    Aug 2012
    Posts
    4

    Re: send crystal report4.6 by email via vb6

    Hello,
    Yes I try it but H have no event, also the button which appeare at the end of the report page (MAPI Button) don't work
    my be I don't understand something

  7. #7
    Join Date
    Jul 2005
    Posts
    1,076

    Re: send crystal report4.6 by email via vb6

    Sorry but I have not CR4.6 installed, the code I posted is from very old projects
    Post your code and maybe someone could help you
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center