I am trying to display a PDF in an Adobe PDF reader COM component in VB.NET.
All i do is:
AxAcroPDF1.LoadFile("file path here")
But for some reason it's not displaying the PDF.
Can someone please advise me on what am I doing wrong here?
...
I have a DTO that I am using to process transactions. To ensure that it is processing in the correct order, I am using iComparable and sorting the List(of T) of the DTO. That works great. However I just got another requirement that the customer wants the output in a different order... is there a way to allow me to have two different sort...
Hi,
I have two tables TimeSheet and TimeRecord. TimeRecord has Foreign Key TimeSheetId of TimeSheet. The following time-logs are from TimeRecord,
TimeSheet sample data:
TimeSheetId, StudentId
187 , 10
196 , 11
195 , 12
TimeRecord sample data:
TimeRecordId, TimeSheetId, TimeIn, TimeOut
1 , 187 , 8/17/2010 1:06:55 PM , ...
Is it possible to enable XML intellisense in a C# class as it is in the VB editor? Similar to this article's prescriptions:
http://msdn.microsoft.com/en-us/library/bb531325.aspx
Would like to not have to use xsd.exe to generate a class from the XML.
...
I am creating a custom control and I need to handle some logic AFTER LoadViewState (which may or may not be called depending on if the control was visible or not) and BEFORE LoadPostBack (which may or may not be called depending on if the control was visible or not).
Is there anything in the control lifecycle that will accommodate this...
Hello,
I am trying to download a file from an ftp site only if it's newer than my local file. Can anyone help how to incorporate to check for the file properties? right now it downloads the file, but just need if newer. The purpose is to update a .mdb with the contents of the file, so don't want to download file and run an update everyt...
Is there a way to catch all SQL exceptions in a project? I have several gridviews and multiple sqldatasources and most of the errors are going to occur when a user enters something incorrectly or in the wrong column. So how do I stop the Server Error in /Project page from showing up?
...
Hi,
Say I convert some second into the TimeSpan object like this.
Dim sec= 1254234568
Dim t As TimeSpan = TimeSpan.FromSeconds(sec)
How to format TimeSpan object into a format like the following:
>105hr 56mn 47sec
Is there any built-in function? or I need to write a custom function.
Thanks.
...
I'm trying to use Visual Basic to enlarge or magnify a flash game. (Just trying to make it take up more of the screen without having to do something like change the computer's resolution.)
The only code I have is the one that loads the game from the website:
Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System....
Hi,
I want to create one help file for my whole application. and once user press help button next to any input control then appropriate help topic from file should get display. how can i create this functionality in vb.net?
...
I am trying to trying to setup an updatepanel to update every X seconds, the problem is I don't want the control to actually refresh unless there is new data. So I currently have a child updatepanel in a parent UpdatePanel, the child updatepanel gets refreshed by a timer. But I can't seem to find a way to trigger the parent panel to up...
In Flash 10 there are methods that require that they are triggered from user-initiated actions like button click, keyboard up/down keys, etc.
Is it possible to implement this behaviour in .NET? For example, if we have this subroutine:
void SomeMethod() {
// Here some stuff
}
how to check inside it whether the method was called fro...
I want to group textframes in my InDesign CS3 vb.net script. It worked for InDesign 2.0 but it does not work with InDesign CS3. Here is my code:
Dim myDoc As InDesign.Document = Nothing
Dim myGroup As InDesign.Group = Nothing
Dim myObjectList(2)
myObjectList.SetValue(myOuterTextFrame, 0)
myObjectList.SetValue(myInnerTextFrame, 1)
myObj...
Do vb.net static variables work on an IIS web garden?
...
private void MoveThumb( Thumb thumb, Point position )
{
var element = AdornedElement as FrameworkElement;
position = new Point( position.X * element.ActualWidth, position.Y * element.ActualHeight );
**var halfSize = (Vector)thumb.DesiredSize / 2;**
thumb.Arrange( new Rect( position - halfSize, position + halfSize ) );
}
...
For one of my projects I need to make PostScript files available for viewing online, My goal is to convert these PostScript files to HTML. I'd like to do it all in VB.NET code and in-memory stream and without using command-line programs.
I think a perfect solution might be to write the PostScript to a stream, and simultaneously read th...
I have an application that we wrote here at work that uses the SharpSVN wrapper for SVN. It has served us well of the past few years. However, we have started bringing in 64-bit systems and our application cannot seem to access the SharpSVN dll on these systems.
I have downloaded the 64-bit version of the SharpSVN dll and I am wonderin...
0 down vote favorite
For one of my project I need to make an PS files available for viewing online(Convert PS to HTML). I like to do it all in VB.Net code and in memory stream and without using command-line programs.
I think a perfect solution might be to write the Postscript to a stream, and simultaneously read the output stream to ...
So I'm adding a tab panel to a child window. A lot of our controls here are user defined but this looks like an ExtJS issue. When I add a tab panel, and then try and add controls and stuff to that panel, everything is cut off on that panel.
Here is the code I am using:
Using ViewDetailsWin As New Pages.ChildWindow
With ViewDeta...
Hi,
I'd like to expose some functionality via a WCF service. I can configure WCF to instantiate a class per-request but am unsure how I can get a reference to a communal singleton -
If I were to have some functionality to store a list of calls to a method (call it LogMethod) via WCF in memory and return that list when the GetLogs meth...