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 Posted / 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 |
Post New Answer View All Answers
Difference between copy to action and call to action?
what is the difference between built-i function and In-built function?
How can i initiate the objects to find uniquely in OR
suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?
Where can I find and view run-time data table?
How to check feasibility of the appliction?in automation testing?
what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?
How do you capture tooltip using QTP?
what function you write to do database testing with the help of qtp?
What is CMMP and CMMH?
How qtp identifies objects?
In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail
How many add-ins comes by default with quicktest professional?
how will you check how many members visited the website www.infosys.com?
Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?