Shark_'s Q&A profile
Visual C# Needing to Join/Append two Word documents
Hi, I am automating the creation, printing and saving of Word documents via a standalone application. However I now want to (i) Open a Word document from a template (ii) Dynamically add text to this document (iii) Append the pages of another previously saved Word document to the bottom of the document created in (i). (iv) Ensure the appended document starts on a new page. I have found on news group a suggestion that I can do: //--- Instantiate WordApplication WordApplication app = new WordApplication(); //--- Open the documents Document doc1 = app.Open("C:\BaseDoc.doc"); Document doc2 = app.Open("C:\AnotherDoc.doc"); //--INSERT PAGE BREAK BEFORE ADDING THE NEXT DOC (WITHOUT ADDING AN EXTRA BLANK ...Show All
Visual C# Make end of statement ";" optional?
I think microsoft should make the end of line statement, (i.e. the ";") optional. If you program VB.net like I do and is inevitably forced to write/read C# code, having to write the ; after each statement is annoying. I know C/C++/java etc all have it but in an enviroment like Visual studio where the IDE makes life so much easier the end of line statement is unnecessary. Who agrees with me I know that people with a C like language background would most likely not agree but I don't mind the underscore for spanning multiple lines of code in VB, though it too can be annoy sometimes it does make code more clear (like oh, this line of code spans 3 rows). But remember I'm talking about people that comes from VB, not from C/C++ et ...Show All
Visual Studio Problem moving reports to production server
Hi, Does anyone know what would cause the following error, I've installed these reports on serveral servers with no issues. An unexpected error occurred while compiling expressions. Native compiler return value: ‘[BC2001] file 'C:\WINDOWS\TEMP\-siahlen.0.vb' could not be found’. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred while compiling expressions. Native compiler return value: ‘[BC2001] file 'C:\WINDOWS\TEMP\-siahlen.0.vb' could not be found’. Source ...Show All
Windows Live Developer Forums Find Location UK Postcode Error
Hi, I have been using the map.FindLocation function for quite a while now, just giving it a UK postcode everytime it always gave the correct results. Now it doesnt work at all and cannot find postcodes Is there any reason for this and will it be working again soon Thanks, James Hi Derek, It seemed to be a mixture of the service not working and a caching problem. It seems to be all operating okay now. Thanks, James. ...Show All
Visual Studio Team System Add Existing Item Bug
Using Solution Explorer, I right click on Stored Procedures, and hit "Add existing item". If I try to import more than about 10 objects at once I have repeatedly found the following bug. Some scripts end up in the wrong filenames! i.e. the code for sprocA may end up saved under the filename of sprocB, and sprocB is nowhere to be found. Several people on my team have experienced this problem. I now have to upload work in very small batches. Note that I am working in a very large project, around 3,500 objects. I'm trying to repro your issue, and I'm having trouble doing so. I have some questions: 1. Is there a particular reason that you are adding the files across the network as opposed to copying them ...Show All
Software Development for Windows Vista Expanded Memory in Vista for DOS Applications
A DOS application which requires expanded memory (EMS) is required to be run on Vista. In earlier releases the expanded memory could be set to auto using the command.com->properties->memory tab. Vista does not allow to change this settings due to security reasons. Is there a way of increasing the expanded memory to allow a huge DOS application to run in the Vista environment Matthew, Your advice on how to change the properties in command.com was good, but doesn't solve the problem. My company has a huge Quattro Pro spreadsheet model with numerous macros that we use for simulating combined engine and heat exchanger flow, heat transfer, and thermodynamics. Updating it to Excel would be out of the qu ...Show All
Windows Forms Values dont change but.....
I have properites set up in my classes like this private bool _IsDirty = false; public int SomeProperty { get { return _SomeProperty set { if(_SomeProperty != value) { _SomeProperty = value _IsDirty = true // which mean the value has changed } } } now i have this in my form closing event because if the user changes information but tries to close the form before he clicks the save button it goes here....When the form loads it shows all the information pertaining to an object...the object properties are all binded to controls on the form so thats where the _IsDirty checks to see which ones have changed.... LoadFormToObject();// this is the binding of contro ...Show All
Windows Live Developer Forums This space is temporarily unavailable. Please try again later.
I would like to change my permission to public, but it is unavailable for 3 days~~ =.=,I can setting everythings,spaces,blog etc except the 'permissions' sent email to Microsoft support team but no reply This is not the appropriate forum for questions about problems with the MSN Spaces website. This forum is meant for discussion about the MetaWeblog API provided by MSN Spaces. ...Show All
SQL Server Schema Owner and Name Resolution
I am merging two databases and created two different schemas to contain the objects in the new DB. I would like the objects in both schemas to be visible to one user but I can't figure out how to make this happen. I thought I could just set the Owner of the schemas to the same User but that didn't work. At the moment, the User default schema is set to dbo. I would like the default to be both schemas but this isn't an option. Is there any way to have multiple schema objects visible to a single user Thanks! Hi, the schemas are visible to the user if he has access to the objects within. You will have to (and should preferable do this all the time ) use the schema prefix before the object names. the resolutio ...Show All
Windows Live Developer Forums MS VB Run Time Error 429
Hello List, I hope you can assist me with a problem I created. I have a problem, I think, due to having an ADCenter.dll assembly out of synch with what is found in the system registry. This is based on the help text for the ActiveX component error, my application is throwing. I had to recreate this .dll and .tlb in order to modify the password hardcoded in the below routine. Private Sub SetAuthCredentials(ByRef pAPI As AdCenterAPI) We integrate the XML response from the web service into a Excel spreadsheet, and I believe that this the problem. The VB project contains a reference to the ADCenter, and is included into our Excel macros. The error is found within the following code block Public Sub MSNRequestReport(ByVal AccountID As Long, ...Show All
Windows Live Developer Forums Convert Local Live Polygon coordinate to Lat/Long
First off, MS release of Local.Live is great in the sense that users can now zoom in, highlight an area, and then share that highlighted area via the polygon feature of scratch pad. My question: Is there a way to go from local.live's coded polygon coordinates to lat/long We'd really like to collect polygons drawn on local.live and re-use them in a VE implementation. However, the polygon points are encoded and VE wants lat/long points. Ultimately we could try to re-build WLL, but trying to build the scratch pad looks tricky. For example, given this URL: http://local.live.com/ v=2&sp=Polygon.pfy1bp5c6008_pfy19f5c63q3_pfxt1f5c63t0_pfxsrx5c5zst_pfxty85c5z46_pfy0j75c5z2t_pfy19f5c5zkz_pfy1bp5c6035_pfy1bp5c6008_Test%20field____%2 ...Show All
Visual FoxPro No Connection Sting handle
I cannot figure out why I cannot get a valid handle for a connection I am able to establish in Command Window as well as in a method. The question mark statement consistently returns -1 which means: no handle (error). OPEN DATABASE ("D:\vfp_Projects\Data\d_data\histdata.dbc") CREATE CONNECTION Myconn DATASOURCE "MyFoxSQLNT" USERID "Administrator" PASSWORD "" IF EMPTY (DBGETPROP ("Myconn","CONNECTION","ConnectString")) myUserID = 'Administrator' myPassword = "" STORE SQLSTRINGCONNECT ('dsn=MyFoxSQLNT;uid=myUserID;pwd=myPassword') TO gnConnHandle gnConnhandle ENDIF The connection is being established because otherwise I would have gotten an error at DB ...Show All
SQL Server Error: Failed to load script task
I have an email script that keeps failing to load when I execute my script task. I have the precompileintobinarycode set to true. Anyone know why it won't load the script I would use the Send Mail task but it can't find my smtp connection or something. Thanks, Mike This error can spontaneously appear for no apparent reason. It seems that if you have the PreCompile property set to True, but you have precompiled script in the package, which is what spontaneously disappears, this error will be raised. To resolve this issue: a. Open the package b. Open the Script Task editor c. Click Design Script d. Close the VSA Editor e. Close the Script Task Editor f. Save ...Show All
Game Technologies: DirectX, XNA, XACT, etc. VMX and SIMD support
What kinds of mechanisms will be available to support the use of the VMX units on the 360 and SIMD in general Will the compiler be auto vectorising or will a number of pre -optimised libraries be supplied Have you guys looked in to the Accelerator framework at all (done by MSR – there was a video on Channel 9 recently). It's a pretty generalized solution to SIMD stuff written entirely in managed code, and I doubt it would be too hard to extend it to use XNA in addition to its current CPU and GPU (via MDX1.1) back ends. You’d get support on Windows and the 360. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. So how does this (non)commercial business work?
Can anyone please enlighten me on how this all will work. How I see it, there are two points for having XNA. 1. To let gamers make Xbox 360 non-commercial games freely to play on their own consoles. 2. To let gamers make Xbox 360 commercial games that they may transfer over live. But can we sell these games & start a business And where do our limits end & then begin again with Pro I have been trying to start a video game business for years now, working with teams and software, and Microsoft XNA can be a new pedestal for my team and business. Thanks in advance. Right now with the announcement that has been made XNA Framework isn't really designed for you to run a business ...Show All
