How to Generate PDF with columns? - asp.net-mvc-4

Hello Everyone I am new in .Net MVC and I am facing a issue while creating PDF Files. My Issue is when we creating a PDF file we want to adjust columns on the same page. But what is happening now when the page complete it goes to new page.
Lets me explain you through example.
[enter image description here](https://i.stack.imgur.com/xgLEP.png)
In the above image you can see that all the data comes on the right side. When the page comes to an end and new page start at that time also it shows on the right side.
[enter image description here](https://i.stack.imgur.com/v5Ymd.png)
But i want to check when the page comes to an end some of the content display on the left side of the page. As per the above screenshot. Is that possible while creating PDF in MVC Using ItextSharp.dll. Please help me out from this situation. Thank you in advance to all.

Related

Display the pdf through a link in database

I am working presently on the adf side and I am stuck with some issues.
I have a page where I have to display the pdf files. The pdf files are in another site and the links are present in a column of the database.But when I try to access those links they are downloading rather than displaying. I need to display those pdf files in my inline frame rather than downloading.
I heard many suggestions like write a bean and put the file in session and get display them in page .But I am not clear.
So please help me on this.
I have a check box at the end and the checkbox should be enabled in my page only when the displayed pdf scrolled to end.
Please help me solving those issues.
When you create a link to a PDF there is only so much you can do to make it display in the browser. The most important thing you must do on the server that delivers the PDF is to make sure it is presented with the correct MIME-type and without a content-disposition header value of attachment.
After that, it's up to the browser to either show it in a browser tab or to download the file. I know Chrome will show the PDF in the browser when it's linked to, not sure if it also does that when it's linked in an iframe.
I don't think there's a reliable way to make it work the way you want, simply because it's very browser dependent.

using .gif image in Active reports .i.e. in pdf it should display

I have a strange requirement , where the client wants a graphical logo which revolves to be printed on the reports. I am completely confused as on PDF can we display a .gif image. i gone through and found this. So, generating reports by active reports9 is it possible. Need assistance guys. If its not we need to inform as early as possible to client. If it possible how. Thanks in advance.
Displaying animated gif images in ActiveReports is not possible as of now.
Gifs could be loaded inside the Picture control in reports as simple images but the animation part for them is not supported currently.

Print preview of my web page to pdf and save it on server side programmatically

I have a deceitfully difficult problem which I had thought it was easy one at the beginning and yet I have spent more than 3 days on and off in total.
what I simply need to do is to save the print preview of the page to PDF file on server side from code behind initiating by a button click.
I was expecting using an open source and then I thought there would be a code like xyzopencode.savepasgeaspdf(path) but I could not find it. I got really close to solution by saving the PDF but then I realized it did not save the picture it only saved the strings.
I tried the pdfsharp but as long as I see it draws the whole thing from scratch and I am nor sure if I can do it.
The reason I need picture compatible one is I have 3rd party signature controller on my page and my couple of attempts worked without them or any picture but when I added pictures they failed to show to picture or did not create the PDF at all. The perfect solution would be just saving what ever shows up in the print preview as PDF, just like the built in feature of Google chrome (but on server side).

how to Delete blank page form pdf using VB.NET?

I am generating the PDF in that, i have merged first RDLC(Report) and second cristal report Total 2 pages are in my report,but after generating PDF it is showing three page, last page is blank so how to Delete blank page Using VB.NET... please help me out....
The reason for the third page is probably an element of the report overflowing invisibly somewhere. Try making it slightly less wide for starters and see if that helps.

Pagination in report viewer

I am using report viewer control in ASP.NET MVC 4 application. Because for this i did not follow the MVC structure. I create a separate aspx page for report. Its working fine.
But i am facing issue in pagination. I want to display limited no of rows per page. For example if i have 1000 rows in then i want to show 10 rows on each page (I want this pagination for web page, i am not talking about when we print the report in PDF or Excel). I am using Table (a control from report toolbox)
I searched on net but someone suggested me to set "InteractiveSize" but this is depends upon the size , i want to fix it as a 10 rows per page same like we use in Gridview.
Specifying Page Breaks and Page Sizes is also not work for me. I think we use "Page Breaks and Page Sizes" for doing partition on pdf or excel file.
Please give me solution. thanks in advance.