Best Library / Component For PDF Creation C#?
Apr 6, 2010
I have read a couple of older threads on PDF creation but I want to know what is the best free or relatively inexpensive library for PDF creation out there today?
I am looking to create PDF files using C# and they will contain lots of tables and images.
View 6 Replies
Similar Messages:
Apr 23, 2010
I'm looking for a library/component able to edit a .dwg file (Autocad file) in a ASP.NET page? I just need to make some minor changes in a .dwg file?
View 1 Replies
Mar 29, 2010
My understanding of Factory Method Pattern is (Correct me if i am wrong) Factory Method Pattern "Factory Method allow the client to delegates the product creation (Instance Creation) to the subclass". There are two situation in which we can go for creating Factory Method pattern.
(i) When the client is restricted to the product (Instance) creation.
(ii) There are multiple products available.But a decision to be made which product instance need to be returned. If you want to create Abstract Method pattern
You need to have abstract product Concrete Product Factory Method to return the appropriate product.
public enum ORMChoice
{
L2SQL,
EFM,
LS,
Sonic
}
//Abstract Product
public interface IProduct
{
void ProductTaken();
}
//Concrete Product
public class LinqtoSql : IProduct
{
public void ProductTaken()
{
Console.WriteLine("OR Mapping Taken:LinqtoSql");
}
}
//concrete product
public class Subsonic : IProduct
{
public void ProductTaken()
{
Console.WriteLine("OR Mapping Taken:Subsonic");
}
}
//concrete product
public class EntityFramework : IProduct
{
public void ProductTaken()
{
Console.WriteLine("OR Mapping Taken:EntityFramework");
}
}
//concrete product
public class LightSpeed : IProduct
{
public void ProductTaken()
{
Console.WriteLine("OR Mapping Taken :LightSpeed");
}
}
public class Creator
{
//Factory Method
public IProduct ReturnORTool(ORMChoice choice)
{
switch (choice)
{
case ORMChoice.EFM:return new EntityFramework();
break;
case ORMChoice.L2SQL:return new LinqtoSql();
break;
case ORMChoice.LS:return new LightSpeed();
break;
case ORMChoice.Sonic:return new Subsonic();
break;
default: return null;
}
}
}
**Client**
Button_Click()
{
Creator c = new Creator();
IProduct p = c.ReturnORTool(ORMChoice.L2SQL);
p.ProductTaken();
}
Is my understanding of Factory Method is correct?
View 3 Replies
Aug 3, 2010
I am trying to stop the data flow when certain conditions happen in the script component. Like if a row in the data set has an invalid date, I dont want that dataset to be inserted in the tables or go through OLEDB Destination, rather I want the entire data flow for that dataset to stop and go back to the control flow page.
I have tried mulitple solutions but nothing worked. Conditional Split ends up inserting the correct rows, but I just dont want anyting to be inserted when one row is bad, where as I do want the entire dataset to be inserted if all rows are good.
How can I fail the component when certain conditions happen int eh script component.
View 1 Replies
May 18, 2010
I would like to know how can I list for every page (child page) selected the number and id of localize component in the current page. I need this to update resources files, a button will be on the master page and when they click on it, they will go to a page which show up every data in the resource file.
View 1 Replies
Feb 10, 2011
i got a problem.. how i can declare template textbox in a datagrid at code behind? i already make a stored procedure and put the update query inside it.. if i declare the textbox inside code behind(.aspx.vb).. there will be an error.. " there is already a component named "txtitem1"component must have a unique name.."
Dim con As New SqlConnection(ConfigurationSettings.AppSettings("ConnectionString1"))
Dim cmd As New SqlCommand
Dim sda As New SqlDataAdapter
cmd.CommandType = CommandType.StoredProcedure
cmd.CommandText = "ETendering3"
cmd.Parameters.Add("@item", SqlDbType.NVarChar).Value = txtitem1.Text
cmd.Parameters.Add("@price", SqlDbType.Decimal).Value = txtprice1.Text
cmd.Parameters.Add("@remark", SqlDbType.NVarChar).Value = txtremark1.Text
cmd.Parameters.Add("@consump", SqlDbType.Decimal).Value = txtconsump1.Text
cmd.Parameters.Add("@value", SqlDbType.Decimal).Value = txtvalue1.Text
cmd.Connection = con
Try
con.Open()
DataGrid12.DataSource = cmd.ExecuteReader()
DataGrid12.DataBind()
Finally
con.Close()
End Try
con.Dispose()
cmd.Dispose()
con = Nothing
cmd = Nothing
_______________________________________________________
.aspx
<Columns>
<asp:BoundColumn DataField="Listing_Id" HeaderText="Listing"></asp:BoundColumn>
<asp:BoundColumn DataField="No" HeaderText="No"></asp:BoundColumn>
<asp:BoundColumn DataField="Item_Category" HeaderText="Category"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="Description">
<ItemTemplate>
<asp:TextBox id=TextBox1 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Item_Description") %>'>
</asp:TextBox>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="txtitem1" runat="server"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Price" FooterText=" 10/50">
<ItemTemplate>
<asp:TextBox id=TextBox3 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Price") %>'>
</asp:TextBox>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="txtprice1" runat="server"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Remarks">
<ItemTemplate>
<asp:TextBox id=TextBox2 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Remark") %>'>
</asp:TextBox>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox id="txtremark1" runat="server"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Consumption">
<ItemTemplate>
<asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Consumption") %>'>
</asp:TextBox>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox runat="server" ID="txtconsump1"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Value">
<ItemTemplate>
<asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Value") %>'>
</asp:TextBox>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox runat="server" ID="txtvalue1"></asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
</Columns>
View 38 Replies
Mar 2, 2010
I am looking at the twitter api page http://apiwiki.twitter.com/ and I noticed that they have already built libraries that are wrappers against the twitter api. So I am thinking this is the best way to go but I am unsure which C# library I should use.
What I am trying to do is make some simple service or cmd line application that will help me automate retweeting.
So I am looking for a library that will allow me to get posts from other twitter accounts and then retweet them from another account.
I am not sure if the library can do this or not. Otherwise I was thinking of getting the RSS feed from the twiter account I want to get the twitters from parse out the new ones and use a library to retweet them on my own account.
I have not used twitter much so I am hopping someone can shed some light on this.
View 2 Replies
Apr 30, 2014
I have student data in xml file ... I wanted to generate and download a pdf file from xml file for a specific record ...
View 2 Replies
Feb 11, 2010
This is a thread looking for advice/comments.I have datalist that has an image in each row. Right now i am just setting the height to a certain height like 75px and this works just fine. Our images are pretty web friendly. But if a user was to have a jpeg that is like 2mb and i change the height I am guessing it still is loading the full 2mb even though the image has "shrunk"?If so what is best way to handle thumbnail creation. I dont want the end user to have to create thumbnail so i was thinking of doing it dynamically if the way I am doing it now is gonna slow down my page.
View 2 Replies
Sep 23, 2010
I'm using various tutorials to create an RSS Feed in asp.net. Most of these examples are in C, but have converted to vb.net without errors, except that the data is not showing when i run the page in which the feed is on, i am just given a blank white page:
My database table is called
News_Items and contains:
ID - Int
Title - nvarchar(50)
News - ntext
PostDate - datetime
This table holes 6 records currently. My code is as follows (These files are shown in their entirity):
RSS_Feed.aspx - Inherits Default as anything else generates an error
[Code]....
RSS_Feed.aspx.vb
[Code]....
View 2 Replies
Jan 25, 2011
I've been handed some documentation about an API and been told to integrate it (the API uses SOAP). I'm familiar with web services and how they work, but I've never built a functional one. That is to say, I can create a basic web method in C# but I've never written anything to connect to an external system. I've read parts of books and I've not been able to find a good example about how to connect to and use a third-party API. I guess my question would be "how can I use this API with our systems?"
View 2 Replies
Sep 26, 2010
Here is the code first :
Const localFile As String = "C:file.bin"
View 4 Replies
Feb 4, 2011
In my application i placed a button.While clicking on button i need to generate one dynamic textbox.For every click i need to generate textbox. Ex: For the first time if i click on button i need to generate textbox.If again i click on the button i need to generate one more textbox.
View 2 Replies
May 19, 2010
I'm looking for a good tutorial/article that explains the exact sequence of events that takes place when a page is created. I can never remember the order. I think it's something like the parent controls Init event is called, then the child controls Init event is called, in order of the placement on the page. Also, when the control events are called, what order are they called in? For example, if a button event is raised, does this event get called before a DataList_ItemDataBound event is called if the DataList.DataBind is in the Page_Load event? So, does anyone want to try to explain or direct me to a nice article that explains all this?
View 3 Replies
Apr 1, 2010
Last year we created an application that creates folders for the records on our network drive. Everything worked til the new year.. then we had to update the code to create a new parent folder for the year, since then every other month it seems that the month folder gets created, but the individual folders under that month do not.
[Code]....
View 6 Replies
Mar 13, 2010
I have made an asp.net 3.5 website where I am using the membership in order to generate users. I have used the CreateUser Wizard that is available with the ToolBox . The problem which I am facing is that as a Person Completes his registration and redirected to the Default Page, He is automatically Logged Into the website. I dont know how is it possible to skip this step. Pls suggest so that after the registration the user need to go to the login page and use the Login Control in order to Log into the site.
View 3 Replies
Dec 10, 2010
I have a page setup to manage and create users.. in order to help the process of creation, i woudl like to add the new users to our default "users" role when they click the create button. Below is what is in place for the creation page and the button event tied to the button. I used this from a tutorial i found else where, but dont have the link at the moment if anyone needed it.. but the code below works great when creating a new user
[Code]....
View 5 Replies
Jan 17, 2011
As the title says , i'm looking for some kind of technology that allows me to dynamicly add & remove usercontrols.Without a postback ofcourse :)A link would be awesome , example code would be super!
View 1 Replies
Oct 27, 2010
I have a table created on the front end of my code called "tblSearchlist". In my code behind I have the following.
[Code]....
All this code works fine. What I want to do now is insert another dynamic table within cell1. Any ideas how to do this. This process can be done on the front end like so but I need it in code behind.
[Code]....
View 1 Replies
Mar 17, 2010
When I try the following code in a sub, it always returns a date of 12/31/1600.
why it's not giving me the correct date?
Dim x
As
New FileInfo("/MainMenu.aspx")
Master.Say(x.CreationTime.ToLongDateString)
View 2 Replies
Jan 14, 2011
How to remove and add jqgrid dynamically update the jqgrid The data in the jqgrid has to be changed of click event. how is it possible to remove or update the existing jqgrid
View 2 Replies
Feb 3, 2011
I have an application using data from multiple stored procedures in a single database.The dataacess is disconnected one. Entire data is required during loadtime i.e. all calls made at load time. I want to know what is the most optimized way to do it. As the connection is required with only one database,is there a way to create it once and use it for the next times. I am aware of connection pooling but its anyways done by default. kindly suggest some way to optimize the load time. Also the result set from all the procedures cannot be clubbed so multiple stored procedure invoking is compulsory required.
View 1 Replies
Feb 10, 2011
I have a class with many properties - strings, booleans, etc. This class was created from Entity Framework.
Now I want to quickly create the controls for the properties. I dont care about linking the controls to an object - I can do this later. I just find it a pain to create 50+ controls on the webpage when the class could be used to create a 'template'.
View 1 Replies
Feb 9, 2010
My current task is an ASP.NET page to display the contents of a data object. One of that object's properties is a list of named lists. For opacity's sake let's call it a Company, which has a list of named locations, and each location is associated with (only) a list of employees.In case it matters, Company has this property implemented like so:
IDictionary<string, IList<Employee>> mEmployeesByLocation;
Each of those lists can display very easily in a GridView. What I think I want is to put the whole thing in a TabContainerand have a separate TabPanel containing each grid. The tabs and grids will be identical to each other, and the name of each tab will be the associated dictionary keyIs there a good way to do this? My first thought was to use a Repeater, but you can't put one inside a TabContainer. The parser doesn't know what to do with it there.So, it looks like I'll have to create the tabs programatically. Fair enough. If at all possible, I want to avoid having to also create the individual grid controls and programatically assign all their properties.One suggestion I've gotten is to subclass TabPanel and make it work like a user control, containing a GridView and knowing how to pass databinding through to it. I'm not sure how to go about that, though, or if it will even work. I know how to subclass a control, but I don't think something can both act like a TabPanel and contain controls like a user control does.
View 2 Replies
Aug 10, 2010
I'm using DataAnnotations to validate creation of a new Admin user. However on EDIT page I want to have password and confirm password fields blank. This way i know that password has not changed. However whenever I EDIT a user I get ModelState.IsValid = false because password and confirm password are blank even though I set these in my controller. how would i fix this so that on EDIT screen I can omit "Required" validation?
Controller:
[code].....
View 4 Replies