[2005] Write A Program That Will Open A Solidworks File In EDrawings?
Jan 17, 2009
I'm trying to write a program that will open a solidworks file in EDrawings and print it and so far the only way I can find to do that with an edrawings ActiveX Control displayed on my form.Does anyone know if it's possible to print drawings via EDrawings 2009 without the ActiveX Control having to be displayed on the form as that is drastically slowing down my program?
View 5 Replies
ADVERTISEMENT
Feb 19, 2009
I am trying to write a program using the API for SolidWorks in .NET. My first problem is setting 'set swApp = Application.sldworks', the last line of code.It is my understanding that this is simply defined as an installed application on my system (which it is), and does not even use the SolidWorks API to accomplish. Though this syntax is used in many VB6 options, i am getting a syntax error.I have tried it without the 'Set' in front, no help there.
Option Strict Off
Option Explicit On
Imports System
Imports System.Windows.Forms
[code]....
View 9 Replies
Mar 19, 2009
How can i open chm file in VB.net 2005 ?
View 1 Replies
Mar 12, 2009
how can i program add-in to work in solidworks
View 2 Replies
Jan 9, 2009
I am trying to use the open file dialog box in VB 2005 to open up an existing txt, or rtf file from a directory into a rich text box. I am able to get the Open file dialog to appear and the directories, but when I try to open the file it doesnt import it into the text box. Here is the code I am using
[Code]...
View 3 Replies
May 8, 2010
i want to write a program and set it as default to open .txt files so when i double click on a text file that it opens in that program and displays the text into a RichTextBox
my question is how do i display the text in the RichTextBox after opening the program through a double click on a text file?
View 6 Replies
Jan 12, 2009
I am trying to write a simple program which will simply have buttons to open spreadsheets, and a search facilities to look for spreadsheets with a title which is an invoice number. I have my basic forms layed out, all a need now is help with the code.
I am using Visual Basic 2008 Express, and just need a line of code for a button to open an application/spreadsheet. Also, is it possible to have a search box open a file automatically?
View 9 Replies
Feb 11, 2009
I would like to open the excel file after create the excel file. The creating file function is done, but the system unable to open the excel file. My coding as below:
Dim xlApp As Excel.Application
Dim xlWorkBook As Excel.Workbook
Dim misValue As Object = System.Reflection.Missing.Value
[code]....
View 1 Replies
Mar 22, 2009
What i am trying to do is open a save file dialog and write to a .txt firl the contents of my listview. so far:
[Code]...
i have this, but i'm not to sure how to write to the .txt file i know i need to use a for each to loop the contents of the list view
View 2 Replies
Mar 31, 2009
Is it possible to intercept any program write (to file/registry) commands and prompt the user to allow, while pausing the other program's command? Antivirus thing. I know, this seems impossible. But there must be a way! Even if it's just possible to notice what's happening and save another copy of the to-be-affected file first...
View 2 Replies
Nov 13, 2010
I have written a program that reads a 3rd party .txt file database. In one of the fields "City" the 3rd party adds a city abbreviation code. Example [code[The probelm is now the 3rd party has added an additional abbreviation Sacramento (Sac)(City)..They dont always have the addional abbreviation so I am trying to determine what is the best way to write a program that would handle the different situations.
View 10 Replies
Jun 12, 2011
I cannot figure out the declarations to write to an excel file that is already open.
I open the excel file and make it visible with this:
Private Sub Button1_Click
Dim objExcel As New Excel.Application
Dim objWB As Excel.Workbook
[Code].....
View 4 Replies
Jul 8, 2010
So I want my program to open up an empty notepad window, and then fill it in and let the user save it as whatever they want. Is this possible in VB .NET, and if so, do you have any pointers? Note: I don't want to save to write to a file and then save it. I know how to do that. I want to write to a notepad window (an unsaved file). I hope this makes sense and I hope it's possible.
View 7 Replies
Feb 27, 2012
Reading a .txt file in VB.net. My file path is C:UsersMyLilMulePepeDocumentsVisual Studio 2008Projectscurtain_calls.txt.
This is my line of Dim LoanOptionsFile As String = "C:UsersMyLilMulePepeDocumentsVisual Studio 2008Projectscurtain_calls.txt"
I can read the file when I run the program, but how do I write the file path so that someone else can download my program and file and read the file on their system?
View 3 Replies
Sep 14, 2010
I want to write a program to write in an xml file in this format:
<?xml version="1.0" encoding="utf-8" ?>
- <Orders>
<Item id="1" SKU="998123" Description="Super Widget" Quantity="100" />
[Code]....
View 2 Replies
Sep 1, 2009
Is it possible to make a program intercept and stop certain write requests? I need it to stop viruses from tampering with an antivirus database. If you can, how do you do it? If not, is there another way to stop viruses from changing the database?
View 39 Replies
Jun 26, 2010
I want to open a txt file and write into it numbers from 1 to 100 and put between every number enter.
View 4 Replies
Nov 18, 2011
I am using Visual Basic 2010 Express and attempting to get information on how to Open, Close, Read and Write a disk file in Windows using VB. I have attempted to use help on the home page of Visual Basic 2010 Express with no results. It does not give me any instruction or sample.
View 3 Replies
Nov 30, 2011
Let's say, when you click a button it just opens a specified .txt file and adds the data of it to a listbox. I mean automatically, without that file opening dialog showing?
View 1 Replies
Jun 2, 2010
Been trying to get somewhere with this in another thread, but no such look, just keep getting reffered back to the same documentation... If I understood the documentation, I would have fixed it by now:
vb.net
Private Sub MakeiSuitePwdFile()
Dim text As String =
[code].....
View 2 Replies
Jan 4, 2010
I want to read through a flat file, find the line starting with the number I want, and edit that line.So if the file looked like
01435804385043295
02843759248752092
03854379857394857
and I want to edit the value 4375 in line 02 (pos. 4-7) to be 4376.I know I can read it with a streamreader, and write to the end or entire file with streamwriter, but how can i read and write at the same time?
Downloading the entire file to a string and then recreating is NOT an option.
View 17 Replies
Mar 18, 2009
How do I make a file? Or someone choose a file they want to create but I know how to write to it.
View 2 Replies
Feb 2, 2010
Program to convert binary pdf file to tiff file in VB.NET..?? We can use third party tools also..???
View 1 Replies
May 17, 2011
I want to write a line into a text/.cfg file. The line is = name "ishtiak". I need a sapce between name & "ishtiak". The text "ishtiak" is loading from a textbox called textbox1. I dont want in the text box my name like this "ishtiak" it will be without "" like this ishtiak
but in the text file it will add "" before & after my name.
So the question is
1. How to add space between name & "ishtiak"? like this = name "ishtiak"
2. My textbox text will be ishtiak,but it will be written like this "ishtiak"
Here is My Project Screen & Project Code
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim thefile As String = "C:append.cfg"
Dim lines() As String = System.IO.File.ReadAllLines("C:append.cfg")
lines(4) = "name" & TextBox1.Text
System.IO.File.WriteAllLines("C:append.cfg", lines)
End Sub
View 1 Replies
May 21, 2009
I have an application that currently stores PDF files (and others) inside the database as BLOBs. The trouble with this method is that I've now got SQL Server databases in excess of 200 GB! I've finally figured out a way to still enable full-text search without needing to store the PDF files as BLOBs (yay! Adobe's iFilter isn't great.), but I'm having trouble designing the method for a client to get access to the files stored on the server's file system.
I want to place the files in a restricted directory on the server, so I can't simply pass a UNC path to the client and let them open the file from there either in a browser or using Process.Start(filename). I understand how that would work, but if that directory has user access granted, all sorts of security holes open up, right?So, what I'm thinking about is a way to have a SQL Server account that has read/write access to/from the protected file system directory. That way (in my mind), the SQL Server can take a file as it's loaded in through the import client (as a series of byte chunks) and write the file to that area of the filesystem. Then, when a file is requested, the SQL Server can bulk load the file into a varbinary(max) field and do whatever I want with it.
1. How can SQL Server take a stream of bytes and write them to a specified location on its local file system? (This is assuming that I want the import utility to be able to be run on a client machine and not require it to be run on the server itself.)
2. Is there any way to stream a varbinary(max) file to a web page out of SQL? I'm using a lot of PDF files that will have Fast Web View enabled, so if I can stream the bytes to a web page, the user will be able to see the first few pages of the document while the rest is loading. I thought about having the SQL Server read (bulk load) the file from the protected area and write it to an unprotected area just long enough to point a web browser to that location, then wiping the file, but that brings me back to #1 above and would THEN require me to be able to issue a delete command from SQL.
View 4 Replies
Dec 14, 2009
I am writing a schema.ini file to be created onthe fly and want to make file name a variable but cant seem to get the brackets as required by schema.ini file
Dim fn As String = Me.OpenFileDialog1.SafeFileName
writer.WriteLine([fn])
This writes
"myfilename" without brackets
View 2 Replies
Feb 4, 2009
' total is a list
Dim string_array() As String
string_array = DirectCast(total.ToArray(GetType(String)), String())
[code].....
View 3 Replies
Aug 30, 2011
I am using the Process.Start function to open a program based off a registry value. It works, sort of. Here is the snip of the
Imports System.Data.SqlClient
Imports System.Console
Imports System.Configuration
[Code]....
The program opens with the correct registry value, but the program itself does not run quite right. This program feeds into Intergraph and brings up the selected drawing, but there is a feature of intergraph that doesn't work. If I manually start ( double click ) pdsicon.exe the program works just fine. It only when I call the process that it doesn't work quite right.
View 3 Replies
Aug 12, 2010
i am a beginner and trying to write a program that can convert .dwg file into .xml file format.i am familiar with visual studio 2008, vb.net and autocad 2007.my question is what do i need to do or learn to start this project?
View 2 Replies
Apr 28, 2010
I want to write the data to a file which in an format that is only understandable by my program, and if any one opens it in notepad must not be able to read(understand) it.
View 8 Replies