How to open doc by using LS

Morning, everyone!

I a button in the page. I created a doc by using db.createdocument. Is anyone know how to open it in the page or frame? Any help I appreciate!!! There is my part of the code:

Set uidb = ws.currentdatabase

Set docPrt = db.CreateDocument

docPrt.Form = “Report”

Call docPrt.Save(True, True)

Subject: How to open doc by using LS

Set uidoc = ws.EditDocument(True, docPRT, False,False)