We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Change PST display name using aspose.email for java

Hello Team ,



I am evaluating a aspose.email for java. but i have to change PST display name. It is showing every time as “top of personal folders” when i open that pst in outlook but my PST file name was “abc.pst”. why this is showing please help.

Hi,


Thank you for writing to Aspose Support team.

You can change the PST display name from the PST store as shown in the code sample below. Please try it at your end and let us know if you need any further assistance in this regard.

Sample Code:
<pre style=“background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”><pre style=“font-family: “Courier New”; font-size: 9pt;”>PersonalStorage pst = PersonalStorage.create(“myPstwithMyName.pst”, FileFormatVersion.Unicode);

pst.getStore().changeDisplayName(“Mypst”);