Send whatsapp message with pdf file in Windows Application

nirmal90
 
on May 16, 2021 11:07 PM
1957 Views

I have written the code to send the Whatsapp message using the windows application using web.whatsapp.com but cannot figure out how to send it with a pdf file.

Please help me with how to send a Whatsapp message with pdf file

below is the code I have done to send the Whatsapp message using web.whatsapp.com

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Try
        System.Diagnostics.Process.Start("http://web.whatsapp.com/send?phone=" & txtto.Text & "&text=" & txtbody.Text.Replace(" ", "+ encodeURIComponent(E:/BGLStock.pdf)") & "")
            Timer1.Start()
    Catch ex As Exception
        Timer1.Stop()
    End Try
End Sub
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
    Dim sec As Integer = 0
    sec += 1
    If sec = 10 Then
        SendKeys.Send("{ENTER}")
        Timer1.Stop()
        sec = 0
    End If
End Sub
Download FREE API for Word, Excel and PDF in ASP.Net: Download
dharmendr
 
on May 16, 2021 11:19 PM

I will get back to you soon.

nirmal90
 
on May 17, 2021 06:10 AM

It's chargeable we have register and select a plan. I want to use using Web.whatsapp.com 

dharmendr
 
on May 17, 2021 07:35 AM

Hi nirmal90,

Currently there is no reference available for this.

I am searching for it. Once got will revert back to you.

In between you can contact the support team for sample code.

nirmal90
 
on May 17, 2021 07:47 AM

OK SIR

I am also searching for it