I suspect that I'm incredibly dense, but I still haven't gotten through my delay issues with respect to getting pdf's out of Prince with ASP.net.
I have confirmed that using the command line on my server is a snap, and generates complex PDFs in seconds, but when I try to run it as a part of my application, it appears to stop short of consuming the source page or its css file.
There's something strange in the way it access web addresses with the full session id's embedded in the URL (due to a number of issues at my client, I have to run the app in a Cookieless state). At any rate, here are what my params look like:
Dim p As Prince = New Prince(PrincePath)
p.ClearStyleSheets()
p.AddStyleSheet(myCssPath1)
p.AddStyleSheet(myCSSPath2)
p.SetLog(myLogPath)
p.SetHTML(True)
p.SetCompress(True)
p.convert(myWebPage, myOutputPDF)
My inputs resemble the following:
myWebPage = "http://www.domain.com:52076/appdir/(S(jxduz52kwutel555ur1e4h55))/Review.aspx"
myOutputPDF = D:\WebMasterSandbox\APPNAME\ShareName\PdfActivity\2010_12022022_ jxduz52kwutel555ur1e4h55.pdf
The value I'm trying to get to in my landing page is what I'm calling
myPDFUri = "http://www.domain.com:52076/appdir/((S(jxduz52kwutel555ur1e4h55))/PdfActivity/2010_12022022_ jxduz52kwutel555ur1e4h55.pdf
The server recognizes the Prince.exe location at
"http://www.domain.com:52076/appdir/(S(jxduz52kwutel555ur1e4h55))/Prince/bin/Prince.exe"
When I run in this manner, the browser looks as if it's loading my aspx page, but my debug efforts reveal that it's doing nothing. And if I cancel the process, the ui will inform me (a few minutes later, after I've already forgotten about it) that my pdf is ready, and so it is.
Totally confounding. Can you offer any help?
I have confirmed that using the command line on my server is a snap, and generates complex PDFs in seconds, but when I try to run it as a part of my application, it appears to stop short of consuming the source page or its css file.
There's something strange in the way it access web addresses with the full session id's embedded in the URL (due to a number of issues at my client, I have to run the app in a Cookieless state). At any rate, here are what my params look like:
Dim p As Prince = New Prince(PrincePath)
p.ClearStyleSheets()
p.AddStyleSheet(myCssPath1)
p.AddStyleSheet(myCSSPath2)
p.SetLog(myLogPath)
p.SetHTML(True)
p.SetCompress(True)
p.convert(myWebPage, myOutputPDF)
My inputs resemble the following:
myWebPage = "http://www.domain.com:52076/appdir/(S(jxduz52kwutel555ur1e4h55))/Review.aspx"
myOutputPDF = D:\WebMasterSandbox\APPNAME\ShareName\PdfActivity\2010_12022022_ jxduz52kwutel555ur1e4h55.pdf
The value I'm trying to get to in my landing page is what I'm calling
myPDFUri = "http://www.domain.com:52076/appdir/((S(jxduz52kwutel555ur1e4h55))/PdfActivity/2010_12022022_ jxduz52kwutel555ur1e4h55.pdf
The server recognizes the Prince.exe location at
"http://www.domain.com:52076/appdir/(S(jxduz52kwutel555ur1e4h55))/Prince/bin/Prince.exe"
When I run in this manner, the browser looks as if it's loading my aspx page, but my debug efforts reveal that it's doing nothing. And if I cancel the process, the ui will inform me (a few minutes later, after I've already forgotten about it) that my pdf is ready, and so it is.
Totally confounding. Can you offer any help?