Slow Printing With PATHs?
Apr 18, 2010
I wrote an application that shows about 2000 GPS track segments on a map (ATV trails in Quebec). The user may select and zoom an area of the map, then print a detailed map that includes the GPS tracks:
When I print the map, I use the full resulution of the printer, so a 8.5x11 lanscape page on a laser printer generates a 6260 x 4800 bitmap. If I preview or print the entire page WITHOUT showing the GPS tracks, it appears / prints within 5-10 seconds.
When I include the GPS tracks, the preview is very fast (5-10 seconds) but the actual printing now takes over 10-12 MINUTES! I fail to see why the printing becomes SO SLOW when I include my GPS tracks.
My map only includes 3 graphics path, which were defined only once at the maximum zoom level:
- One RED path that includes all the tracks valid all year long (AnnualPath)
- One GREEN path that includes all the summer tracks (SummerPath)
- One BLUE path that includes all the winter tracks (WinterPath)
The printing is slow only when I add the 3 graphicspath to my printing output and looks like this:
' e = Drawing buffer of the Print function Factor = adjustment factor between the zoom level used when the graphicspath were defined and the actual printing zoom level
' HorzOffset = Horizontal adjustment to align the graphicspath with the output buffer VertOffset = Vertical adjustment to align the graphicspath with the output buffer
[Code]...
Anyone has an idea why adding a graphicspath to a printed page drastically slow it down? What should I do to imprime the printing speed? I have been baging my head on my monitor for the past week and I fail to see how I can fix that problem.
View 2 Replies
ADVERTISEMENT
Jul 5, 2010
I'm asking this question here, in this forum, as I couldn't find MSDN Managed forum for Crystal Reports. And the previously asked questions are unanswered. I've developed an application using VB.NET and Crystal Reports in VS2008. The report generated gets printed correctly on modern laser or inkjet printers. However, the entire formatting gets affected when I print these reports on dot matrix printer. Apart from that. the print speed is very slow. I tried exporting the report to PDF, XLS, DOC and other formats - but no solution. There was Export to Text function, which is not working in Crystal Reports now.
[Code]...
View 1 Replies
Jul 1, 2010
I need stop printing and paper feeding in the middle of printing in dot matrix printer.(Like a POS Printer - When wrote 'End Doc' on POS printer can stop paper feeding)
View 4 Replies
Dec 6, 2010
I am using VB 2008 & Access Databases for creating WinForm Applications. Also i am using Crystal Reports for Report solution. my question is How do i created reports such a way that they can be printed in faster Ascii Format on any DotMatrix printer. The default true type fonts make printing very slower.
I tried to use "Draft 10 cpi" font which come to available me after i installed a correct driver for my Epson printer. which also helped me overcome this problem. however it wont be the scenario with all my clients i.e. they might have different printers having different Make with different drivers installed. i have tried to open such project on there PC but the printing wont come in Draft instead the fonts get expanded too much & the print wont come right.
View 8 Replies
Apr 19, 2010
I basically have an application that generates reports in a .html file, I use a .html file for the ease of making tables and formatting text.Now I would like to introduce a way of printing the reports from my program. Because I use a .html file, the formatting would not the correct if I was to print it directly from my application (as far as I know). For this reason, I would like to print it just like my web browser would have in order to keep the tabular data intact and the text formatting.
View 1 Replies
Nov 2, 2009
I'm creating an application which has an scheduler to print and it checks if there is a pending job on the print queue before it prints the next file. I use a timer which checks if there is any file to be printed on my database. Example, the timer ticks and selected 10 files to be printed, it should print the 10 files 1 at a time, if there's no print queue, that's the only time the next file should print. I think another timer is required which will keeps on checking if print queue is done. How will i do this?
View 2 Replies
Jun 11, 2011
I am setting up printing (to a printer or file) in my application, and it doesn't seem to print out any new lines that I specify. Here's some of my printing
' Loop through all of the text in the array
For i = 0 To 9
If i Mod 2 = 0 Then
[Code]....
When I print the output to a PDF file using PDFCreator, it stacks all of the letters onto each other rather than creating new lines at the places I've specified. I've also tried using vbNewLine instead of vbCrLf, but I haven't had any luck. I searched the web for this but couldn't find anything about it.
View 2 Replies
Aug 26, 2009
In more and more of my functions (althought they still work) i'm getting a warning the function doesn't return a value on all code paths.[code]...
View 3 Replies
Jan 14, 2010
My development machine runs Windows XP, but the target machine runs Windows 2000 with .NET 2.0.I've set my compile options to compile 2.0, which is fine.However, I have some references which are causing issues.For example, Microsoft.Office.Interop.Outlook.dll - in VS2008 the path is shows as the C:Windowsassembly folder which works fine. Until the app is built and run on the target machine and fails:Could not load file or assembly 'Microsoft.Office.Interop.Outlook, Version=12.0.0.0, Culture-neutrl, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.Presumably because on Windows 2000 the assembly folder is C:WINNT.I cannot work out how to target the WINNT folder for my references.
View 9 Replies
Feb 4, 2011
The end result I am looking for is I want to add File Paths to a CheckedListBox. I only want certain file extensions and if a file by the same name but a specific extension exsists allready then I do not want to add those files to the CheckedListBox.
Example: I am only wanting these filetypes in my CheckedListBox (.gif, .tif, .bmp, and .jpg).However if the filetype (.PNG) allready exsists with the same filename (i.e. image. png and image.jpg) I then do NOT want to add that JPG. Only files that do not allready have a PNG with the same name. (I hope I was able to make this clear)
My current code will add the filetypes (.gif, .tif, .bmp and .jpg) to the CheckedListBox. However I do not know how to have the code only add the files that don't have the PNG.Here is my current code:[code].....
View 2 Replies
Oct 12, 2007
I designed an app that basically gets paths to servers I have admin rights to, I am doing such things such as checking available space on the servers etc., the problem I am having is my app only works if I manually login via something like (start, run, \server) and supply my admin username and password just to store that authentication.How do I code this so it prompts the user in my program ONE time for all 5 servers (they all use the same username and password)
View 5 Replies
Mar 5, 2010
I'm attempting to use the Left function to extract the 3 leftmost characters from a string.
I declare the function as follows
Public Shadows Function Left(ByVal str As String, ByVal Length As Integer) As String
End Function
I get a notification that "function Left doesn't return a value on all code paths"
View 3 Replies
Feb 21, 2011
[code].....
View 12 Replies
Nov 13, 2010
but i can't complete it if i dont know how to make it auto detecting the pathsexample: i have a combobox and only the text COD 4 MWand i have a textbox so when they select COD 4 MW in the combobox the install path shows in the textbox.
View 1 Replies
Aug 19, 2010
I have file paths such as:
' Any number of folders before and after the Project name
C:acdProject1efgsomefile.someextension'
How would I:Extract only the path before the project name?
C:acd
Extract the path after the project name?
efgsomefile.someextension
Note: Of course given the filename.Would Split be better or some complicated regex?
View 1 Replies
Jan 4, 2012
I've been trying to wrap my head around using the registry, but I have to say I'm a little lost. Is there a way I can use a "path structure" to write to a specific key, rather than using it as a dim and storing it in memory?
[Code]...
View 2 Replies
Feb 16, 2009
I am preparing a project for distribution, and I need advice as to how to establish my paths to some of the dynamic data elements; sound clips, external imagery and a database.I am reading the environment.startuppath, but it's pointing all the way in to the debug folder, whixh I'm sure I'm not going to be using when I publish things for distribution.I was hoping for something that could establish a relative base folder, and then just reference a few subfolders from there.
View 14 Replies
May 12, 2010
I have this code for drawing a path.
Dim map As New Bitmap(l1.Size.Width, l1.Size.Height, l1.CreateGraphics)
Dim nextPoint As Point
Using g As Drawing.Graphics = Graphics.FromImage(map)
Dim dPath As New Drawing2D.GraphicsPath
For i As Integer = 0 To path.Count - 1
[Code] .....
l1 is a Label. When I call this it draws the path fine, but when I call it again it draws another path but doesn't get rid of the first path. Basically, I only want one path on the Label at a time.
View 8 Replies
Jan 1, 2012
I'm working on a project right now that I've had my head wrapped around for about the last week or so. Without getting fully into it, it's a 2 part application. DoIT and DoER. DoIT creates commands that another computer, running DoER, is supposed to do.
[Code]...
View 4 Replies
Mar 11, 2011
I tried running code analysis the first time and found what it appears many others on SO doing the same have found: an abundance of
In method 'SomeMethod()', object
'SomeObject' is not disposed along all
exception paths. Call
[code].....
View 1 Replies
Mar 19, 2011
Private Function ViewPropertyCast(ByVal type As String) As String
Select Case type
Case "smallint"
Return "Short"
Case "nvarchar"
Return "String"
[Code]...
View 3 Replies
Mar 14, 2011
We have a multilingual site, or culture-sensitive, and some of the static content now needs to be targeted; for this I'm using themes as it seems the easiest way to achieve what I want, but I can't for the life of me get the images to pick up.I'm setting the theme in code-behind, and thought at first that maybe this was the issue, but on checking up it looks like I'm doing the right thing (setting on Pre-Init).I expect to be able to reference images using relative paths where App_Themes/ThemeName/ is automatically resolved, such as:[code]In the above code, CurrentSite. Culture Name would be a language culture name (for example, en-gb, or nn-no) that does have an existing corresponding theme folder containing all required resources.Pages do have EnableTheming set to True. Also, I have tried removing the theme-setting code and applying the theme in the page using Theme="en-gb" to no avail.Is there anything immediately evident as to why the URLs aren't resolved?
View 1 Replies
Jun 28, 2010
I have a problem with my code. My code is using the fileupload control to browse for a filename when you add a filename it processes it and the code runs fine on when it lives on local host, but when I put the code on our prodution server it cannot find the filenames listed by user.
For example if I use the upload control to browse to B:MISCH IntiveRPTTOFL_3.csv and the code lives on my localhost which know what that file path means it works, but if the code is moved to a production server it may or maynot know what B:/ is or B:/ maybe mapped to something else. Even if I am browsing to a file on my C drive it will work on if the code is on the machine that the C drive is on, but it will not work if the code is on another machine because obviously that file wouldnt be on that C drive.
[Code]...
View 1 Replies
Mar 14, 2012
I want to check if two directories are pointing to the same place. Of course string based compare can be done easy but I also want to check for the situation in which a mapping points to the same location. Hence if m:dataapplicApicturesjpg n:applicApicturesjpg point to the same location it must be flagged. I have already searched I know there is something like GetFileInformationByHandle but I don't want to create a file, so I have not got a handle.
View 1 Replies
Apr 27, 2012
Im fooling around with the Windows Media Player control in Visual Studio 11 (Beta) and I'm wondering how to
1. How to get the path to a folder, and then add all the paths of the files in that folder into an ArrayList
2. How can I get the length of the current .mp3 file that's playing in the Windows Media Player control?
View 5 Replies
Sep 7, 2010
I'm in need of a way to find the original path of a substituted (Virtual) drive, set with the subst command.
Start -> Run -> type "cmd"
[code]
subst l: c:\scripts
[\code]
This create a virtual drive that points to c:\scripts\
in .net an easy way to get all the drives on the computer is using the Drive property of My.Computer.FileSystem. However, this will give you the current substitued name of the drive. Is there a way to find the original path?
I get the path of the virtual drives mapped to network folders using WNetGetConnectionA of mpr.dll, However, this only resolves mapped network drives.
I currently don't have away to find the original path of LOCAL virtual drives.
View 3 Replies
Jun 22, 2010
I'm writing an app where a user selects a folder on the network for a job to deposit output into.The person setting up the job will not necessarily be the same person who runs the job and that the job will not be ran on the same machine so I need to keep the path in UNC format. I can get the user to "see" the network when the FolderBrowserDialog runs by pointing the route folder at the desktop folder.
The issue is that if the network share is local even though the user has selected the folder through the network folders it returns the local path!! Which of course means that when the job is run on the other machine it can not find the folder specified.
E.g. The user on machine1 selects the network share \machine1jobsmyjob but the dialog returns C:work2010JobsClientjobsmyjob. machine2 then runs the job and looks for C:work2010JobsClientjobsmyjob and can not find it then throws an error.
As you can see from the above example I can't just replace c: with the local machine name as the share may not be in the root of the drive. I did think about parsing the text and changing it to \machine1c$work2010JobsClientjobsmyjob but this would mean I'd have to allow all the users to have admin access to our servers which is a non starter.if there is a way to switch off this behaviour in the dialog?
dim myDialog as new FolderBrowserDialog
With myDialog
.Description = "Browse to Job destination"
.ShowNewFolderButton = True
[code].....
View 3 Replies
Oct 11, 2009
Function can't return a value on all code paths.[cde]...
View 2 Replies
Nov 20, 2011
I am getting the warning that the function doesn't return a value on all code paths.
Function newgradelevel(ByVal valscore As Integer, ByVal strgradelevel As String) As String
If valscore >= 70 Then
If strgradelevel = "Freshman" Then
newgradelevel = "Sophomore"
ElseIf strgradelevel = "Sophomore" Then
[Code] .....
View 1 Replies
Oct 11, 2009
I'm trying to write a program that allows you to; 1) open a mp3 or wav file via the user finding the file and copying the file path and pasting it into a text box and, 2) by pressing a button it will play the desired file, and then 3) by pressing another button it will stop playing the file. I've already have this under pat,
Private Sub cmdOne_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOne.Click
My.Computer.Audio.Play(My.Resources.buzzer, AudioPlayMode.Background)
End Sub
View 1 Replies