How to set the document's author and title

Home Forums SpreadsheetML How to set the document's author and title

This topic contains 3 replies, has 2 voices, and was last updated by  Jim Snyder 8 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3929

    Jim Snyder
    Participant

    I’ll admit I don’t know how to do it the way you are asking, but this is how I do it:
    ` private void SetPackageProperties(SpreadsheetDocument wkbk)
    {
    wkbk.PackageProperties.Creator = “Jim Snyder”;
    wkbk.PackageProperties.Created = DateTime.Now;
    wkbk.PackageProperties.Modified = DateTime.Now;
    wkbk.PackageProperties.LastModifiedBy = “Jim Snyder”;

    wkbk.PackageProperties.Category = “Regional Report”;
    wkbk.PackageProperties.Description = “Inventory Recon rpt.”;
    wkbk.PackageProperties.Subject = “Regional recon”;
    wkbk.PackageProperties.Title = “O’Bleness/AdviCare Inventory Recon – Daily”;
    }

    #3932

    acarrano
    Participant

    That worked perfectly. Thank you Jim.

    #3933

    Jim Snyder
    Participant

    I appreciate you saying thanks! Now I can go home on a Friday with a sense of accomplishment. ==;-)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.