void share() { string text_ = renderingData; text_ = openSpeChar(text_); text_ = hideEscPosParts(text_); var cntxt = ToolMobile.getContextLast(); if (cntxt == null) { return; } var langRep = ToolMobile.getEnvironment().translate("T_REPORT"); var langSend = ToolMobile.getEnvironment().translate("T_SEND"); Intent sharingIntent = new Intent(Intent.ActionSend); // sharingIntent.SetType("text/html"); if (isHtml(text_)) { var desc = ToolMobile.getEnvironment().translate("T_REPORT") + " " + XmlFormating.helper.format(DateTime.Now); desc = desc.Replace(' ', '_'); var name = desc + ".html"; var path = ToolMobile.getTmpFile(name); ToolMobile.writeFileText(path, text_); var uri = Android.Net.Uri.FromFile(new Java.IO.File(path)); sharingIntent.PutExtra(Intent.ExtraSubject, desc); sharingIntent.PutExtra(Intent.ExtraStream, uri); sharingIntent.SetType("text/html"); } else { sharingIntent.SetType("text/plain"); sharingIntent.PutExtra(Intent.ExtraText, text_); } // sharingIntent.setType("application/*|text/*"); var data = text_; // cData.Text); // cntxt.StartActivity(Intent.CreateChooser(sharingIntent, langSend)); }