Hello,
We are trying to use the 64 bit version for our server. Below is what we coded for use in a 32 bit machine. Did anything change please advise.
mports System
Imports Sandia.Domain
Imports System.DirectoryServices
Imports USQHelper
Imports System.Data.SqlTypes
Imports ceTe.DynamicPDF.Conversion
Imports ceTe.DynamicPDF.Merger
Imports ceTe.DynamicPDF.PageElements
Imports ceTe.DynamicPDF
Partial Class CREATEPDF
Inherits System.Web.UI.Page
'----------------------------------------------------------------
'! Creates the Screen PDF without attachments and redirects user to the file.
'! Called from the Print PDF button on each Screen page.
'! Version: 0.0
'! Author : Mary Ann Brunick September 2, 2010
'!
'! Revision History
'| Uses the Dynamic PDF Converter and Merger class libraries
'| Imports Page Elements from PDF Converter
'-----------------------------------------------------------------
' Parameters
'-----------------------------------------------------------------
': Usqid and Usqnumber on the querystring
'
'-----------------------------------------------------------------
'< Loads the PDF in a new window.
'-----------------------------------------------------------------
'
'===============================================================
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim usqnumber As String
Dim adate = New System.DateTime
Dim timestamp As String
Dim pdfByteStream As Byte()
Dim HeaderHeight As Single = 74
Dim currentserver As String
Dim usqid As Integer
Dim currentvirtual As String
' currentvirtual = Request.ApplicationPath()
currentvirtual = "http://gpweb-dev2.sandia.gov/eusq-q"
currentserver = "\\ws01snlnt\usq-qual"
usqid = Request.QueryString("usqid")
usqnumber = Request.QueryString("usqnumber")
timestamp = DateTime.Now.ToLongTimeString
If InStr(usqnumber, "/") Then
usqnumber = Replace(usqnumber, "/", "-")
End If
Try
pdfByteStream = Converter.Convert(currentvirtual & "/usqscreenpdfdraft2.aspx?usqid=" & usqid & "&ts=" & timestamp)
Dim pdf As New PdfDocument(pdfByteStream)
Dim document As New MergeDocument(pdf)
Dim template As New ceTe.DynamicPDF.Template()
Dim header As New ceTe.DynamicPDF.PageElements.Label("SF 2001-USC(5-2009) Supersedes(5-2007) Issue ", 60, 20, 400, 20, Font.TimesRoman, 10, TextAlign.Left, RgbColor.Black)
Dim footer As New ceTe.DynamicPDF.PageElements.PageNumberingLabel("%%CP%%", 300, 740, 100, 20)
template.Elements.Add(header)
template.Elements.Add(footer)
document.StampTemplate = template
document.Draw(currentserver & "\tmp\" & usqnumber & ".pdf")
Response.Redirect(currentvirtual & "/tmp/" & usqnumber & ".pdf")
Catch ex As Exception
' Response.Write("<script>")
' Response.Write("alert('The problem was encountered with the PDF generation. Please contact your systems programmer.');")
' Response.Write("</script>")
End Try
End Sub
End Class
64 bit help
Re: 64 bit help
Support · Oct 1, 2010Hello,
You can use the same code for both 64 and 32-bit versions of DynamicPDF Converter. The dll you are referencing in your project are the same no matter if you install the 32 bit or 64 bit version. The only difference between the two version are the printer drivers, so you still need to pick the right version based on the OS you are installing it on.
Thanks,
ceTe Software Support Team.
Re: 64 bit help
Forum member · Oct 4, 2010we are using window 2008 r2, IIS 7.5, IIS_User in leui of ASPNET.
This should work with the download right?
Re: 64 bit help
Support · Oct 4, 2010Hello,
Can you please make sure that you are using the 64 bit MSI to install the DynamicPDF Converter product on 64 bit operating systems? Also Please send over more details about the problem you are having with the DynamicPDF Converter while doing conversions to our support team at [^a|mailto:support@cete.com|opennewiwndow|Support Team^] so that they can look into it further.
Thanks,
ceTe Software Support Team.
Re: 64 bit help
Forum member · Oct 4, 2010Yes, we have the 64 bit version installed. Sent details. It seems to be a printer issue. Please advise
Elva
Re: 64 bit help
Forum member · Oct 11, 2010We are getting the conversion to pdf, but when it runs the aspx file (for conversion) to cannot navigate the page to convert.
We get a pdf with 'navigation to web page cancelled'. It seems to be a security issue of some sort.
We understand that windows 2008 r2, with iis 7.5 doesn't use ASP as a user. It uses IIS_Usr and iusr.
Any ideas?
Re: 64 bit help
Forum member · Oct 11, 2010Do we need to add asp.net in the permissions for the server?
Re: 64 bit help
Support · Oct 11, 2010Hello,
When you open this web page in browser, do you need to enter any credentials to login? If that's not the case, is the web site set up with ASP.NET impersonation? In that case please try to impersonate a specific user who has permissions to see if it works. See below on how to add the user name and password in your web.config to impersonate a specific user.
<identity impersonate="true" userName="domain\user"
password="password" />
Thanks,
ceTe Software Support Team.
Re: 64 bit help
Forum member · Oct 11, 2010does your software need aspnet as a user in order to convert a file?
Re: 64 bit help
Support · Oct 11, 2010Hello,
The ASP.NET account has limited permissions, you will not be able to run the the windows service using the ASP.NET account. By default the DynamicPDF Converter service runs under the local system account. If you have the impersonation turned on your web site, please see the second example in this link
. When the user navigates to this page, it will render the page under the user credentials and sends the rendered HTML to the Converter process. This might prevent the permissions issues you are having as the page you are trying to convert needs authentication.
Thanks,
ceTe Software Support Team
Re: 64 bit help
Forum member · Oct 12, 2010we had this up and running fine in 32 bit, but 64 bit is giving us a pdf of 'navigation to web page cancelled' when it tries to convert our aspx file.
So, what is the difference between the 64 bit and 32 bit?
Re: 64 bit help
Forum member · Oct 12, 2010THE DYNAMIC PDF PRINTER HAS A ! NEXT TO IT...AFTER INSTALLATION AND WE HAVE A MILLION DOCUMENTS IN THIS PRINTERS QUEUE. EVERY TIME WE TRY TO RUN THE PDF CONVERTER, IT MAKES A PDF OF THE NAVIGATION TO WEB PAGE CANCELLED SCREEN .
IDEAS?
Re: 64 bit help
Support · Oct 12, 2010Hello,
When you are running this web page on a 32-bit machine, is the web page hosted in IIS or are you running it by debugging the project from your Visual Studio?
Thanks,
ceTe Software Support Team.