Forum Replies Created
-
AuthorPosts
-
in reply to: What should i do to render thead column on every page? April 12, 2011 at 13:54#28507
Thank you very very much for your help
in reply to: link tag in head not working April 12, 2011 at 09:50#28505Thank you for your support.
in reply to: PD4ML failed to load Servlet Dynamically generated JPG File April 8, 2011 at 18:27#28305I get the same problem. Copying the url into the browser correctly brings back the image.
in reply to: Error while rendering PDF March 22, 2011 at 21:23#28485Hi anas_srairah,
can you give me an example of how I would use use PDF class in a servlet?in reply to: Render PDF on client machine March 15, 2011 at 20:11#28444@PD4ML wrote:
In order to show the document on client machine, you need to consider a web scenario (to deliver generated document to the machine by HTTP). There are many PD4ML servlet or JSP samples, which do the trick.
Thanks in fact the problem was in java because it render on server meanwhile javascript render on client. A call from Javascript solves the problem.
Thanks for your time
in reply to: Looking For PD4ML.NET Serve side Header/Footer Display Code March 4, 2011 at 15:32#28421@PD4ML wrote:
I cannot help you in a case you do not answer my questions.
Yes…is the answer.
Will it be easy to talk in live please…instead of spending time in chatting please?
If needed I can share my environment and show you what i am doping.I am under the gun to resolve all the issue and demo it to my end users.
Hope you can understand my current situation.
Thanks and Regards.
Vain reply to: Looking For PD4ML.NET Serve side Header/Footer Display Code March 4, 2011 at 14:11#28419@PD4ML wrote:
> A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 174.143.96.38:80
Is the PD4ML-enabled application running also on 174.143.96.38?
I am able to generate the PDF but no header, footers or page breaks even though I did convert the same java code you have provided and tried.
Please help me to include the missing parts in the current report i am generating.
Thanks and Regards,
VAin reply to: Looking For PD4ML.NET Serve side Header/Footer Display Code March 3, 2011 at 16:42#28417@PD4ML wrote:
There is a new PD4ML.NET version available for download. Please check if it solves the issue.
The newer .NET version did not help me with anything. I do see the same problem.
I couldn’t able to display the Header and footer using PD4ML.NET.I need to do this ASAP. Please run a sample in .NET and try to mimic this issue at your end. The current process is taking too much of time and did not solve the issue since long with our discussions.
I really appreciate if you can consider this an prioritized issue and provide me .NET specific sample with headers, footers, page breaks and some content in it.
Thanks and Regards,
VAin reply to: initialPageNumber February 28, 2011 at 10:56#28395Hello !
Works great !!
Thank you very much for your help and the quick adding of the feature !
I’m going to get my supervisor to order the pro license as soon as possible.Thanks again !
Kind regards
Niels Göranin reply to: How to generate pdf for constrained urls February 22, 2011 at 11:53#27600@PD4ML wrote:
It depends on the server side session mechanism of you web application. You need to propagate the session ID correctly with the URL passed to PD4ML.
For the regular J2EE application a solution is to add the jsessionid parameter to URLs:
http://your.server.net/webapp/sourcepage.jsp;jsessionid=8764587625?param1=value1¶m2=value2
How will this work with .Net MVC. need it to render an MVC action that is based on an authentication requirement.
in reply to: initialPageNumber February 18, 2011 at 13:58#28392Hello pd4ml-team,
I just would like to know, what the status is on the initialPageNumber parameter.
We are about to deploy the solution for our customer, so it would be really great to have this feature already in place for the customer (We will buy the license soon).Thank you for your help!
Kind regards
Niels Göran Blumein reply to: Looking For PD4ML.NET Serve side Header/Footer Display Code February 17, 2011 at 14:09#28415If I remove the footer code which is above the render page, the link is working as is. It is not giving me any error details.
All the code currently I am using in my application is posted in one of my previous posts.
Thank you
VAin reply to: Looking For PD4ML.NET Serve side Header/Footer Display Code February 16, 2011 at 20:55#28414Nope. It used to work before I added the footer code you have provided me. Thank you.
in reply to: Looking For PD4ML.NET Serve side Header/Footer Display Code February 16, 2011 at 19:47#28412Thank you for your response.
When I do the same as you guided, I am getting below error
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 174.143.96.38:80Public Sub generatePDF(ByVal inputUrl As String, ByVal htmlWidth As Integer, ByVal pageFormat As String, ByVal permissions As Integer, ByVal bookmarks As String, ByVal orientation As String, ByVal insets As String, ByVal fontsDir As String, ByVal outfile As Stream) System.Threading.Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo("en-US") System.Threading.Thread.CurrentThread.CurrentUICulture = System.Threading.Thread.CurrentThread.CurrentCulture Dim pd4ml As New PD4ML() If (insets IsNot Nothing) Then Dim st As Tokenizer = New Tokenizer(insets, ",") Try Dim top As Integer = Int32.Parse(st.NextToken()) Dim left As Integer = Int32.Parse(st.NextToken()) Dim bottom As Integer = Int32.Parse(st.NextToken()) Dim right As Integer = Int32.Parse(st.NextToken()) Dim units As String = st.NextToken() Dim ins As Rectangle = New Rectangle(top, left, bottom, right) If ("MM".Equals(units.ToUpper())) Then pd4ml.PageInsetsMM = (ins) Else pd4ml.PageInsets = (ins) End If Catch ex As Exception Throw New Exception("Invalid page insets (top, left, bottom, right, units): " & insets) End Try End If pd4ml.HtmlWidth = (htmlWidth) If (orientation Is Nothing) Then orientation = "portrait" End If If ("PORTRAIT".Equals(orientation.ToUpper())) Then pd4ml.PageSize = PD4Constants.getSizeByName(pageFormat) Else pd4ml.PageSize = pd4ml.changePageOrientation(PD4Constants.getSizeByName(pageFormat)) End If If (permissions <> -1) Then pd4ml.setPermissions("empty", permissions, True) End If If (bookmarks <> Nothing) Then If ("ANCHORS".Equals(bookmarks.ToUpper())) Then pd4ml.generateOutlines(False) ElseIf ("HEADINGS".Equals(bookmarks.ToUpper())) Then pd4ml.generateOutlines(True) End If End If If (fontsDir <> Nothing AndAlso fontsDir.Length > 0) Then pd4ml.useTTF(fontsDir, True) End If Dim footer As New PD4PageMark() footer.setPageNumberTemplate("page $[page] of $[total]") footer.TitleAlignment = PD4PageMark.LEFT_ALIGN footer.PageNumberAlignment = PD4PageMark.RIGHT_ALIGN footer.InitialPageNumber = 1 footer.PagesToSkip = 1 footer.FontSize = 14 footer.AreaHeight = 100 pd4ml.PageFooter = footer 'pd4ml.render(New Uri(inputUrl), outfile) 'pd4ml.render(New Uri(inputUrl).AbsoluteUri, outfile) pd4ml.render(inputUrl, outfile) End SubI appreciate your further support in this regard.
Thanks
VAin reply to: Looking For PD4ML.NET Serve side Header/Footer Display Code February 16, 2011 at 18:40#28410It is not working that way, As I need to the same from service. All you have provided me in the same is doable from Client side. I did check the link you have provided before I post my question.
I have a Generic page which takes page URL as a parameter and produce the pdf.
I will call the Generate PDF method from a page where there is no client side coding is not possible.Thanks
VA -
AuthorPosts
