Example #1
0
        private void SavePageHeaderFooter(PrintableComponentLink pcl, HeaderFooterStorage storage)
        {
            switch (storage)
            {
            case HeaderFooterStorage.Registry: {
                pcl.SavePageHeaderFooterToRegistry(registryPath);
                break;
            }

            case HeaderFooterStorage.XML: {
                pcl.SavePageHeaderFooterToXml(xmlFile);
                break;
            }

            case HeaderFooterStorage.Stream: {
                pcl.SavePageHeaderFooterToStream(stream);
                stream.Seek(0, SeekOrigin.Begin);
                break;
            }
            }
        }