我正在尝试通过R在Excel的页面设置中编辑第一个页码
library(RDCOMClient)
xlApp <- COMCreate("Excel.Application")
xlApp[["Visible"]] <- TRUE
xlBook <- xlApp[["Workbooks"]]$Add()
xlSheet <- xlBook[["Worksheets"]]$Item(1)
xlSheet$PageSetup()$FirstPageNumber() <- 1xlSheet$PageSetup()$FirstPageNumber() <- 1中出错:赋值左侧无效(空)
发布于 2019-06-06 03:58:27
x <- xlSheet[["PageSetup"]]
x[["FirstPageNumber"]] <- 1https://stackoverflow.com/questions/56457312
复制相似问题