VS 2010 - Creating PDF Documents

Oct 9, 2012

Using data posted by a mobile app to my database (via a web api) I will need to create PDF forms with the data filled in as if a user did that. I never did PDF generation, so some "points" that might decide what to use:

-Forms are pretty much a tabular structure.
-Some pages are in portrait, while others in landscape.
-Some columns have the data printed vertically.
-I will need to put images (saved in database, byte arrays) in some fields.

From what I read so far ITextSharp seems to be a popular choice?

View 3 Replies


Similar Messages:

Web Forms :: Retrieving Displaying Word 2010 Documents From SQL 05 In Varbinary (MAX)

Mar 21, 2012

I am retrieving a word 2010 document that has been uploaded to a sql 2005 database. When I subsequently download and open the document in a word window it states the file is corrupted and gives the user the option of repairing the file for display. This always works fine but the corrupted message is always presented for all DOCX files. The DOC files from an older Word version work fine without incident. the section of code, VB.NET, for streaming the document out to display in Word is: 

Dim bytes() AsByte = CType(dt.Rows(0).Item(2), Byte
())
Response.Buffer = True
Response.Charset =
""Response.Cache.SetCacheability(

[Code] .... 

Where the content type value, in this case, is "application/vnd.openxmlformats-officedocument.wordprocessingml.document" (rather than "application/vnd.ms-word").

The filename is simply the full name of the document and the data itself is loaded into the Bytes var. I got some time back... it just doesn't like the new and improved word 2010 files.

View 1 Replies

VS 2010 Errors With Creating Web Service

Mar 5, 2011

I am new to the whole ajax/jquery/web service scene. I am trying to create a web service to pass back data for a jquery post and currently have two errors. It appears there are examples the web but must in c and looking for something in vb. Below is my web service. See in bold the error descriptions and in red the items visual studio is highlighting.

WordsService.asmx
HTML Code:
<%@ WebService Language="VB" CodeBehind="~/App_Code/WordsService.vb" Class="WordsService" %>
WordsService.vb
Code:
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Runtime.Remoting.Services
Imports System.Collections.Generic
Imports System.Data.SqlClient
Imports System.Data
Imports System.Web.Script.Serialization
' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
<System.Web.Script.Services.ScriptService()> _
<WebService(Namespace:="[URL]
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class WordsService
Inherits System.Web.Services.WebService
Private _sConn As String = ConfigurationManager.ConnectionStrings("DB").ConnectionString

'1) Type 'ScriptMethod' is not defined.

'2) Value of type '1-dimensional array of String' cannot be converted to '1-dimensional array of 1-dimensional array of String' because 'String' is not derived from '1-dimensional array of String'.

<WebMethod(Description:="Gets the books matching part of a title."),
ScriptMethod(ResponseFormat:=ResponseFormat.Json)> _
Public Function GetBooksByTitle(ByVal strTitle As String) As String
Dim myConnection As SqlConnection = New SqlConnection(_sConn)
Dim objCommand As SqlCommand = New SqlCommand("SELECT * FROM table WHERE field like '%" _
+ (strTitle + "&' ORDER BY field;"))
Dim dsSearch As DataSet = New DataSet
Dim sdaSearch As SqlDataAdapter = New SqlDataAdapter(objCommand)
sdaSearch.Fill(dsSearch, "english")
myConnection.Close()
' Create a multidimensional jagged array
Dim JaggedArray()() As String = New String((dsSearch.Tables(0).Rows.Count) - 1) {}
Dim i As Integer = 0
For Each rs As DataRow In dsSearch.Tables(0).Rows
JaggedArray(i) = New String() {rs("BookNum").ToString, rs("Title").ToString, rs("Author").ToString}
i = (i + 1)
Next
' Return JSON data
Dim js As JavaScriptSerializer = New JavaScriptSerializer
Dim strJSON As String = js.Serialize(JaggedArray)
Return strJSON
End Function
End Class

Here is the article I am currently following for example: How To Create A JSON Web Service In ASP.NET.

View 3 Replies

Creating Mobile Web Applications In VS 2010?

Jun 29, 2010

I am trying to create a mobile version of a web application using VS2010 (.Net 3.5, not 4). When I search for information on ASP.net mobile I see a lot of references to mobile controls that adapt their HTML to the specific device requesting the page. Since I would like this app to be viewable on as many as devices as possible, it seems like it would be better to use the mobile controls rather than just create a smaller version of a web form. Apparently VS2008 and up do not include the mobile control templates, but you can download and install them separately. I did, but when I tried to create a test page I get a server error complaining that the assembly "System.Web.Mobile" could not be found. I double checked in my references and that assembly is included in the project. The file System.Web.Mobile.dll is also on the server running the app.

Is there something that I am doing wrong, or is developing a mobile web app in this way using VS2010 not possible?

View 1 Replies

Creating An MVC 2 Project In Visual Studio 2010

Nov 13, 2010

So I got a copy of Visual studio 2010 ultimate through my university and MSDN AA. I've been unable though to create any MVC2 projects in it. Even worse when I save my project from school and attempt to just open it at home I keep getting errors that it can't load the project (this included just open a basic empty project). I've tried a complete reinstall, and even manually downloading the MVC2 RC.

View 5 Replies

Crystal Reports :: Creating Web Page With CR For VS 2010

Mar 3, 2011

Can anyone tell me how or point to the web page to display a Crystal Report in a Web Page using VB .Net in VS 2010? They have changed it since VS 2008 and having issues finding help on this.

View 1 Replies

VS 2010 - Creating Session And Automatic Logout

May 25, 2012

I want user gets logged in and session will start and if in one minute he didnt performed any action it shoud come out to login form again.

View 5 Replies

VS 2010 / Use Generic Code For Creating TreeNodes?

Apr 22, 2012

I have this code:

Code:
Dim obj1 As New TreeNode
obj1.Value = 1
obj1.Text = "Level" & obj1.Value
Dim obj2 As New TreeNode
obj2.Value = 2
obj2.Text = "Level" & obj2.Value

[Code]...

Can I somehow create a function that creates the nodes instead of I need to make Dim ... each time? If I have 300 nodes this is not a good solution.

I have tried something like this but it doesn't work:

Code:
Function CreateObj(ByVal no As Integer, ByVal name As String, ByVal obj As TreeNode) As TreeNode
obj.Text = "Level" & no
obj.Value = no
treeview1.Nodes.Add(obj)
Return obj
End Function

View 5 Replies

Visual Studio :: Creating A Sql Server Express From 2010

Oct 21, 2010

I am trying to add a database using VS2010, I have VS2010 Professional and SQL server 2008 developer and sql server 2008 express and it seems impossible for me to create a database am being sent to the linkid=125883 to download an express edition even though i have it installed.

View 2 Replies

Creating VB Application With VS 2010 That Access Data Via The Internet?

Jun 7, 2010

I have been creating a web site over the past year that has been used as an appplication for the company I work for to allow remote and local users to update data. It has been working ok but I want to see if there is a better way to do what I need to.

issue is that the remote sites are all on satellite internet access and the latency and bandwith are hurting us. I have looked at some thrid party options such as Gizmox WebGui but I would like to explore other options.

Is it possible to create a VB application with VS 2010 that would allow users to update data from the remote sites? The only people using the application would be company employees and I can update the program during the evenings if I make any changes during the day. My thoughts are that the amount of internet traffic would be data engages and that would solve the bandwidth issue and therefore mitigate the latency issue somewhat since there would be less traffic.

View 2 Replies

Visual Studio :: Creating Web Service With Web Developer 2010 Express

Nov 15, 2010

My instructions for creating a new web service with VWD 2010 Express call for using the installed template, "AST.NET Web Service". But this template is not listed.

I would like to create a simple web service in visual basic, place it in IIS 7 on my desktop, and then consume it probably using a proxy class.

Is there another way to create a new web service in VWD 2010 Express?

View 1 Replies

SQL Server :: Creating A Sequence Using Visual Studio 2010 - Incremental ID

Mar 28, 2011

I am have created SQL database by using Visual Studio 2010. I created a table for users. My question is: How can I create an ID that increases automatically? For example, ID starts by 1 and increases 2 - 3 - 4 .......

View 2 Replies

Visual Studio :: .NET 3.5 Project In VS 2010, Error With Creating Properties

Apr 28, 2010

Creating a .NET 3.5 website in 2010, and when I attempt to create public properties for a user control I whipped up it is giving me inline error:Visual Basic 9 does not support auto-implemented properties. I can, however, type GET on the next line 2010 populates the property just like it used to. However, when I expose a control property it craps out with a null reference error at runtime.

View 1 Replies

Visual Studio 2010 - Apply The Web.config Transformation Before Creating The Installer?

Jun 7, 2010

I am working on an ASP.NET project in Visual Studio .NET 2010 and attempting to make an MSI installer using a Web Setup Project. I added the Primary output from the project (which seems to pull in the relevant dependencies) and the Content Files from the project (which pulls in the Web.config and the .svc files).

The issue is that rather than applying the XDT transform and creating the Web.config using the Web.Release.config, it just copies the Web.config, the Web.Release.config, and the Web.Debug.config into the installer without doing any transformation at all.

How do I get it to apply the Web.config transformation before creating the installer?

View 2 Replies

Installation :: Cannot Connect To Local Host Error When Creating Web Pages In Web Developer 2010

Jun 4, 2010

I'm new to ASP and was hoping to get some hands-on experience of web development, but have been having trouble getting started.

I followed the instructions in the [URL] setup video, and downloaded and ran the plaform installer. I noticed that the "Web Platform" section of the installer was didn't have the "Web Server" section at the top, as shown on the instruction video [URL] but it otherwise seemed to install ok.

When I tried to follow the tutorial videos on [URL] using MS Visual Web Developer 2010, I am unable to debug the application. The web page it loads just says: "The webpage "localhost:xxxxx" cannot be found" (where xxxxx is the five digit random port number).

I've tried uninstalling Visual Web Developer, and the various Microsoft .NET and SQL Server using the Vista uninstall functionality of the control panel (as bet as I could -I'm not sure if there was something I missed), and then re-installing, but I still get the same problem.

I've tried to find a solution on some developer forums, and I noticed there are posts relating to webdev.webserver.exe relating to the error message I've been getting. However I haven't been able to find any info on this for VS 2010.

I've checked, and I don't have webdev.webserver.exe in C:Program FilesCommon Filesmicrosoft sharedDevServer or in C:WindowsMicrosoft.NETFrameworkV2.0.50727, although I do have WebDev.WebServer20 and WebDev.WebServer40. inC:Program FilesCommon Filesmicrosoft sharedDevServer 10 (I'm not sure if one of these is the equivalent files for VS2010.)

I've also made Internet Explorer my default web browser, since some of the forum posts mention this. My firewall is on, but I don't get any error messages relating to the firewall when I run the app. However, I wasn't sure whether there was a particular program I should add to my "allowed" list before running.

I ran the diagnostic tool: [URL] and I get the following output:

THE FOLLOWING SCRIPT will check to make sure that .NET Framework 3.5 is installed properly and will tell you what is not configured appropriately WINDOWS VERSION: 6.0.6002 POTENTIAL ERROR: REGISTRYDUMP: reg query "HKLMSOFTWAREMicrosoftNET Framework SetupNDPv2.0.50727" /v "SP"

HKEY_LOCAL_MACHINESOFTWAREMicrosoftNET Framework SetupNDPv2.0.50727 SP REG_DWORD 0x2

ERROR: NetFx2.0 SP1 is not installed POTENTIAL ERROR: REGISTRYDUMP: reg query "HKLMSOFTWAREMicrosoftNET Framework SetupNDPv3.0" /v "SP"

HKEY_LOCAL_MACHINESOFTWAREMicrosoftNET Framework SetupNDPv3.0 SP REG_DWORD 0x2

ERROR: Netfx3.0 SP1 is not installed

I presume there's been some problem with installation and setup. However, I'm not sure what exactly I need to re-install (if anything) to fix it.

View 11 Replies

Error In Creating Control Content Placeholder1 Visual Studio 2010 Design Mode

Oct 20, 2010

After I imported a VS 2008 web project to VS 2010, I can't view aspx pages that have master pages in design mode. The page design mode displays "error creating control - contentplacehoder1 object reference not set to an instance of an object." The project builds and runs fine though. I have only one master page that all other aspx pages reference and I don't have any nested master pages.

View 2 Replies

Visual Studio :: Visual Studio 2010 Missing Ajax And No Web.config When Creating New Project?

Sep 28, 2010

when i opened my Visual Studio 2010 i noticed that my ajax tab was missing from my toolbox and ajax control kit too.Then i noticed even that when i create new website, there is no web.config in it and it should be.WHAT IS GOIN ON???? :/

View 13 Replies

How To Print All Web Documents At A Time

Mar 31, 2010

My printing task is different from other web projects.

I will explain the task clearly.

I have 3 DIV Tags in a web page.

When I click Print All button in the web page, i have to store the contents of 3 DIV tags in rich text format file. Then i perform some codings for modifying the contents of 3 DIV Tags. Similarly i have to store the contents of them in same rich text file (appending to a file after page break) and so on.

View 3 Replies

ADO.NET :: How To Save Documents In Sqlserver Db

Dec 26, 2010

1)I want To save Documents in sqlserver db by usnig asp.net with c#

View 5 Replies

Large HTML Documents To PDF

Jun 3, 2010

I'm working with an asp.net application that produces large PDF documents from HTML. The content is perhaps complex (detailed grid type listings, css styled, running to 40+ pages) compared to typical usage. None of the libraries we've tried are performing adequately. Typically a 40 page document is taking upwards of a minute to render on a powerful multi-core machine.

We are able to decouple the generation from the web application and also pre-generate documents in some cases. Still, the frequency with which content changes requires a faster solution.

So, does anyone have experience of a PDF generation component that can output a content heavy 40 page document in seconds rather than minutes? Or are our expectations unrealistic?

NB: I'd rather not "out" the poorly performing components here as we are seeking support from vendors to make improvements. I've reviewed previously questions posted on StackOverflow and none appear to deal with this type or size of document.

View 1 Replies

C# - How To Display Big Documents To User

Dec 24, 2010

At my asp.net project I need display big documents to user. Beacuse document has a lot of text, I need use paging. Every page should have about 5000 symbols. I want split pages by logical tokens such as <br/> nbsp space.

View 4 Replies

Convert Any Documents To .pdf File?

Dec 2, 2010

In my project there is many documents and images in my site and i need to convert all files such as .doc,.bmp,.jpg,.txt in a folder to in adobe format(.pdf) and display in a browser as one complete .pdf file
The folder may contain images ,word docs and excel docs powerpoint and Pdfs so how this can be done in ASP with vb.net.

View 3 Replies

Can Save Documents On Server

May 13, 2010

I'm building an asp.net mvc application. I have to make posible automatic printing of some documents. I'm wondering where should I save this documents. If I save them to a folder in solution will they be accessible when application is deployed on server? I'm planning on build console application that will be triggered at particular time from windows service and load documents that are saved in that folder and print them one by one.

View 6 Replies

Adding Documents In Website?

Mar 4, 2011

my requirement is i want to upload word documents and pdf documents into my website with security (i mean encryption) and i want to retrieve documents by giving password the document should visible(or the document should visible for only some people how to do it)

View 4 Replies

On Click Merge Three Or Four Documents Into One .pdf?

Feb 28, 2011

I have a VB.net page that displays lots of data and gridviews. In one of the gridviews, are links to .pdfs that are associated with the data being displayed. As a "close-out" process when the user is done with the page, I need to figure out a way to take those .pdfs that are showing, and merge them into one .pdf. Is this possible in .NET?

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved