Showing posts with label pdf. Show all posts
Showing posts with label pdf. Show all posts

Monday, March 26, 2012

lock pdf export

Hi
i just create a report in c#. The user can export this report in .pdf format. Now i want to lock the content of this .pdf files. How can i do this in crystal report 10?
Thank'sSet the EnableExportButton to False
Add a command button to the Viewer and customize the allowed export options...
But remember, that the user could have a PDFPrinter

Monday, March 19, 2012

LocalReport.Render creates PDFs 10x the size of RS 2000

I'm using LocalReport.Render to create PDFs from my VB.Net 2005 application.
The resulting PDF is about 10x the size of the same report rendered from RS
2000. Looking inside the generated PDF file, I see that the main body of the
report is no longer using any compression.
Is there any way to force LocalReport.Render to use the compression that RS
2000 was using?This is a known bug:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=134219&SiteID=1
--
Robert Jeppesen
Durius
http://www.durius.com/
"davedave" <davedave@.discussions.microsoft.com> wrote in message
news:7929FEFC-3427-4864-A817-B3A83269F92D@.microsoft.com...
> I'm using LocalReport.Render to create PDFs from my VB.Net 2005
> application.
> The resulting PDF is about 10x the size of the same report rendered from
> RS
> 2000. Looking inside the generated PDF file, I see that the main body of
> the
> report is no longer using any compression.
> Is there any way to force LocalReport.Render to use the compression that
> RS
> 2000 was using?

Wednesday, March 7, 2012

Local report pdf export

I have found several questions and remarks about the pdf export in local mode. The big problem is that the export to pdf option in local mode is useless when compression is not supported.

My questions:

1.) When (VS 2005? date?) will pdf compression in local mode be supported?
2.) Is it possible to compress the result of the LocalReport.Render method with custom code?
3.) It seems like a small adjustment to use the server mode compression code also in local mode. Is it part of a MS strategy to force the use of server mode?

Thanx,
Arjan

I don't know of any plans to support PDF compression in local mode.

It is always possible to post-process the result of an export however you want, including compression.

|||Do you know of any .net components that can compress a PDF document?|||

I know of no .NET compression libraries off the top of my head that can compress the PDF and maintain the correct page stream. However, you can shell out to a command-line tool to do the recompress:

http://www.pdftk.com

Just be aware that this software is GPL-based so check with your legal department before incorporating binaries or source into any solution.

Thanks, Donovan

|||

I acutally came across pdftk, and it does do the job.

However, it has no hooks into it, so to get it to work as a component would take a lot of work on our part.

But I can't find anything that does the trick, so I guess I might end up shelling out to pdftk and just hoping it works. But of course that is not ideal.

Local report pdf export

I have found several questions and remarks about the pdf export in local mode. The big problem is that the export to pdf option in local mode is useless when compression is not supported.

My questions:

1.) When (VS 2005? date?) will pdf compression in local mode be supported?
2.) Is it possible to compress the result of the LocalReport.Render method with custom code?
3.) It seems like a small adjustment to use the server mode compression code also in local mode. Is it part of a MS strategy to force the use of server mode?

Thanx,
Arjan

I don't know of any plans to support PDF compression in local mode.

It is always possible to post-process the result of an export however you want, including compression.

|||Do you know of any .net components that can compress a PDF document?|||

I know of no .NET compression libraries off the top of my head that can compress the PDF and maintain the correct page stream. However, you can shell out to a command-line tool to do the recompress:

http://www.pdftk.com

Just be aware that this software is GPL-based so check with your legal department before incorporating binaries or source into any solution.

Thanks, Donovan

|||

I acutally came across pdftk, and it does do the job.

However, it has no hooks into it, so to get it to work as a component would take a lot of work on our part.

But I can't find anything that does the trick, so I guess I might end up shelling out to pdftk and just hoping it works. But of course that is not ideal.

Local report pdf export

I have found several questions and remarks about the pdf export in local mode. The big problem is that the export to pdf option in local mode is useless when compression is not supported.

My questions:

1.) When (VS 2005? date?) will pdf compression in local mode be supported?
2.) Is it possible to compress the result of the LocalReport.Render method with custom code?
3.) It seems like a small adjustment to use the server mode compression code also in local mode. Is it part of a MS strategy to force the use of server mode?

Thanx,
Arjan

I don't know of any plans to support PDF compression in local mode.

It is always possible to post-process the result of an export however you want, including compression.

|||Do you know of any .net components that can compress a PDF document?|||

I know of no .NET compression libraries off the top of my head that can compress the PDF and maintain the correct page stream. However, you can shell out to a command-line tool to do the recompress:

http://www.pdftk.com

Just be aware that this software is GPL-based so check with your legal department before incorporating binaries or source into any solution.

Thanks, Donovan

|||

I acutally came across pdftk, and it does do the job.

However, it has no hooks into it, so to get it to work as a component would take a lot of work on our part.

But I can't find anything that does the trick, so I guess I might end up shelling out to pdftk and just hoping it works. But of course that is not ideal.

Local processing, ReportViewer and PDF

I hope this is the right Newsgroup, if not I'd be glad for directions to the
right one.
Regarding the ReportViewer control shipped with VS.NET 2005 Beta 2, I've
seen that in local processing mode the only renderer is Excel. Does anybody
know if this will be like that also in the final version of VS.NET 2005 ?
Does anybody know any commercial PDF rendering extension for the
ReportViewer?
Thanks,
Ethem AzunAfter writing this, I just run into these;
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=b5f3f1cf-4614-474e-b423-0fa9c35f09e1
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=7acce9a3-35f5-4f6b-8789-236db4b45a03
Ethem Azun
"Ethem Azun" wrote:
> I hope this is the right Newsgroup, if not I'd be glad for directions to the
> right one.
> Regarding the ReportViewer control shipped with VS.NET 2005 Beta 2, I've
> seen that in local processing mode the only renderer is Excel. Does anybody
> know if this will be like that also in the final version of VS.NET 2005 ?
> Does anybody know any commercial PDF rendering extension for the
> ReportViewer?
> Thanks,
> Ethem Azun