We are producing proofs of files we intend to print; however, the files are sometimes 80 mg in size. Producing a proof with variable data is not an issue. The issue is the amount of time it takes to open and view the pdf's over the web; therefore, the question is... Is there a way to automatically reduce the resolution of the pdf using C#, VB, C++ or iTextSharp? Thanks, Steve
Steve van Niman
Posts
-
Lower resolution of .PDF -
Find specific table in .dbmlTHANK YOU!!! Will be very helpful when making changes in the future.
-
Find specific table in .dbmlI am using a semi large .dbml. When trying to replace a table, it is sometimes difficult to find the table. Is there an easy way in VS2010 to find the table using the Linq-to-SQL editor?
-
What is best way to show Grid inside a TabPanelRelatively new to asp.net. I want to develop a page that uses an AJAX Tab Panel Control. Based on the tab, the user selects, a filter is applied to the result set shown on a grid. I'm wondering if I should just have the tabs display without showing anything in the tab itself, or develop a custom control (.ascx) which I would include on the tab, thus I'm writing code once instead of having a unique grid on every tab. If I use the custom control and have the grid on the tab, how do I access controls on the .aspx page? Simple example. I have a label on the .aspx page which displays messages, based on what someone is doing on the grid. If the grid is in the .ascx, how do I access the label in the .aspx?
-
How to pass in class to web service?Good question - how do you serialize the object? As stated in the opening question, I have never had to serialize anything - meaning no experience.
-
How to pass in class to web service?which begs the question, how do I pass a class through to a web service?
-
How to pass in class to web service?correct. This is the exact message: Value of type '1-dimensional array of PNDataMap.AddressStructure' cannot be converted to '1-dimensional array of CardProgramNG.ValidateService.AddressStructure' because 'PNDataMap.AddressStructure' is not derived from 'CardProgramNG.ValidateService.AddressStructure'.
-
How to pass in class to web service?I did, both client and web service use the dll. That is what has me perplexed. The message will read module1.class cannot be converted to module2.class.
-
How to pass in class to web service?Hopefully can give enough information to get pointed in the right direction. Wrote a fairly extensive class and placed in .dll for use in a client application AND my web service. I declare the class as a one dimensional array and then try to pass into the web service; however, when I set client.class = ws.class I get a compilation error indicating that ws.class cannot be converted to client.class. I've tried CType and DirectCast, but both complain of the same thing. Do I need to write a conversion routine in my code to parse each node of the class? There must be an easier way....
(.dll) public class Address private _x as string private _y as string get/set for x and y public sub New() _x="" _y="" end sub end class (client) dim a() as Address ... read data and populate a() dim ws as new webservice.service ws.validate(a()) (web service) public sub validate(byval b() as Address) When I try to run this I get a cannot convert client.a() to webservice.b() even though they implement the .dll with the same class. I don't understand what serialization does for an array, so I'm off to study how that will effect these calls. In the mean time, if someone could point me in the proper directly, it would be greatly appreciated.
-
With just the name of a RadioButton, how can I check/uncheck the control?Beautiful. That did the trick. But still a bit confused - what is AFAIK
-
With just the name of a RadioButton, how can I check/uncheck the control?AFAIK? Was able to get to the Checked property by converting the Control to a Radio Button using CType.
Private Sub ChecktheRadioButton(ByVal sName as String)
Dim ctr as Control
For Each ctr in GroupBox2.Controls
If ctr.Name = sName then
CType(ctr,RadioButton).Checked = True
Exit Sub
NextEnd Sub
-
With just the name of a RadioButton, how can I check/uncheck the control?I'm trying to do a mapping exercise and if a user clicks on a column and it has already been mapped, I want to check the corresponding radio button. If I use a For Each loop to loop through the controls of a group box, I can find the control/radio button, I can change the Text, Font size, position and many other things, but I cannot change the Checked status. What am I missing? Thanks in advance, Steve
-
Moving from Session mode InProc to StateServerWow - sometimes it amazes me as to how frequently the "website" or "project" becomes corrupted in Visual Studio. At wits end, started brand new website and literally copied over web.config from website giving me issues with sessionState - StateServer. Worked out of the gates... Ok so my config was correct, so why would my existing site not work? Went to \windows\Microsoft.Net\Framework\n.n.nnn.release\Temporary ASP.NET Files\ and deleted all websites - still a no go. Then remembering what one of my friends told me, "It is common for the solution/website to become corrupted. When this happens, copy all files to a new directory and start over. Bingo - works out of the gate. Lost two days on something that should have worked because the platform I'm on cannot remain uncorupted...
-
Moving from Session mode InProc to StateServerPlease don't worry about iFrame in PHP at this point. I can't get this to run as a simple website on my machine...
-
Moving from Session mode InProc to StateServerNo - just one site. Just need to get it out of IIS. Server managing sessions is the same server; however, if this is in place, then I am set to start a server farm if necessary.
-
Moving from Session mode InProc to StateServerThis is so FRUSTRATING... I was losing session information when embedding an iFrame inside a PHP site, so decided to switch from InProc mode of sessions to StateServer. Made/added the following lines to my web.config:
<sessionState mode="StateServer" timeout="60" cookieless="AutoDetect" stateConnectionString="tcpip=localhost:42424" /> <pages enableSessionState="true"> <httpModules> <add name="Session" type="System.Web.SessionState.SessionStateModule" />
and yet, the first time I touch a Session variable I get a: Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration. I am using Master and Pages and the Session is in the Master Page_Load code behind. Any help is greatly appreciated. -
Database Changes - how to update DBMLSpot on! Thanks for the link.
-
Database Changes - how to update DBMLI've added a column to my SQL Server database. How do I get the existing .dbml's to recognize the new column in my project? Is there a way to refresh? Or is it delete and add again? Or is it manual changes to the code? Many Thanks!
-
Writing text to a password controlThanks - rookie stumped by the same behavior. Worked like a charm.
-
UniquenessArun, Was looking for an even faster shortcut. Already created the lookup in where clause. Thanks for the response. Steve