Cursor Is Not Displaying in Text Box while Adding Text Box Using IAutoShape

Hi Team,

I have been using Aspose library since long time, and everything is working fine.
I just face one issue which is affecting our business requirement, the issue is i am trying to add one text area using Autoshape interface, i am able to add the text area as per the requirement, but the only concern is the cursor is not visible so that user can start writing.
Could you please help me to add the cursor or to identify why the cursor is not visible.

FYI.
Currently we are using below versions:
OS - Windows 10
Aspose version - 22.7

Could you please help us to overcome this issue.
Quick suggestions will be greatly appreciated.
Thanks.

@ajaymoharana,
Thank you for contacting support.

We are sorry that you had to encounter this problem. We need more details to investigate the case and help you. Please share the following files and information:

  • original presentation file
  • code example to add the text box
  • output presentation file
  • JDK target version in your app project
  • name and version of the application in which the cursor is not displayed

Hi @andrey.potapov

Thank you for the quick response.

As there are restriction in our project we cant share the original file and code, hope you understand. But here i am sharing the sample code and the below details.

Sample Code:

Presentation pres = new Presentation();
try {
    ISlide slide = pres.getSlides().get_Item(0);
    
    IAutoShape ashp = slide.getShapes().addAutoShape(ShapeType.Rectangle, 150, 75, 350, 350);

    ashp.addTextFrame("");
    ashp.getFillFormat().setFillType(FillType.NoFill);
    ashp.getLineFormat().getFillFormat.setFillType(FillType.NoFill);

    ashp.getTextFrame().getParagraphs().forEach(i -> 
      i.getPortions.forEach(j -> {
      j.getPortionFormat.setFontHeight(8);
      j.getPortionFormat.getFillFormat().setFillType(FillType.Solid);
      j.getPortionFormat.setLatinaFont(new FontData("Arial (Body)"));
      j.getPortionFormat.getFillFormat.getSolidFillColor.setColor(Color.black);
      i.getParagraphFormat().setAlignment(TextAlignment.Left);
    }));

pres.save("Autoshape.pptx", SaveFormat.Pptx);
} finally {
    if (pres != null) pres.dispose();
}

Sample Presentation (This is the similar file which we are generating from our application):
image.png (7.4 KB)

JDK : 17

In the sample file, you could see Autoshape box in right side, as per our requirement we should have cursor blinking so that it should allow writing.

Please let me know if you need any further information.
Thanks,

@ajaymoharana,
Thank you for the details. The behavior of the cursor is entirely determined by the application in which you view the presentation. Unfortunately, Aspose.Slides cannot affect this.