How to insert screenshot on to the body of outlook?
-1 how to use insert-picture tab in new email outlook to
insert image in the body.
Suggest something.......
Answer / sanjay kardile
Hello,
You can try the below code. Hope this is help full.
Set objOutlookMail = CreateObject("Outlook.Application")
Set myMail = objOutlookMail.CreateItem(0)
myMail.Display
Set myMailProperty = objOutlookMail.ActiveInspector
If myMailProperty.IsWordMail = "True" Then
Set myDoc = myMailProperty.WordEditor
' Insert text and Image in the body of the email
myDoc.Range.InsertBefore Chr(13) + "First line of the text at the bottom of the Image" + Chr(13) + " Second of the text at the bottom of the image"
myDoc.InlineShapes.AddPicture "C:\PrintScreen.png"
myDoc.Range.InsertBefore "First line of the text at the top of the Image" + chr(13) + "Second line of the text at the top of the Image" + Chr(13)
myMail.To = "someone@someone.com"
myMail.Subject = "This Mail is from QTP. "
myMail.Send
End If
Set myMail = Nothing
Set objOutlookMail = Nothing
Set myDoc = Nothing
| Is This Answer Correct ? | 0 Yes | 0 No |
What is Port testing. Whhen will you perform?
What is checkpoint in qtp?
Hi, Plz give best Definition of Software Testing? Why we need Software Testing? and plz send 2+yrs experience Interview qutions (Manual,Qtp).
Hi, Is there any function or vbscript in QTP to clear the cookies,sessions. Please help me in this.
3 differences between QTP & Winrunner?
how qtp handles customised object
Does Low-level recording capture mouse movements?
if anyone has idea of the interview procedure in covansys, plz send me a mail?
How does quicktest professional (qtp) identifies the object in the application?
how qtp will recognise if application is run on many browsers
How will you compare keyword and expert view?
.how will you load the object during runtime