F
fromvenky
Hi,
Can someone help me!, while I'm converting range text to picture its
losses its format?
Here what I'm doing
* Render formatted text to specified range by setting style to it,
ie "Heading 2"
Sample code
.InsertAfter "My Title" & vbCr
.Paragraphs.Last.Style = "Heading 2"
* Take range and convert it to picture
Sample code:
With r_rng
.CopyAsPicture
.Delete
.PasteSpecial Link:=False, Placement:=wdInLine,
DisplayAsIcon:=False, DataType:=wdPasteMetafilePicture
End With
code working fine, text successfully convert to picture but when i do
Edit Picture to see its style its showing....
Style : Normal Font: Arial : Font Size : 9
Where as expected style would be -- Style : Heading 2, Font : Arial,
Font Size : 10
can some tell me, where its getting wrong?
Can someone help me!, while I'm converting range text to picture its
losses its format?
Here what I'm doing
* Render formatted text to specified range by setting style to it,
ie "Heading 2"
Sample code
.InsertAfter "My Title" & vbCr
.Paragraphs.Last.Style = "Heading 2"
* Take range and convert it to picture
Sample code:
With r_rng
.CopyAsPicture
.Delete
.PasteSpecial Link:=False, Placement:=wdInLine,
DisplayAsIcon:=False, DataType:=wdPasteMetafilePicture
End With
code working fine, text successfully convert to picture but when i do
Edit Picture to see its style its showing....
Style : Normal Font: Arial : Font Size : 9
Where as expected style would be -- Style : Heading 2, Font : Arial,
Font Size : 10
can some tell me, where its getting wrong?