Trying to extract data from mdb file upon selecting the file in a listbox - vb.net-2010

I am generating a new project from an existing template every time i click on create and renaming the same as a new project name (an mdb file)in the same directory. The details mentioned in to the right namely location, engineer, contractor etc are stored in this mdb file at this instance.- so far i am successful....
Now that i have the list of projects listed in my list box I would like to select any one and I wish to see the details for the same to my right.
I've posted a link having a .bmp image of the form. Help is highly appreciated.

Related

How can I see the vb code of an UI made Publisher template

I'm using a publisher document as a template to create fitting instructions for our products. Everytime we launch a new product an individual instruction is produced which involves a lot of copy and pasting and then translating the master document into 4 different languages.
Although being individual to the product, there are only 5 sets of instructions with their own wordings (which doesn't change) and pics, the layout of the document is the same across all 5.
I was thinking to create a user form to enter the product name, choose the required set, insert photos and save the new doc as .pub and .pdf (only in English, I want to get this running first)
I tried around with Access and mail merge but it doesn't work the way I need it to. So I reverted to using VB in publisher where I've been basically able to return the text boxes, however, I can't see a way to display the code of the entire document with all text boxes and their formatting. Is this possible or would I have to code the entire document from scratch?
Thanks for reading and your input.

change of location of the database dynamically in app running

Try to make my app read the ms-access database from shortcut of my database it failed to read, so try to change the location of database dynamically ( there is an option in the app to move the database to drop-box folder and create a shortcut to that database in app folder )
try to make an shortcut to the moved ms-database
the app to read the database or to change the location of database dynamically
First of all, you should create a folder with a clear name in your VB.Net application path, namely inside the project Debug folder, let's name that folder as "MyProjFiles", so it will be in this path: ProjectFolderName\bin\Debug\MyProjFiles
Put your whole projects files inside our lovely folder MyProjFiles, including all types of your attachments: database, images, sounds, files, etc.
Call your database or whatever of those attachments files in addition to our \MyProjFiles\ using this method: My.Computer.FileSystem.CurrentDirectory & "\MyProjFiles\YourFilesPathHere.EXT".
Now, the whole path will be such as this string: "C:\CurrentUserNam\RootFolder\ProjectFolderName\bin\Debug\MyProjFiles\YourFilesPathHere.EXT"
For great practical example of this, supposuply let's open our MSAccessDB.accdb which is already copied into our project folder \MyProjFiles\ by this code directly:
System.Diagnostics.Process.Start(My.Computer.FileSystem.CurrentDirectory() & "\MyProjFiles\MSAccessDB.accdb")
The result will be simply opening our database which called "MSAccessDB.accdb"
Or open some pdf files such as this line:
System.Diagnostics.Process.Start(My.Computer.FileSystem.CurrentDirector() & "\MyProjFiles\MyPdfFile.pdf")
and so on.
I hope this can help you all brothers.
Best ^_^ Regards.
You should read this link.
It explains how to read the information you need to give the access Datareader something to do.
.NET read binary contents of .lnk file
Maybe this is enough, so you don't need to copy anything.

Moodle PHP filehandeling

My problem is that we have made an block that opens a page witha a mform on it. And we use the editor element to start the tinyMCE editor, on the page. But when we save the output, the images oploaded to the text field is only viewable to the admin (the person who uploaded it) and in the mdl_files it sets it to be a draft file. I have been through the documentation, and i might have lost the context on the new page, but im not sure.
In Moodle, files uploaded to a form (either to a filemanager element or a text editor) are stored in a temporary 'draft' area while the form is being edited.
This is so that the actual files are not changed until the form is submitted (e.g. if an admin changed the image embedded in some text, deleting the original, you do not want anyone viewing the page during the editing to see a broken image link).
When working with files embedded in a text editor in Moodle, you need to make sure you copy all existing files into the 'draft' area before you show the form, then copy the 'draft' images into the real area, after the form is submitted.
See https://docs.moodle.org/dev/Using_the_File_API_in_Moodle_forms#editor for details about how to do this.
Please also note that your plugin will also need a PLUGINTYPE_PLUGINNAME_pluginfile() function in its lib.php, in order to authenticate any file requests from the user's browser and return the file contents. See any of the core activities for examples of this (e.g. mod/data/lib.php - function data_pluginfile()).

Downloading Files from a Crystal Report

I have a crystal report I am trying to pull images, word docs, and zip files onto the report as a downloadable hyperlink so that whoever prints the report will have the ability to download the "attachment" they choose locally to their desktop.
The files are stored in folders on a database server. The view in the database named "vAttachmentsReport" contains the file path which points to the folders where the images, word docs, and zip files are stored. I have attempted to create a formula:
however, still no luck. I haven't found much information or any articles/examples of anyone else doing this. Has anyone else seen any examples or created something similar?
I'm not sure about doing this in eclipse, but if you open it up in the Crystal Report Editor you can right click > Format Field and go to the Hyperlink tab. This tab gives you several options for linking other files, websites, ect. via Hyperlinks. Since your database field already has the location, I would recommend adding the name of the file from your database as a field in the report and in its Hyperlink tab select the 'A Website on the Internet' radio button. Then click the formula button and enter the name of the database field that contains your file path.
Note: this will only work if you can enter the file path into your Internet Browser's address bar and download the file. If that doesn't work you may need to add a prefix to the formula with the server's name or the website's name. To this up: you need the whole website address like "http://textfiles.com/100/914bbs.txt" as a result of your Hyperlink formula.

How to add metadata to sharepoint

I'm very new to Sharepoint and I'm asked to add a metadata to a file.
When you are in a document library you see a lots of uploaded files. the have a type, name, modified and modified by meta data. I would like to add a new metadata field. But I don't know how.
I've downloaded the Microsoft Sharepoint Designer.
And once the have the extra metadata field is added it to needs be filled via the querystring. I found something about that on the Internet, but where I have to add the javascript I don't know, so any help with that would be very appriciated.
Thnx
Do you want to add fields like type, name, modified and modified by ? and it should be filled
by the uset at the time of upload?
If yes, then you dont have to use javascript or something like that
Just create a new column in the list or library by folllowing the steps given below:
Go to your list or library and click on Library in ribbon
click on list Settings,
Find Create new columns.. Follow the steps and click ok
It will create new field(metadata) in your list / library
Let me know if I wrongly understand your question