예제 #1
0
            public void PageSaving(PageSavingArgs args)
            {
                var memoryStream = new MemoryStream();

                args.Stream         = memoryStream;
                args.KeepStreamOpen = false;
                this.PageStreams.Add(memoryStream);
            }
예제 #2
0
            public void PageSaving(PageSavingArgs args)
            {
                string outFileName = $"{ArtifactsDir}SavingCallback.PageFileName.Page_{args.PageIndex}.html";

                // Specify name of the output file for the current page either in this
                args.PageFileName = outFileName;

                // ..or by setting up a custom stream
                args.PageStream = new FileStream(outFileName, FileMode.Create);
                Assert.False(args.KeepPageStreamOpen);
            }
            public void PageSaving(PageSavingArgs args)
            {
                string outFileName = $"{ArtifactsDir}SavingCallback.PageFileNames.Page_{args.PageIndex}.html";

                // Below are two ways of specifying where Aspose.Words will save each page of the document.
                // 1 -  Set a filename for the output page file:
                args.PageFileName = outFileName;

                // 2 -  Create a custom stream for the output page file:
                args.PageStream = new FileStream(outFileName, FileMode.Create);

                Assert.False(args.KeepPageStreamOpen);
            }
 public void PageSaving(PageSavingArgs args)
 {
     args.PageFileName = string.Format(ArtifactsDir + "Page_{0}.png", args.PageIndex);
 }
예제 #5
0
 public void PageSaving(PageSavingArgs args)
 {
     // Specify name of the output file for the current page.
     args.PageFileName = string.Format(ArtifactsDir + "Page_{0}.html", args.PageIndex);
 }
 public void PageSaving(PageSavingArgs args)
 {
     // Specify memory stream for the current page.
     args.PageStream         = new MemoryStream();
     args.KeepPageStreamOpen = true;
 }
 public void PageSaving(PageSavingArgs args)
 {
     // Specify memory stream for the current page.
     args.PageStream = new MemoryStream();
     args.KeepPageStreamOpen = true;
 }
 public void PageSaving(PageSavingArgs args)
 {
     // Specify name of the output file for the current page.
     args.PageFileName = string.Format(MyDir + "Page_{0}.html", args.PageIndex);
 }