Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Reveille

@Reveille
About
Posts
18
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How do you save a picture from a web site?
    R Reveille

    I tried using copyfile: My.Computer.FileSystem.CopyFile(TempPath & filename, StartPath & "\Saved imgs") but I dont think your allowed to copy from the Temporary Internet Files folder. Is there any way to save an image from a web page? Ive thought of three other options but havent been able to get any to work. 1. right click on the image from a WebBrowser to activate the menu? (but images are not htmlElements so you cant use htmlelement.InvokeMember("Click")) 2.Opening the image from a different container/application and saving it to a different directory. (pictureboxes arent allow to access the temporary internet files folder either) 3.Im able to get the URL to the image, can I use this to save the image? Any ideas?

    Visual Basic docker question

  • Tut / Example of code generating webpage requests needed
    R Reveille

    Im just starting to build a .NET program that sends out a request for a webpage ( html via tcp ). Ive got alot of research to do and feel like a fish-out-of-water. If you have an example ( doesnt mater which language ) of anything related, or some tips I greatly appreciate it! Thanks

    Web Development csharp html tutorial

  • Tut / Example of code generating webpage requests
    R Reveille

    Im just starting to build a .NET program that sends out a request for a webpage ( html via tcp). Ive got alot of research to do and feel like a fish-out-of-water. If you have an example ( doesnt mater which language ) of anything related, or some tips I greatly appreciate it! Thanks

    Visual Studio csharp html tutorial

  • "Logon Failed. Please Try Again." [modified]
    R Reveille

    I appreciate the attempt

    Database database csharp visual-studio help tutorial

  • "Logon Failed. Please Try Again." [modified]
    R Reveille

    This is a simple test program I made becuase I was having the same issue with a project Im working on. I decided to make this test program to rule out some causes of this connection failure. The only thing this report does is display the two columns from my Access 07 databse.

    Database database csharp visual-studio help tutorial

  • "Logon Failed. Please Try Again." [modified]
    R Reveille

    Im trying to load a Crystal Report I've made in Visual Studio to a Crystal Report Viewer on my form. I used the "database expert" to add the connection (ODBC RDO) to my Access 2007 database. The database has no password on it. The Visual Studio field explorer detects all the fields correctly from my command ( SELECT * FROM Table1; ) so I know it can connect to the databse. The problem is when I run the program I get prompted for the Logon ID and Password with "Logon Failed. Please Try Again." every time I type something in (or dont type anything in). Again there is no password on this DB. There is no reason this prompt to appear since there is no need for logon info to make this connection. All of my code VB (this is a test project) Imports CrystalDecisions.CrystalReports.Engine Form Load: Dim crpt As New ReportDocument() Dim rPath As String = "C:\CrystalReport1.rpt" crpt.Load(rPath) CrystalReportViewer1.ReportSource = crpt Does anyone know how to prevent the Login ID and password prompt from being displayed for the connection? All suggerstions are greatly appreciated -- modified at 18:07 Thursday 29th November, 2007

    Database database csharp visual-studio help tutorial

  • Crystal Report "Logon Failed. Please Try Again."
    R Reveille

    I thought that was handled by the ODBC RDO. As I said it can connect to the DB when Im in the Crystal Report Design window but when I run the program it prompts for a Logon ID and Pass but there is no need for this info to make a connection. I read that setting "Persist Security Info" on the connection is supose to fix this but I'm unsure how to apply this setting.

    Visual Basic database csharp visual-studio help

  • Problems with Designer Generated Code in VB 2005
    R Reveille

    You said that you pasted that code into your project. Make sure that tabpgSettings's click event is attached to that sub.(form design window>tabpgSettings's properites>Events>) Make sure you didnt delete "End Class" or "Public Class Form1" Undo the changes you made to: "Friend WithEvents DataSet1 As LessonProgram.DataSet1 Friend WithEvents Tbl_hoursTableAdapter As LessonProgram.DataSet1TableAdapters.tbl_hoursTableAdapter Me.DataSet1 = New LessonProgram.DataSet1 Me.Tbl_hoursTableAdapter = New LessonProgram.DataSet1TableAdapters.tbl_hoursTableAdapter" once you fix the first error this one will go away as well. If that doesnt work I would press undo (Ctrl+z) about 300 times to find out what you deleted. Its not the best advice but it will work.

    Visual Basic question database design xml json

  • Crystal Report "Logon Failed. Please Try Again."
    R Reveille

    Im trying to load a Crystal Report I've made in Visual Studio to a Crystal Report Viewer on my form. I used the "database expert" to add the connection (ODBC RDO) to my Access 2007 database. The database has no password on it. The Visual Studio field explorer detects all the fields correctly from my command ( SELECT * FROM Table1; ) so I know it can connect to the databse. The problem is when I run the program I get prompted for the Logon ID and Password and every time I get "Logon Failed. Please Try Again." Again there is no password on this DB. All of my code (this is a test project) Imports CrystalDecisions.CrystalReports.Engine Form Load: Dim crpt As New ReportDocument() Dim rPath As String = "C:\CrystalReport1.rpt" crpt.Load(rPath) CrystalReportViewer1.ReportSource = crpt

    Visual Basic database csharp visual-studio help

  • easy ADO error when opening catalog 'reference not set'
    R Reveille

    Dim DBPath As String Dim ADOXcat As New ADOX.Catalog Dim sCreateString As String DBPath = System.Windows.Forms.Application.StartupPath() sCreateString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & DBPath & "\New07ADB.accdb;Jet OLEDB:Database Password=admin;" 'for Access 2007 Try 'Create DB ADOXcat.Create(sCreateString) Catch ex As System.Runtime.InteropServices.COMException 'create DB failed MsgBox(ex.Message(), MsgBoxStyle.Critical, "Failed to create database") Finally ADOXcat = Nothing End Try Dim ADOXtable As New ADOX.Table(), _ ADOXindex As New ADOX.Index(), _ Con As New ADODB.Connection() Try 'connect and insert tables Con.Open("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & DBPath & "\New07ADB.accdb;Jet OLEDB:Database Password=admin;") 'for 2007 MsgBox(Con.Errors().Count.ToString()) 'Displays 0 Errors MsgBox(Con.State.ToString()) 'Displays 1 representing an open connection 'Open the Catalog ADOXcat.ActiveConnection = Con 'Object reference not set to an instance of an object. I know this error usally gets generated when using a null object but if I receive no errors from opening the connection then 'Con' shouldnt be null right? Any help on this is greatly appreshated.

    Visual Basic database help question

  • How to go about sending/receiving webpage requests
    R Reveille

    I want to make a program that queries google and wikipedia with a user defined string and displays their results. To do this I'll need to search through the received xhtml source. How do I go about this? Do I need to set up an IIS or ATL server? Does anyone have tips, such as headers/methods I'll need to use? Any advice is greatly appreciated!

    C / C++ / MFC question c++ sysadmin windows-admin tutorial

  • "What is this?"
    R Reveille

    "They added voice recognition. You're supposed to scream at it. But I've heard it's hard of hearing so you have to scream really really loud." *Shrieks with excitement* (Thats right, a shriek, kinda like the noise that Stimpy made when he saw a fresh bag of cat litter) Microsoft now supports screaming!! My friends, the days of troubleshooting are a thing of the past.

    The Lounge question help

  • OracleDataReader undeclared identifier error
    R Reveille

    Thanks Alot Josh!! :)

    Managed C++/CLI database oracle data-structures debugging help

  • OracleDataReader undeclared identifier error
    R Reveille

    I have a function that queries an Oracle DB. For some reason I receive two errors on each statement in my __finally block. Is there something wrong with my declarations? Errors: error C2065: 'myReader' : undeclared identifier error C2227: left of '->Close' must point to class/struct/union/generic type error C2065: 'myOracleConnection' : undeclared identifier error C2227: left of '->Close' must point to class/struct/union/generic type My code that generates the errors: cPacket ^queryPacket(String ^cmd, String ^con) { //test if the passed arguments are empty if(con->Equals("")) { MessageBox::Show("Oracle Connection String Empty o.O","Error in Form1::queryPacket"); } if(cmd->Equals("")) { MessageBox::Show("Oracle Command String Empty o.O","Error in Form1::queryPacket"); } try { OracleConnection ^myOracleConnection = gcnew OracleConnection(con); OracleCommand ^myOracleCommand = gcnew OracleCommand(cmd, myOracleConnection); myOracleConnection->Open(); OracleDataReader ^myReader = myOracleCommand->ExecuteReader(CommandBehavior::CloseConnection); myReader->Close();//I put this in here to debug. The statement doesnt throw any errors and inteliSense picks up the myReader object so I'm assuming that it works fine. }//end try catch (Exception ^ex) { MessageBox::Show(ex->Message,"Exception in class PaCCaP's function queryPacket", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); }//end catch __finally { myReader->Close(); //this is where the first 2 errors are generated myOracleConnection->Close(); //and the second 2 }//end finally I'm hoping this is something small that I've overlooked, possibly in my declarations? Also, It It's not too much to ask, How do you create a 1-dimensional array of objects in the 2005 syntax (I just switched over from 2003 and trackable ^ pointers are a bit fuzzy to me. All suggestions are appreciated. Thanks!

    Managed C++/CLI database oracle data-structures debugging help

  • OracleDataReader undeclared identifier error
    R Reveille

    I have a function that queries an Oracle DB. It accepts two argumnets, a Command string and a Connection String. For some reason I receive two errors on each statement in my __finally block. Is there something wrong with my declarations? Errors: error C2065: 'myReader' : undeclared identifier error C2227: left of '->Close' must point to class/struct/union/generic type error C2065: 'myOracleConnection' : undeclared identifier error C2227: left of '->Close' must point to class/struct/union/generic type My code that generates the errors: cPacket ^queryPacket(String ^cmd, String ^con) { //test if the passed arguments are empty if(con->Equals("")) { MessageBox::Show("Oracle Connection String Empty o.O","Error in Form1::queryPacket"); } if(cmd->Equals("")) { MessageBox::Show("Oracle Command String Empty o.O","Error in Form1::queryPacket"); } try { OracleConnection ^myOracleConnection = gcnew OracleConnection(con); OracleCommand ^myOracleCommand = gcnew OracleCommand(cmd, myOracleConnection); myOracleConnection->Open(); OracleDataReader ^myReader = myOracleCommand->ExecuteReader(CommandBehavior::CloseConnection); myReader->Close();//I put this in here to debug. The statement doesnt throw any errors and inteliSense picks up the myReader object so I'm assuming that it works fine. }//end try catch (Exception ^ex) { MessageBox::Show(ex->Message,"Exception in class PaCCaP's function queryPacket", MessageBoxButtons::OK, MessageBoxIcon::Exclamation); }//end catch __finally { myReader->Close(); //this is where the first 2 errors are generated myOracleConnection->Close(); //and the second 2 }//end finally I'm hoping this is something small that I've overlooked, possibly in my declarations? Also, It It's not too much to ask, How do you create a 1-dimensional array of objects in the 2005 syntax (I just switched over from 2003 and trackable ^ pointers are a bit fuzzy to me. All suggestions are welcomed. Thanks!

    C / C++ / MFC database oracle data-structures debugging help

  • Error when executing a simple Oracle Command
    R Reveille

    I rebooted my comp this morning and ran it without the semicolon again and it worked :-D Thanks for the replys!

    C / C++ / MFC database oracle help question

  • Error when executing a simple Oracle Command
    R Reveille

    :( nope, Ive tried it without the semicolon already.

    C / C++ / MFC database oracle help question

  • Error when executing a simple Oracle Command
    R Reveille

    I'm creating a program that stores packets into an oracle DB. When I try to get a count of how many entries are in my 'packet' table I receive an "ORA-00911: invalid character" exception. Oracle describes this error: ORA-00911: invalid character Cause: identifiers may not start with any ASCII character other than letters and numbers. $#_ are also allowed after the first character. Identifiers enclosed by doublequotes may contain any character other than a doublequote. Alternative quotes (q'#...#') cannot use spaces, tabs, or carriage returns as delimiters. For all other contexts, consult the SQL Language Reference Manual. And my code that causes the error.... { String *cmdString = S"SELECT COUNT(*) AS rowcount FROM packet;"; OleDb::OleDbCommand *oracleCommand1 = new OleDb::OleDbCommand(); oracleCommand1->Connection = oracleConnection; oracleCommand1->CommandText = cmdString; oracleConnection->Open(); gPacketCount = Convert::ToInt64(oracleCommand1->ExecuteScalar()); } Is the asterisk in 'COUNT(*)' causing my error? If so, is there another way to get a row count?

    C / C++ / MFC database oracle help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups