cambios en imprimrir
This commit is contained in:
@@ -290,12 +290,15 @@
|
||||
var fileName = $"factura_{DateTime.Now:yyyyMMddHHmmss}.pdf";
|
||||
var filePath = Path.Combine("wwwroot", fileName);
|
||||
|
||||
var browserFetcher = new BrowserFetcher();
|
||||
var revisionInfo = await browserFetcher.DownloadAsync();
|
||||
// var browserFetcher = new BrowserFetcher();
|
||||
// var revisionInfo = await browserFetcher.DownloadAsync();
|
||||
|
||||
var chromiumPath = Path.Combine(Environment.CurrentDirectory, "wwwroot", "chrome-win", "chrome.exe");
|
||||
|
||||
|
||||
var browser = await Puppeteer.LaunchAsync(new LaunchOptions
|
||||
{
|
||||
ExecutablePath = revisionInfo.GetExecutablePath(),
|
||||
ExecutablePath = chromiumPath,
|
||||
Headless = true,
|
||||
Args = new[] { "--no-sandbox", "--disable-setuid-sandbox", "--ignore-certificate-errors" }
|
||||
});
|
||||
|
||||
@@ -417,12 +417,15 @@
|
||||
</body>
|
||||
</html>";
|
||||
|
||||
var browserFetcher = new BrowserFetcher();
|
||||
var revisionInfo = await browserFetcher.DownloadAsync();
|
||||
// var browserFetcher = new BrowserFetcher();
|
||||
// var revisionInfo = await browserFetcher.DownloadAsync();
|
||||
|
||||
var chromiumPath = Path.Combine(Environment.CurrentDirectory, "wwwroot", "chrome-win", "chrome.exe");
|
||||
|
||||
|
||||
var browser = await Puppeteer.LaunchAsync(new LaunchOptions
|
||||
{
|
||||
ExecutablePath = revisionInfo.GetExecutablePath(),
|
||||
ExecutablePath = chromiumPath,
|
||||
Headless = true,
|
||||
Args = new[] { "--no-sandbox", "--disable-setuid-sandbox", "--ignore-certificate-errors" }
|
||||
});
|
||||
|
||||
@@ -517,12 +517,14 @@
|
||||
var fileName = $"factura_{DateTime.Now:yyyyMMddHHmmss}.pdf";
|
||||
var filePath = Path.Combine("wwwroot", fileName);
|
||||
|
||||
var browserFetcher = new BrowserFetcher();
|
||||
var revisionInfo = await browserFetcher.DownloadAsync();
|
||||
// var browserFetcher = new BrowserFetcher();
|
||||
// var revisionInfo = await browserFetcher.DownloadAsync();
|
||||
var chromiumPath = Path.Combine(Environment.CurrentDirectory, "wwwroot", "chrome-win", "chrome.exe");
|
||||
|
||||
|
||||
var browser = await Puppeteer.LaunchAsync(new LaunchOptions
|
||||
{
|
||||
ExecutablePath = revisionInfo.GetExecutablePath(),
|
||||
ExecutablePath = chromiumPath,
|
||||
Headless = true,
|
||||
Args = new[] { "--no-sandbox", "--disable-setuid-sandbox", "--ignore-certificate-errors" }
|
||||
});
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
}
|
||||
},
|
||||
"ConnectionStrings": {
|
||||
"WriteConnection": "Server=77.229.174.85;Port=22222;Database=herramientascacoa;User Id=cacoa;Password=cacoa2018-;",
|
||||
"ReadOnlyConnection": "Server=77.229.174.85;Port=22222;Database=herramientascacoa;User Id=cacoa;Password=cacoa2018-;"
|
||||
"WriteConnection": "Server=localhost;Port=22222;Database=herramientascacoa;User Id=cacoa;Password=cacoa2018-;",
|
||||
"ReadOnlyConnection": "Server=localhost;Port=22222;Database=herramientascacoa;User Id=cacoa;Password=cacoa2018-;"
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user