ITextSharp - Calling AddImageToPage() With The The Optional Pages Parameter Will Add The Image To All Pages Though?
Dec 20, 2011
I am using Stanav's PdfManipulation2.AddImageToPage(..., Pages) for iTextSharp library (v5.1.3) and was not able to add the image to specific pages: e.g. to add to only page 1 and 3 of a five pages PDF
Dim Pages() As Integer
Pages = New Integer() {1, 3}
PdfManipulation2.AddImageToPage(..., Pages)
Calling AddImageToPage() with the the optional Pages parameter will add the image to all pages though.
View 14 Replies
ADVERTISEMENT
Jan 17, 2010
My boss has given me an asp.net web application that was done by his former employee. Now my boss has no contact with that employee. He wants me to make some changes in that web application. I went through the application. There is no documentation present for that application . Its a huge application. It contains many directories. I think it was a team work. It has many asp pages, aspx pages, jsp pages, xml pages, css pages, etc... How to understand other person or team's website or web application that was written in asp or asp.net and vb or vb.net?
View 4 Replies
Mar 19, 2009
I have a form on a .NET webserver using aspx pages with the vb code-behind pages. The form collects the entered data and then emails it, that part works fine.Right after it gets emailed, this code checks to see if the email was sent or not and then updates the landing page accordingly. I used to use just an IF THEN statement, but now that doesn't work in these new .NET pages. Here's the end of the code that I am having difficulties with:
[Code]...
View 10 Replies
Jun 19, 2009
I have heard of setting server specs to have HTML pages parsed as PHP pages by changing the .htaccess or httpd.conf files. Is there a similar solution to have HTML pages parsed as ASPX pages?
A website I am working on does not want their PageRank to lower since their HTML pages are already indexed and used on other websites but wants to use some dynamic features of aspx pages (like include the navigation file so that changes to the nav will only have to be done in that one file).
View 2 Replies
Nov 4, 2011
I have a Custom.ascx file that is used on a number of pages. Custom.ascx contains a couple of controls and a button called cmdCustomPageButton. When the user click on cmdCustomPageButton, cmdCustomPageButton executes a Protected Sub that gets some data from a database.
Page1.aspx that is using Custom.ascx has its own set of controls and procedures that it executes. It contains a button called cmdPage1Button and a procedure called RetriveData that is being called by other procedures as well within Page1.aspx. When cmdPage1Button is clicked it calls RetriveData. RetriveData is only applicable to Page1.aspx. Page2.aspx and Page3.aspx both has a procedure similar to RetriveData but is only relevant to its own page.
Try to explain using code:
Custom.ascx
Public Class Custom
Protected Sub cmdCustomPageButton_Click(Byval sender as Object, ByVal e as EventArgs) Handels
[CODE]..............
The question. How do I call the different RetriveData procedure form the relevant pages being it Page1, Page2 or Page3 when cmdCustomPageButton is clicked ?
View 2 Replies
Jun 8, 2009
Can someone tell me how to get the name of the child page being called in a Master page scenario. For example, if I have the following masterpage:
<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
[Code]...
And I create a page called Test.aspx which inherits this masterpage, how can I, from the masterpage, know that Test.aspx has been requested (since this masterpage can be inherited by more then 1 aspx page)?
View 5 Replies
Dec 7, 2010
I have 2 master pages with same (href) links on top of the page. Now these links load on the same master page when clicked on (by requirement). The problem is both these master pages have same links, so basically the same page shall be loaded in the master page.
Now what i need is when the person is on Master Page 1 and clicks on the link it should load in the same page. Whereas if the user is on Master Page 2 and clicks on the same link, i should be able to change the master page from 1 to 2 and load that in Master Page 2.
View 2 Replies
Jul 14, 2011
I am using the asp.net DataPager and noticed that search engines wouldn't be able to crawl the links created, so I added a querystring parameter and now see that it could crawl the links.The problem I now have is that it will now eventially end up with multiple urls for the same page.Is it possible to stop search engines indexing all pages with the query string parameter such as:?pg=so the search engine will follow these links but not index:
View 1 Replies
Jul 13, 2011
i have this program which records the every printing made on a local computer.I am to record the number of pages of the document to be printed and the number of printed pages. i have this code but i don't know the number of pages and number printed pages always return 0 [Code].
View 1 Replies
Apr 7, 2011
I have a program developed in VB.NET (2008) which consists of a MDI form and several child forms. It worked like a normal mdi application whereby mdi form acted like a container for child forms and things worked out okay. Code like Me.Mdichildren or Me.ActiveMdiChild etc could be used to get list of child forms etc.
Now what happened is I needed to implement a tabbed system. There will be multiple tabs and forms would be in those tabs. So I added a Tab control in mdi form and now new forms are added to selected tab page. This way muliple tab pages can host forms and there is no need to see all childforms at once.But a problem has come up. I do say ChildForm.MdiParent = Me (as before) but then I say TabPage1.Controls.Add(ChildForm). Doing so functions like list of mdi children or me.activemdichild or auto arrange options like Cascade,Tile Horizontal, Vertical etc are not working.
View 7 Replies
Mar 31, 2010
how to attach php web pages to joomla.Actualy i designed web pages with home page by using Dreamviewr...now im not able to attach those web pages to joomla.
View 2 Replies
May 30, 2009
I want to know what the best practice is for passing values (sometimes multiple values) between two asp.net pages
In the past I have used query strings to pass a value in asp like this:
href='<%# Eval("TestID","../Net/TestPage.aspx?TestID={0}") %>'><%#Eval("Title")%> </a>
I assume you can do this in the code behind but I do not know the best way.
I also assume it is possible to pass more than one value.
View 3 Replies
Dec 17, 2010
Is it possible to run VB .NET and C# in different pages on a .NET web app?
Picking up a legacy VB .NET project but need to add pages to it, is it possible to write these in C# or can you only have one language per project?
View 4 Replies
Mar 14, 2012
How can i create a optional parameter in C# as we create in VB.Net
Public Sub Demo(ByVal a As Integer,Optional ByVal b as integer=3)
End Sub
I want to declare this in C#
[code].....
View 2 Replies
Sep 25, 2009
Is it possible to have an optional parameter of the type list?Ex.
Private Function TestFunction(Optional ByRef MyList As List(Of Double))
The real problem is giving the list a default value. When dimming a new list, you can use the code below to give it a starting value:
Dim MyList As New List(Of Double)(New Double() {1, 2, 3, 4, 5})
But even after trying many variations of the above code, I cannot get it to work as an optional parameter.
View 16 Replies
Nov 1, 2010
Is there a way to pass an optional parameter to a webservice, instead of having to overload the method?If the webservice user is accessing the webservice directly, I want to do ActionA, if the user is accessing the webservice through my web interface, I want to do ActionA + ActionB.
View 1 Replies
Nov 3, 2010
how can use color as an optional parameter in a sub/function?This doesn't work.
Code:
Public Sub WriteLog(ByVal sText As String, Optional ByVal lColor As Color = Color.Blue)
'Code
End Sub
View 5 Replies
May 27, 2010
I have come across something confusing or potentially a bug in Visual Studio 2010 when defining an interface in my VB application: When defining an interface method with a default parameter of type Double, using the Double.NaN constant as the default value causes the code editor/intellisense/precompiler some issues.The following code underlines "INaNTest" and "INaNTest.DoSomething" claiming that 'DoSomething' cannot implement 'DoSomething' because there is no matching sub on interface 'INaNTest':
[code]...
where now "NaN" has been divorced from the "Double." prefix and underlined ('NaN' is not declared. It may be inaccessible due to its protection level.) The code editor has inserted invalid code again.Is there a correct solution to using Double.NaN as the default value for a method as defined on an interface, in VB.net, or is there a fundamental reason why this is impossible?
View 2 Replies
Nov 3, 2010
I am interacting with VB code on a different tier, using a client-side c# program. The VB function signature looks like this:
Public Sub toggleExclusion( _
ByVal mouse As Double, _
ByVal study As Integer, _
[Code]....
I get an error saying no overloaded method of toggleExclusion takes 2 arguments?
View 3 Replies
Aug 4, 2011
I drawn graphics in picture box that its content is report that i create by myself. then i want to print it.how I print it for more than one pages?
View 1 Replies
Sep 21, 2011
I'm developing a program in vb.net, and I want to add in some help pages to the program, without using web-based help, so more like when you hit F1 in the Microsoft Office programs. Is there a straightforward way of doing this, other than just making it via lots of forms?
View 1 Replies
Mar 30, 2011
I'm doing some internationalization for first time, and I have an issue: I would like to know if it is possible to internationalize from a master page. I added a dropdown list with some languages and I'm using a session , so when I change a language, the new Culture is detected and it changes, the page is reloaded and the contents (I'm using resources) translated. But it's not working. Here I attach some code:
[Code]....
View 1 Replies
Jul 1, 2009
I have a series of product pages and all I'd like to do is store the last 5 products viewed in a cookie so it can be displayed as a site-history. The problem I have isn't adding the five initial items to the cookie, its when they view 6, 7 or 10 items.Currently I have this flawed logic (i have replaced the cookie name (xxx) for brevity);
Dim i As Integer = 0
Dim productcount As Integer = 0
If HttpContext.Current.Request.Cookies("xxx") Is Nothing Then
Dim gingernuts As New HttpCookie("xxx")
[code]....
View 3 Replies
Sep 22, 2010
i am using vb2008 and trying to create an auto login and reboot for a secure console server "Lantronix SCS100", I can get through the first page with the code below but on the next page i need to check a checkbox "<input type="checkbox" name=OidC2.11>Server</td></tr>", then click event the "<submit>" button to reboot the server.
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code]....
View 1 Replies
Jan 7, 2010
I am trying to find out if anybody know if tab pages on a form can be programmed to be moved by the user. For example I have 3 tab pages on a form and I was wondering if the user wanted to move the first tab page to the last and so forth, is the way to allow the user to do this?
View 9 Replies
Jul 14, 2010
I'm able to change the language for my pages, however if I select french and I am on a current page and if I try to load another page, that page won't be in french. How can I set it so it is consistent throught? [code]
View 1 Replies
Feb 5, 2010
Im just imagining what the things I can do to make a pdf file out of my localhost files(.php).I tried using the online conversion tools but it didnt work because they're not on the web definitely.Can you recommend me of some ways on how I can achieve my goal of converting an html table into pdf and print it using the print function in vb.net?I'm using vb.net as my interface for the database program I am making(mysql) utilizing php as the code to manipulate database. I've made use of vb.nets web browser to achieve this. Because I'm still a moron when it comes to php.
View 6 Replies
May 10, 2011
I have a bunch of pdf files in a folder and would like to know the best way to either via a free PDF counter software or programmatically how to count the number of pages for each pdf and put the result in either a excel or access table. I already have the table populated with the pdf filenames. I googled "PDF page counter" and there were a number of hits, however I'm not sure how trust worthy these tools are. So, what some names of trust worthy pdf page counting tools/software and alternatively, are there any good VB.NET code samples that attempt this?
View 2 Replies
Jan 23, 2010
i have 3 methods:
1. form input method
2. scrape results method
3. scrape google method
all 3 methods need to be run on different pages when the document is completed the basic logic is like this go to url wait for page to complete input a form wait for page to complete scrape the page for keywords for each keyword go to [URL] wait for page to complete scrape some other info nextso the 3 actions need to be called on the document ready state of the webbrowser, but i can't just have it as a sub because i dont want all 3 to run at the same time right?
View 5 Replies
Mar 15, 2012
My current project shows a single page tabcontrol with a datagridview. I read names from a mysql table, and create an additional tab page for each person (there's only ever going to be half a dozen or so, so it should be manageable).[code]...
View 2 Replies