Exemplo n.º 1
0
        public override bool Export(PwExportInfo pwExportInfo, Stream sOutput,
            IStatusLogger slLogger)
        {
            PrintForm dlg = new PrintForm();
            dlg.InitEx(pwExportInfo.DataGroup, false);

            if(dlg.ShowDialog() == DialogResult.OK)
            {
                StreamWriter sw = new StreamWriter(sOutput, Encoding.UTF8);
                sw.Write(dlg.GeneratedHtml);
                sw.Close();

                return true;
            }

            return false;
        }
Exemplo n.º 2
0
		public override bool Export(PwExportInfo pwExportInfo, Stream sOutput,
			IStatusLogger slLogger)
		{
			PrintForm dlg = new PrintForm();
			dlg.InitEx(pwExportInfo.DataGroup, false, -1);

			if(dlg.ShowDialog() == DialogResult.OK)
			{
				byte[] pb = Encoding.UTF8.GetBytes(dlg.GeneratedHtml);
				sOutput.Write(pb, 0, pb.Length);
				sOutput.Close();

				return true;
			}

			return false;
		}
Exemplo n.º 3
0
		public override bool Export(PwExportInfo pwExportInfo, Stream sOutput,
			IStatusLogger slLogger)
		{
			PrintForm dlg = new PrintForm();
			dlg.InitEx(pwExportInfo.DataGroup, false, -1);

			bool bResult = false;
			if(dlg.ShowDialog() == DialogResult.OK)
			{
				byte[] pb = StrUtil.Utf8.GetBytes(dlg.GeneratedHtml);
				sOutput.Write(pb, 0, pb.Length);
				sOutput.Close();

				bResult = true;
			}

			UIUtil.DestroyForm(dlg);
			return bResult;
		}
Exemplo n.º 4
0
        private static void PrintGroup(PwGroup pg)
        {
            Debug.Assert(pg != null); if(pg == null) return;
            if(!AppPolicy.Try(AppPolicyId.Print)) return;

            PrintForm pf = new PrintForm();
            pf.InitEx(pg, true);
            pf.ShowDialog();
        }
Exemplo n.º 5
0
		private void PrintGroup(PwGroup pg)
		{
			Debug.Assert(pg != null); if(pg == null) return;
			if(!AppPolicy.Try(AppPolicyId.Print)) return;

			PrintForm pf = new PrintForm();
			pf.InitEx(pg, true, m_pListSorter.Column);
			pf.ShowDialog();
		}