# How to use ICustomizedAnnotationObj.SaveSnapshot()?

**URL:** <https://devforum.zoom.us/t/how-to-use-icustomizedannotationobj-savesnapshot/55740>\
**Category:** Windows\
**Created:** [August 13, 2021, 8:50am UTC](https://devforum.zoom.us/t/how-to-use-icustomizedannotationobj-savesnapshot/55740 "2021-08-13T08:50:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![VideoPro](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/videopro/32/40603_2.png) [@VideoPro](https://devforum.zoom.us/u/VideoPro)\
**Post date:** [August 13, 2021, 8:50am UTC](https://devforum.zoom.us/t/how-to-use-icustomizedannotationobj-savesnapshot/55740/1 "2021-08-13T08:50:51Z")

</div>

I am using the zoom\_sdk\_dotnet\_wrap.dll with the the Custom UI mode.  
It is returned SDKERR\_INVALID\_PARAMETER when I call ICustomizedAnnotationObj.SaveSnapshot() , which is descripted as  
“If the specified path is wrong, the SDKERR\_INVALID\_PARAMETER will be returned.” in the windows SDK.  
The path value in my project is “D:\”  
I just want to know why the error returned and what is the correct format of the path value?

Here is my steps:  
**1.** I changed the parameter type of path to String^ in the zoom\_sdk\_dotnet\_wrap, which was const w\_char\* before. I have used the PlatformString2WChar() method to convert the value type to const w\_char\*.  
virtual SDKError SaveSnapshot(String^ path, SDKAnnoSaveType nType)  
{  
if (m\_pSDKObj)  
{  
ZOOM\_SDK\_NAMESPACE::SDKAnnoSaveType sdk\_type = (ZOOM\_SDK\_NAMESPACE::SDKAnnoSaveType)nType;  
return (SDKError)m\_pSDKObj-\>SaveSnapshot(PlatformString2WChar(path), sdk\_type);  
}

```
	return SDKError::SDKERR_UNINITIALIZE;
}

```

**2.** In the C# program, I get an ICustomizedAnnotationObjDotNetWrap object first.  
this.mAnnotationController = CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap()  
.GetAnnotationController().GetCustomizedAnnotationController(shareRender);

```
 if (this.mAnnotationController != null)
 {
         this.mAnnotationObj = this.mAnnotationController.CreateAnnoObj(shareRender);
 }

```

**3.** I call the Snapshot() function when user click the button.  
If(this.mAnnotationObj!=null)  
{  
var errCode = this.mAnnotationObj.SaveSnapshot(@“D:\”);  
}

Thanks.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [August 17, 2021, 8:42pm UTC](https://devforum.zoom.us/t/how-to-use-icustomizedannotationobj-savesnapshot/55740/2 "2021-08-17T20:42:09Z")

</div>

Hey @VideoPro,

Thanks for using the dev forum!

Which version of the SDK are you using?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![VideoPro](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/videopro/32/40603_2.png) [@VideoPro](https://devforum.zoom.us/u/VideoPro)\
**Post date:** [August 18, 2021, 1:09am UTC](https://devforum.zoom.us/t/how-to-use-icustomizedannotationobj-savesnapshot/55740/3 "2021-08-18T01:09:21Z")

</div>

Thanks for relpy.  
The version is 5.5.7681.0323.  
And I found out that the snapshot has been saved successfully, but the return code is SDKERR\_INVALID\_PARAMETER.  
Thanks.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [August 18, 2021, 7:46pm UTC](https://devforum.zoom.us/t/how-to-use-icustomizedannotationobj-savesnapshot/55740/4 "2021-08-18T19:46:56Z")

</div>

Hey @VideoPro,

So the method worked correctly but still returned an error?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![VideoPro](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/videopro/32/40603_2.png) [@VideoPro](https://devforum.zoom.us/u/VideoPro)\
**Post date:** [August 19, 2021, 1:37am UTC](https://devforum.zoom.us/t/how-to-use-icustomizedannotationobj-savesnapshot/55740/5 "2021-08-19T01:37:24Z")

</div>

Yes, it does.  
You may check if it is a bug or not.

Thanks.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [August 19, 2021, 8:30pm UTC](https://devforum.zoom.us/t/how-to-use-icustomizedannotationobj-savesnapshot/55740/6 "2021-08-19T20:30:44Z")

</div>

Hey @VideoPro,

Got it. Can you reproduce the issue once more and send your SDK logs to [developersupport@zoom.us](mailto:developersupport@zoom.us)? Please mention my name in the email.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![VideoPro](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/videopro/32/40603_2.png) [@VideoPro](https://devforum.zoom.us/u/VideoPro)\
**Post date:** [August 25, 2021, 1:20am UTC](https://devforum.zoom.us/t/how-to-use-icustomizedannotationobj-savesnapshot/55740/7 "2021-08-25T01:20:01Z")

</div>

Sure, but I don’t know where to get these logs…

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [August 26, 2021, 9:12pm UTC](https://devforum.zoom.us/t/how-to-use-icustomizedannotationobj-savesnapshot/55740/8 "2021-08-26T21:12:26Z")

</div>

Hey @VideoPro,

After your application has exited gracefully, the logs will be put in %appData%/roaming/ZoomSDK.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [September 26, 2021, 7:12am UTC](https://devforum.zoom.us/t/how-to-use-icustomizedannotationobj-savesnapshot/55740/9 "2021-09-26T07:12:45Z")

</div>

Closed on September 26, 2021, 7:12am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
