Hi friends, I want to link my pdf viewer control (inbuilt control of Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens! ) with a Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens! link. But it is not working. Can anyone suggest to direct link pdf viewer control with firebase link instead of getting the option of open / save in child window. For example firebase file link " Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens! "
Code (Text): // Définition des variables ResAppel est un booléen IDFichier est un entier // Ouverture du fichier "C:\MesImages\Images.GIF" IDFichier = fOuvre("C:\MesImages\Images.GIF", foCréation) SI IDFichier <> -1 ALORS // Récupération de l'image ResAppel = HTTPRequête("http://www.windev.com/img/decor/bloc-h-g.gif") SI ResAppel = Vrai ALORS // Enregistrement de l'image récupérée dans le fichier fEcrit(IDFichier, HTTPDonneRésultat(), ... Taille(HTTPDonneRésultat()) FIN // Fermeture du fichier fFerme(IDFichier) FIN
Thanks Popoy. I have already checked the code and the code is just downloading file to temporary location to further open in PDFVIEWER or IMAGEVIEWER inside windev. But the file is not being downloaded. Rather it download the header of error as test.pdf (In example code listed below): ResAppel is a boolean nIdfile is int //// Opening the file "C: \ MyImages \ Images.GIF" nIdfile = fOpen ("f: \ test.pdf", foCreation) // IF IDFile <> - 1 THEN // Retrieve the image ResAppel = HTTPRequest (" Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens!") IF ResCall = True THEN // Save the retrieved image in the file fWrite (nIdfile, HTTPGetResult ()) END // Close file fClose (nIdfile) ---- What test.pdf look like in notepad: <? xml version = '1.0' encoding = 'UTF-8'?> <Error> <Code> SignatureDoesNotMatch </Code> <Message> The request signature we calculated does not match the signature you provided. Check your Google secret key and signing method. </Message> <StringToSign> GET application / x-www-form-urlencoded 1586957855 /hvpnlfileserver.appspot.com/documents/1359.pdf </StringToSign> </Error>
The problem is having the right download link. Maybe using the activex webbrowser Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens!
I have checked with Foxit ActiveX Control in windev also but the same issue. All PDF Viewers need the file to be downloaded in a temp folder and then open the file. I couldn't find a way to download the file from firebase (in the background) before opening it in pdf viewer control (inbuilt windev and/or 3rd party ActiveX Control imported to windev)
Yes, you are required to download the pdf from firebase. But how to do it by programming? Personally, I don't know.
Hi @Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens! May i ask how you retreive Firebase Access Token in windev? Sorry if my question is out of the scope of this topic.
Hi Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens!. Thanks for stopping by. I am using this code: ResAppel is a boolean nIdfile is int //// Opening the file "C: \ MyImages \ Images.GIF" nIdfile = fOpen ("f: \ test.pdf", foCreation) // IF IDFile <> - 1 THEN // Retrieve the image ResAppel = HTTPRequest (" Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens!") IF ResCall = True THEN // Save the retrieved image in the file fWrite (nIdfile, HTTPGetResult ()) END // Close file fClose (nIdfile) The access token is already in the link (token=f12cded6-29e9-42ec-a1bf-2c91bc0fa9af). I am having a database collection of pdf in MongoDB (in format of link indicated above including token) for pdf files stored in firebase. I call the pdflink from windev App as per code written above with an intention to download this pdf in a temp file and then use inbuilt PDFViewer of windev to open that file. But I am failing as pdf is not being downloaded and a file like test.pdf is created with following strings in it while checked by notepad: ---- What test.pdf look like in notepad: <? xml version = '1.0' encoding = 'UTF-8'?> <Error> <Code> SignatureDoesNotMatch </Code> <Message> The request signature we calculated does not match the signature you provided. Check your Google secret key and signing method. </Message> <StringToSign> GET application / x-www-form-urlencoded 1586957855 /hvpnlfileserver.appspot.com/documents/1359.pdf </StringToSign> </Error>
Can't we use JavaScript inside windev as listed on Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens!? I tried but couldn't implement it due to no knowledge of JS. Pl, help anyone who has expertise in JS.
Dear [USER = 741] Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens! [/ USER], [USER = 960] @ kdev66 [/ USER] ... I am using following code to access (Download & open pdf file) from Firebase storage ... I don ' t know where I have mistaken but it is not working: ToastDeleteAll () ToastDisplay ("Connecting Server to fetch required pdf file") strpdf is string = "" HTTPDestination (fCurrentDir + "\ temp.pdf") sPdflink_url is string = " Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens! " IF HTTPRequest (sPdflink_url) THEN PDFReaderOpen (PDF_NoName1, fCurrentDir + "\ temp.pdf") IF ErrorOccurred THEN ToastDisplay ("Approval No" + strpdf + "not available") RETURN ELSE // ToastDisplay ("Approval check OK.") END // else END
Hi @Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens! Try this Code (Windev): // To define sBase is string ANSI = "https://firebasestorage.googleapis.com/v0/b/hvpnlfileserver.appspot.com/o/documents" sFile_Path is string ANSI = Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens!() +[Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens!]+"1213.pdf" sLink_url is string ANSI = "https://firebasestorage.googleapis.com/v0/b/hvpnlfileserver.appspot.com/o/documents/1213.pdf?alt=media&token=8c9ccd56-9842-4797-937c-009917d36ee5" oReq est un httpRequête oReq..URL = UrlChecker(sLink_url) oReq..Méthode = httpGet oReq..Destination = sFile_Path oRep est un httpRéponse = HTTPEnvoie(oReq) SI Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens! ALORS Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens!(Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens!(errComplet)) SINON // info(oRep.CodeEtat+rc+"Approval check OK.") PDFReaderOpen (PDF_NoName1, sFile_Path) IF ErrorOccurred THEN Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens!("Approval No" + sFile_Path + "not available") ELSE Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens!("Approval check OK.") END FIN PROCÉDURE INTERNE UrlChecker(sUrl est une chaîne) sParameters is string ANSI= Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens!(sUrl,2,sBase,DepuisDébut) RESULT sBase+"%2F"+sParameters[[2 À Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens!(sParameters)]] FIN
Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens! ... Thanks a lot. It's working... You helped a lot. Really appreciated. If u can further help me.... How can I upload pdf files to the same firebase server by windev. Can u share the code for that also. I just pick a pdf & upload it to firebase storage. I will be really thankful to u.
Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens! .. Pl help to suggest a snippet to upload the pdf docs to the firebase storage from windev project. Pl help.