|
Did you try the forums on their site[^]? That would be your best chance.
|
|
|
|
|
First, never heard of "Powermill".
Second, "opening and program Powermill programs" isn't relaly a specification or good requirement definition. It's WAY too general and does not lend itself to a good answer.
What do you want this thing to do? Let someone edit the program as text? Show a graphical representation of the program? 3D modeling with primitives? ... What?
|
|
|
|
|
i hope so VB means .net not vb6 try the SDK for powermill and also check the Com/ libraries in refrences Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
When I use the following the code to print in prints on one line. How do I put a hard return at the end of each line. So I can have different more than one line.
Private Sub PrintDocument1_PrintPage_1(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
For Me.counter = 0 To 19
e.Graphics.DrawString(writeline(Me.counter), printFont, _
System.Drawing.Brushes.Black, 10, 10)
Next Me.counter
End Sub
by using the follow code resolved the issues
Dim strPrint As New StringBuilder
For Me.counter = 0 To 19
strPrint.Append(printline(Me.counter) & vbCrLf)
Next Me.counter
e.Graphics.DrawString(strPrint.ToString, printFont, System.Drawing.Brushes.Black, 10, 10)
If System.IO.File.Exists(SaveFileDialog1.FileName) Then
printfile = File.OpenText(SaveFileDialog1.FileName)
printfile = System.IO.File.OpenText(SaveFileDialog1.FileName)
Do Until printfile.Peek = -1
menuitem(printcounter) = printfile.ReadLine
e.Graphics.DrawString(printfile.ReadLine, printFont, _
System.Drawing.Brushes.Black, 10, 10)
printcounter = printcounter + 1
Loop
printfile.Close()
End If
now the problem is tab spacing.modified on Thursday, March 11, 2010 1:40 PM
|
|
|
|
|
You need to add a line feed char at the end of each line. Try this :
For Me.counter = 0 To 19
e.Graphics.DrawString(WriteLine(Me.counter & vbCrLf), printFont, System.Drawing.Brushes.Black, 10, 10)
Next Me.counter
Hope this helps.
[EDIT]
Sorry that won't work either. That will print one line on top of another. The best eway to do this is with a stringbuilder like this :
Dim strPrint As New StringBuilder
For Me.counter = 0 To 19
strPrint.Append(counter & vbCrLf)
Next Me.counter
e.Graphics.DrawString(strPrint.ToString, New Font("Ariel", 12), System.Drawing.Brushes.Black, 10, 10)
you will need to import System.Text into your class.
Hope THIS helps.
[/EDIT]modified on Wednesday, March 10, 2010 9:12 PM
|
|
|
|
|
I have tried hard coding the hard return the string array but still did not work.
|
|
|
|
|
Sorry, I don't quite get what you mean, although I tried a test and my second example works perfectly. The only thing was a typo in the font declaration, "Ariel" should be "Arial".
|
|
|
|
|
why are we appending the counter which is an index of the wriline string array.
Dim strPrint As New StringBuilder
For Me.counter = 0 To 19
strPrint.Append(counter & vbCrLf)
Next Me.counter
e.Graphics.DrawString(strPrint.ToString, New Font("Ariel", 12), System.Drawing.Brushes.Black, 10, 10)
should be
<pre><code> Dim strPrint As New StringBuilder
For Me.counter = 0 To 19
strPrint.Append(writeline(me.counter) & vbCrLf)
Next Me.counter
e.Graphics.DrawString(strPrint.ToString, New Font("Ariel", 12), System.Drawing.Brushes.Black, 10, 10)</code></pre>
|
|
|
|
|
You can Check it to Paste it Code to Print Preview Control. If you can think then I Can.
|
|
|
|
|
please... can anyone help me... how to code checkboxes within a datagridview for VB.net... in returning borrowed materials, you can choose to check all or check/unchecked individually and when you click the return button the checked checkboxes corresponding information will be stored to your database... thanks...
|
|
|
|
|
|
Experts
I have an inbuilt web browser with a fairly simple web page. I some text that is needed to go from the web browser onto the vb.net document which the web browser is on. (hopefully that makes sense)
I have looked around but can't seem to find anything.
Imagine someone highlighting the text presing ctrl c in the web browser and then in the .net doc ctrl v, this is what i want to do but automatically.
Any help would be great
Cheers
Dan
|
|
|
|
|
You can access the clipboard by using the My.Computer.Clipboard object. You would still need an event to use to copy and paste (maybe using buttons). Ctrl-c, and Ctrl-v automatically work as intended on both Browser and Textbox contrtols.
|
|
|
|
|
Hi,
i am new for this.
I am trying to compile an old VB project but it is giving error in
a line like [Can't find Project Or Library]
strdate = Format(Now,"YYYY-MM-DD-HH.MM.SS")
why it is giving this error . do i need to add any reference for this.
please help me
Thanks
![Rose | [Rose]](https://codeproject.global.ssl.fastly.net/script/Forums/Images/rose.gif)
|
|
|
|
|
no "-" after DD
strdate = Format(Now,"YYYY-MM-DD HH.MM.SS")
and also check by going to your references , it will show you the missing Project Library starting with the word Missing that is there any lib missing also or not. Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
Ya it shows the MISSING : APEX Array Object
it refers to xarray32.ocx
but i thought it is other problem.is it ?
|
|
|
|
|
try to add reference Manually to that missing library if it doesnot exits at that location Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
Have your tried the FormatDateTime() function.
|
|
|
|
|
hi i got the solution
i just unchecked the missing component
and compiled it again.
that it now my application is running.
Thanks! 
|
|
|
|
|
I am able to publish applications but when I tried to run setup I am get an error message. Can not start application.
An error has occurred writing to hard disk. Check if there is enough available disk space. Contact the application vendor. here is the log file below and how do I fix error. I have over 200 gb of free space.
PLATFORM VERSION INFO
Windows : 5.1.2600.196608 (Win32NT)
Common Language Runtime : 2.0.50727.3603
System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000)
mscorwks.dll : 2.0.50727.3603 (GDR.050727-3600)
dfdll.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfshim.dll : 2.0.50727.3053 (netfxsp.050727-3000)
SOURCES
Deployment url : file: Application url : file:
IDENTITIES
Deployment Identity : TodaysCafePos.application, Version=1.0.0.2, Culture=neutral, PublicKeyToken=33decad9b1fac085, processorArchitecture=msil
Application Identity : TodaysCafePos.exe, Version=1.0.0.2, Culture=neutral, PublicKeyToken=33decad9b1fac085, processorArchitecture=msil, type=win32
APPLICATION SUMMARY
* Installable application.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of D:\todayscafe\TodaysCafePos.application resulted in exception. Following failure messages were detected:
+ Downloading file: + The file 'I:\Documents and Settings\Daniel Engelkes\Local Settings\Temp\Deployment\GW8EOZA8.KMK\X1OEK3EE.TK5\2gs_extendedtextbox.dll' already exists.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [3/9/2010 9:32:14 PM] : Activation of D:\todayscafe\TodaysCafePos.application has started.
* [3/9/2010 9:32:17 PM] : Processing of deployment manifest has successfully completed.
* [3/9/2010 9:32:17 PM] : Installation of the application has started.
* [3/9/2010 9:32:17 PM] : Processing of application manifest has successfully completed.
* [3/9/2010 9:32:24 PM] : Request of trust and detection of platform is complete.
ERROR DETAILS
Following errors were detected during this operation.
* [3/9/2010 9:32:25 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading file: - Source: System.Deployment
- Stack trace:
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.IO.IOException
- The file 'I:\Documents and Settings\Daniel Engelkes\Local Settings\Temp\Deployment\GW8EOZA8.KMK\X1OEK3EE.TK5\2gs_extendedtextbox.dll' already exists.
- Source: mscorlib
- Stack trace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
------------------
PLATFORM VERSION INFO
Windows : 5.1.2600.196608 (Win32NT)
Common Language Runtime : 2.0.50727.3603
System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000)
mscorwks.dll : 2.0.50727.3603 (GDR.050727-3600)
dfdll.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfshim.dll : 2.0.50727.3053 (netfxsp.050727-3000)
SOURCES
Deployment url : file: Application url : file:
IDENTITIES
Deployment Identity : TodaysCafePos.application, Version=1.0.0.2, Culture=neutral, PublicKeyToken=33decad9b1fac085, processorArchitecture=msil
Application Identity : TodaysCafePos.exe, Version=1.0.0.2, Culture=neutral, PublicKeyToken=33decad9b1fac085, processorArchitecture=msil, type=win32
APPLICATION SUMMARY
* Installable application.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of D:\todayscafe\TodaysCafePos.application resulted in exception. Following failure messages were detected:
+ Access to the path 'TodaysCafePos.exe.manifest' is denied.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [3/9/2010 9:57:06 PM] : Activation of D:\todayscafe\TodaysCafePos.application has started.
* [3/9/2010 9:57:12 PM] : Processing of deployment manifest has successfully completed.
* [3/9/2010 9:57:13 PM] : Installation of the application has started.
* [3/9/2010 9:57:13 PM] : Processing of application manifest has successfully completed.
* [3/9/2010 9:57:20 PM] : Request of trust and detection of platform is complete.
ERROR DETAILS
Following errors were detected during this operation.
* [3/9/2010 9:57:25 PM] System.UnauthorizedAccessException
- Access to the path 'TodaysCafePos.exe.manifest' is denied.
- Source: mscorlib
- Stack trace:
at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive)
at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive)
at System.IO.Directory.Delete(String path, Boolean recursive)
at System.Deployment.Application.TempDirectory.DisposeUnmanagedResources()
at System.Deployment.Application.DisposableBase.Dispose(Boolean disposing)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
I republished the application and left the dll file off the published edition and now able to install application. But another question has popped up, when I run setup wizard it does not install application to the directory I want to install to, It installs to a temp directory, How do I change that?<div class="signature"><div class="modified">modified on Wednesday, March 10, 2010 1:25 PM</div></div>
|
|
|
|
|
Does the user who is running the setup have permission to create folders/files in the root of Application Files folder? This tends to be restricted to Admin priviliges.
I experienced this a few years ago when Admin installed the app, but when the user first ran it, the app created the default config file, but this failed due to priviliges in this folder.
|
|
|
|
|
yes the user logged is a user account with admin privileges.
|
|
|
|
|
Other than user privileges the only other things i can think of is a process already has a lock the file if it is existing already and is trying to be overwritten.
The exception clearly states unauthorised access though;
* [3/9/2010 9:57:25 PM] System.UnauthorizedAccessException
- Access to the path 'TodaysCafePos.exe.manifest' is denied.
|
|
|
|
|
I republished the application and left the dll file off the published edition and now able to install application. But another issues has popped up, when I run setup wizard it does not install application to the directory I want to install to, It installs to a temp directory, How do I change that?
|
|
|
|
|
I am looking for some code the will import files similar to the Windows Image Uploader. I want the user to be able to create or select a folder or event name for the imported files.
Any ideas or suggestions?
Thanks,
RGecy
|
|
|
|
|