use crate::security::basic_string_literal;
use anyhow::Result;
pub fn export_screenshot_uri(
workbook_path: &str,
output_path: &str,
sheet_name: &str,
range: &str,
) -> Result<String> {
Ok(format!(
"macro:///Standard.Module1.ExportScreenshot({},{},{},{})",
basic_string_literal("workbook_path", workbook_path)?,
basic_string_literal("output_path", output_path)?,
basic_string_literal("sheet_name", sheet_name)?,
basic_string_literal("range", range)?,
))
}
pub fn recalc_and_save_uri(workbook_path: &str) -> Result<String> {
Ok(format!(
"macro:///Standard.Module1.RecalculateAndSave({})",
basic_string_literal("workbook_path", workbook_path)?,
))
}