I know its possible to create a wiki page in a sandbox solution with this:
SPUtility.CreateNewWikiPage(list, "{mysiteurl}/CodeGeneratedPage.aspx");
But how can I (if possible) create a webpart page with included webpart in my document library? Because all I can find (like this) is only working in farm solutions. Is there a workaround somehow?
Notice: I post this question here because there are way more people here as on the Sharepoint site.