.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Not able to given Specify insertion point
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
93 Views, 1 Replies
03-20-2012 04:43 AM
Hi,
I have issue with sendstringtoexecute method for imageattach.
Document doc = (Document)ActiveDocument; string filelocation = Regex.Replace(imagePath, "\\\\", "\\\\"); doc.SendStringToExecute("(Command \"imageattach\" \"" + filelocation + "\")" + Environment.NewLine, true, false, true);
it is opening image attach and after that i am not able to position it. by default it is taking 0,0 as x and y
Please help me..
Thanks in advance...
Re: Not able to given Specify insertion point
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-20-2012 06:24 PM in reply to:
RamanSBV
Hi there,
You could use the command line version of IMAGE command instead, i.e. -IMAGE:
(command "_-IMAGE" "_ATTACH" "C:\\test.bmp" "0,0" "1" "0")
In the above I set insertion point to [0,0] but you could change that to anything else.
I hope this helps.
Adam Nagy
Autodesk Developer Network

Adam Nagy
Developer Technical Services
Autodesk Developer Network

