|
suppressing the insert paste dialog
i believe there has been a thread on this before but i cannot remember if it ever got solved. is there a way to suppress the insert paste dialog box you get when for example in this case you paste a sheet and it asks where to insert it?
luke i'm in the same boat right now, and i haven't seen anything in the api.
could you just use windows sendkeys or somethign along those lines to get paste the dialog on each insert, and then do a reordersheets?
yes you could be its long winded and i'm hoping for a cleaner solution.
luke, you ever figure anything out for this?
not as of yet i have sent a request in to api support to fix the editcopy function first as that doesn't work for sheets anyway, once that is solved i will ask for a new function to suppress the paste dialog using api instead of native hooks.
editcopy is working for me for sheets, though i was having trouble with selectbyid2. if i manually select a sheet, i'm able to use modeldoc2::editcopy and modeldoc2::paste
i'm not sure i'm using the call correctly...
boolstatus = part.extension.selectbyid2(sheetname, swselsheets, 0, 0, 0, false, 0, nothing, swselectoptiondefault)
edit: it also seems that if you do anything to programmatically change the focus of the manual selection, that it will cause it to fail. i tried using drawingdoc::activatesheet to see if that would allow me to copy it and it failed to copy/paste anything at all.
edited: 11/11/2008 at 10:31 am by blake dahle
yes the editcopy works its the selectbyid2 for sheets that won't allow copying, yet there is no other way to select a sheet. sw have acknowledges the problem and are fixing it |
|