logo
down
shadow

opening webdav files in Chrome via the Office Authorization plug-in for NPAPI browsers fails for certain files


opening webdav files in Chrome via the Office Authorization plug-in for NPAPI browsers fails for certain files

By : richardos24
Date : November 28 2020, 08:01 AM
this one helps. OK, thanks to Stuart's explanations in this issue, things started to make more sense. Basically I think the problem lies into the way the Microsoft plugin has been implemented when it comes to handling the strings that are passed from JavaScript. Stuart posted a question that shows the problem. The plugin code expects the strings to be null terminated when in fact that's not guaranteed.
I did a test in my real app and I added the null character to url, i.e I passed url + '\0', and now the bloody thing works in Chrome.
code :


Share : facebook icon twitter icon
Microsoft Office 2010 Basic Authentication when Opening Files on Windows 2008

Microsoft Office 2010 Basic Authentication when Opening Files on Windows 2008


By : Hammerklavier
Date : March 29 2020, 07:55 AM
should help you out Considering that the WebClient key is missing it sounds like the WebDAV client is not installed.
A quick Google search yielded this:
Error opening Office files downloaded from sql server

Error opening Office files downloaded from sql server


By : nvemoori
Date : March 29 2020, 07:55 AM
I wish this helpful for you As described by this MSDN article, VB.NET arrays are declared differently than in other languages, such as in C#. In other languages, when declaring a fixed-length array, the size given is used as the total length of the array. For instance, in c#, the statement fixed byte buffer[3]; would declare a byte array containing 3 elements (with indices 0 through 2). However, in VB, the size given when declaring a fixed array is used as the upper-bound for the array, not the size. Therefore, in VB, the statement Dim buffer(3) As Byte declares a byte array containing 4 elements (with indices 0 through 3).
With that in mind, if you look closely at your code, you are actually declaring a byte array which is one element larger than the size of the file (with indices 0 through fi.Length). You are then reading the entire file into the byte array, starting at index 0. Therefore, the last byte in the array is left as value 0 (a null character). You then write out the entire contents of the byte array to a new file, including that last null byte. Therefore, your code is correctly copying all the bytes in the file, but is adding an extra null byte to the end of it which makes Excel unhappy. If you look at the original file size and the file size of your newly created file, you will see that your new file is one byte larger than the original.
code :
Dim buffer(fi.Length - 1) As Byte
Dim fi As New FileInfo(FilePath)
Using s As Stream = fi.OpenRead()
    Dim buffer(fi.Length - 1) As Byte
    s.Read(buffer, 0, fi.Length)
End Using
Dim fi As New FileInfo(FilePath)
Using s As Stream = fi.OpenRead()
    Dim buffer(CInt(fi.Length) - 1) As Byte
    s.Read(buffer, 0, CInt(fi.Length))
End Using
If fi.Length >= Integer.Max Then
    'Display or log error that the file is too large, and skip loading the file
Else
    'Load file
End If
'UPLOAD FILE
Dim buffer() As Byte = File.ReadAllBytes(filePath)

'DOWNLOAD FILE
Dim buffer As Byte() = reader("Binary")
File.WriteAllBytes(filePath, buffer)
NPAPI mac plugin shows unresponsive message in Chrome when opening context menu

NPAPI mac plugin shows unresponsive message in Chrome when opening context menu


By : Ger Ah
Date : March 29 2020, 07:55 AM
I hope this helps . This is simply a bug in Chrome's NPAPI plugin host on OS X.
How do I get rid of authentication login dialog when opening MS Office docs from a WebDAV server?

How do I get rid of authentication login dialog when opening MS Office docs from a WebDAV server?


By : Ruxandra Covacu
Date : March 29 2020, 07:55 AM
help you fix your problem Microsoft Office applications always ask for the authentication when used with Basic or Digest authentication. This is a Microsoft Office and Microsoft Mini-redirector limitation and there are no workaround in case your server is using Basic or Digest.
However, if you check "Remember my password" check-box it will still display the login dialog, but the user name and password will be already filled-in, so you just click "OK".
Opening multiple Non-Office files through VBA

Opening multiple Non-Office files through VBA


By : Neanderthal
Date : March 29 2020, 07:55 AM
hop of those help? The approach almost works. You should use ActiveSheet (or Active anything) sparingly since the user could change applications while the macro runs. This is especially true if the macro takes a long time and the user checks his or her e-mail in the in meantime, for example. A better approach would be:
code :
Sub OpenCadFiles()
  Application.ScreenUpdating = False
  Application.DisplayAlerts = False

  Dim currentWorkbook As Workbook
  Set currentWorkbook = ActiveWorkbook

  Dim currentWorksheet As Worksheet
  Set currentWorksheet = ActiveSheet

  Dim URL As String
  Dim j As Long
  For j = 32 To 133
      If currentWorksheet.Cells(j, 14).Value <> "" And Rows([j]).EntireRow.Hidden = False Then
          URL = currentWorksheet.Cells(j, 14).Text
          currentWorkbook.FollowHyperlink URL
      End If
  Next j

  Application.ScreenUpdating = True
  Application.DisplayAlerts = True
End Sub
shadow
Privacy Policy - Terms - Contact Us © ourworld-yourmove.org