Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
string tempPath = System.IO.Path.GetTempPath();
string filePath = System.IO.Path.Combine(tempPath, "meine.pdf");
Stream s = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("...");
using (FileStream fs = File.Create(filePath))
{
byte[] buffer = new byte[1024];
int count = 0;
while ((count = s.Read(buffer, 0, 1024)) > 0)
{
fs.Write(buffer, 0, count);
}
}
s.Close();
Process p = Process.Start(filePath);
p.WaitForExit();
File.Delete(filePath);